/* ============================================================
   POST-SPLIT LAYOUT FIXES
   Small page-level fixes kept ahead of the imported base CSS to preserve cascade order.
============================================================ */
[data-detail-view="bill-records"] .borrower-record-page-section,
.bill-library-list {
  overflow: visible;
}

.my-bill-record-card.platform-list-row.bill-row-compact {
  grid-template-columns:
    minmax(154px, 190px)
    minmax(108px, .58fr)
    minmax(96px, .48fr)
    minmax(176px, .76fr)
    minmax(292px, max-content);
  overflow: visible;
}

.my-bill-record-card.platform-list-row .my-bill-record-actions {
  grid-column: 5;
  width: auto;
  min-width: 292px;
  max-width: none;
  box-sizing: border-box;
  padding-right: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: center;
  overflow: visible;
}

.my-bill-record-card.platform-list-row .my-bill-record-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 1101px) {
  .nav-right {
    flex-wrap: nowrap;
    min-width: 0;
    gap: 10px;
  }

  .nav-chain,
  .wallet-btn,
  .nav-right > .btn.btn-ghost.btn-sm {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-user-email {
    flex: 1 1 220px;
    min-width: 120px;
    max-width: 260px;
  }

  .nav-user-email-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

#new-bill-modal input[type="date"] {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

#new-bill-modal input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.form-input.amount-input::placeholder {
  font-size: 13px;
  font-weight: 400;
  color: rgba(139, 148, 158, .72);
}

.modal.batch-upload-modal.from-new-bill .modal-header,
.modal.batch-upload-modal.from-new-bill .modal-footer {
  background: #f8fbff;
}

.modal.batch-upload-modal.from-new-bill .modal-body {
  background: #fff;
}
/* ============================================================
     RESET & BASE
  ============================================================ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  :root {
    --tradego-theme: "official-blue-white";
    --bg-base:       #f4f7fb;
    --bg-card:       #ffffff;
    --bg-card2:      #f7faff;
    --bg-hover:      #eef5ff;
    --border:        #d8e2ef;
    --border-light:  #e8eef6;
    --text-primary:  #142033;
    --text-secondary:#53657d;
    --text-muted:    #8a9aad;
    --accent:        #006bd6;
    --accent-hover:  #0057b8;
    --accent-light:  #e8f2ff;
    --green:         #12935f;
    --green-bg:      #e9f8f1;
    --yellow:        #b98105;
    --yellow-bg:     #fff7df;
    --red:           #d92d20;
    --red-bg:        #fff1f0;
    --orange:        #df6b16;
    --orange-bg:     #fff4e8;
    --purple:        #4f6fdc;
    --purple-bg:     #eef2ff;
    --radius:        8px;
    --radius-lg:     12px;
    --shadow:        0 12px 32px rgba(15, 50, 90, 0.10);
  }

  html { font-size: 14px; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
  }

  /* ============================================================
     LAYOUT
  ============================================================ */
  .app { display: flex; flex-direction: column; min-height: 100vh; }

  /* NAV */
  .navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13,17,23,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex; align-items: center; gap: 32px;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 15px; color: var(--text-primary);
    text-decoration: none; white-space: nowrap;
  }
  .nav-logo .logo-icon {
    width: 28px; height: 28px; border-radius: 6px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
  }
  .nav-powered {
    font-size: 10.5px; color: var(--text-muted); white-space: nowrap;
    padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border);
    background: rgba(255,255,255,.02); margin-left: 2px;
  }
  @media (max-width: 1100px) { .nav-powered { display: none; } }
  .nav-links {
    display: flex; gap: 4px; flex: 1;
    min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-link {
    padding: 6px 12px; border-radius: var(--radius);
    color: var(--text-secondary); font-size: 13px;
    cursor: pointer; transition: background-color .15s, color .15s;
    border: none; background: none;
    white-space: nowrap;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--text-primary); background: var(--bg-hover);
  }
  .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
  }
  .nav-badge {
    position: relative; cursor: pointer;
    width: 32px; height: 32px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; transition: background .15s;
  }
  .nav-badge:hover { background: var(--bg-hover); }
  .badge-dot {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red); border: 2px solid var(--bg-base);
  }
  .wallet-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 12px; cursor: pointer;
    transition: background-color .15s, border-color .15s;
  }
  .wallet-btn:hover { background: var(--bg-hover); border-color: var(--accent); }
  .wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
  .nav-user-email {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.2;
    max-width: min(28vw, 260px);
    min-width: 0;
    flex: 0 1 220px;
  }
  .nav-user-email-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-chain {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 12px; cursor: pointer;
    transition: border-color .15s, color .15s; white-space: nowrap;
  }
  .nav-chain:hover { border-color: var(--accent); color: var(--text-primary); }
  .nav-chain .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

  /* PAGE CONTAINER */
  .page { display: none; flex: 1; }
  .page.active { display: block; }
  .container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
  .content-align-frame {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }
  .container-sm { max-width: 520px; margin: 0 auto; padding: 32px 24px; }
  .container-md { max-width: 800px; margin: 0 auto; padding: 32px 24px; }

  /* ============================================================
     TYPOGRAPHY
  ============================================================ */
  .page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
  .page-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 24px; }
  h3 { font-size: 15px; font-weight: 600; }
  h4 { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }

  /* ============================================================
     CARDS
  ============================================================ */
  .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
  }
  .card-sm { padding: 16px; }
  .card + .card { margin-top: 12px; }

  /* STAT CARDS */
  .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
  .stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .stat-grid-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .stat-grid-2x2 { grid-template-columns: repeat(2, 1fr); }
  .stat-value-oracle { color: #60a5fa; }
  .value-compare { display: flex; flex-direction: column; gap: 2px; }
  .value-compare-sub { font-size: 11px; color: var(--text-secondary); font-weight: 400; }
  .cargo-value-compare {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
    margin-top: 10px;
  }
  .cargo-value-side { text-align: center; min-width: 0; }
  .cargo-value-side .cargo-value-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .35px; margin-bottom: 6px; }
  .cargo-value-side .cargo-value-num { font-size: 20px; font-weight: 700; line-height: 1.2; }
  .cargo-value-side.initial .cargo-value-num { color: var(--text-primary); }
  .cargo-value-side.oracle .cargo-value-num { color: #60a5fa; }
  .cargo-value-mid {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0 4px; color: var(--text-muted); font-size: 11px;
  }
  .cargo-value-delta {
    font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius);
    background: var(--bg-card2); margin-top: 10px; text-align: center;
  }
  .cargo-value-compare-card { border-color: rgba(96,165,250,.25); }
  .cargo-value-compare-inline {
    background: var(--bg-card2); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 12px; margin-bottom: 12px;
  }
  .cargo-value-compare-inline .cargo-value-side .cargo-value-num { font-size: 16px; }
  .oracle-tag { font-size: 10px; color: #60a5fa; font-weight: 500; }

  /* Loan certificate isolation */
  .policy-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; }
  .policy-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
  .isolation-flow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
  .isolation-node {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 14px; text-align: center; min-width: 100px; font-size: 12px;
  }
  .isolation-node.danger { border-color: var(--red); background: var(--red-bg); }
  .isolation-node.safe { border-color: var(--green); }
  .isolation-arrow { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
  .policy-rules { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
  .policy-rule { display: flex; gap: 10px; padding: 10px 12px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-light); }
  .policy-rule-icon { flex-shrink: 0; }

  /* 功能说明文档页 */
  .guide-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .guide-index-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px; cursor: pointer;
    transition: border-color .15s;
  }
  .guide-index-card:hover { border-color: var(--accent); }
  .guide-index-card .guide-index-icon { font-size: 24px; margin-bottom: 8px; }
  .guide-index-card h4 { font-size: 13px; margin-bottom: 4px; }
  .guide-doc-section {
    scroll-margin-top: 80px; padding-top: 8px; margin-bottom: 28px;
    border-top: 1px solid var(--border); padding-top: 20px;
  }
  .guide-doc-section:first-of-type { border-top: none; padding-top: 0; }
  .guide-doc-section h3 { font-size: 16px; margin-bottom: 12px; }
  .md-hint {
    font-size: 11px; color: var(--text-muted); padding: 8px 12px;
    background: var(--bg-card2); border-radius: var(--radius); margin-bottom: 20px;
  }
  .jnft-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
  .jnft-unit-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px 20px;
  }
  .jnft-unit-card.isolated { border-left: 3px solid var(--purple); }
  .jnft-unit-card.status-warn { border-left-color: var(--yellow); }
  .jnft-unit-card.status-danger { border-left-color: var(--red); }
  .jnft-project-section {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light);
  }
  .jnft-project-section-title {
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px;
  }
  .jnft-project-risk .risk-panel { grid-template-columns: 120px 1fr; gap: 14px; }
  .jnft-project-risk .health-number { font-size: 28px; }
  .jnft-project-formula {
    font-size: 10px; color: var(--text-muted); line-height: 1.6; margin-top: 10px;
  }
  .jnft-unit-badge { font-size: 10px; color: var(--purple); margin-bottom: 8px; }
  .jnft-card-summary {
    display:grid; grid-template-columns: repeat(4, 1fr); gap:10px;
    padding:12px; background: var(--bg-card2);
    border-radius: var(--radius); margin-top: 8px;
  }
  .jnft-card-summary > div { min-width:0; }
  .jnft-card-summary .lbl { font-size:11px; color: var(--text-muted); margin-bottom: 4px; }
  .jnft-card-summary .val { font-size:16px; font-weight:700; line-height:1.2; }
  .jnft-card-summary .sub { font-size:11px; color: var(--text-muted); margin-top:2px; }
  .jnft-card-detail { display:none; margin-top: 14px; }
  .jnft-card-detail.open { display:block; }
  .jnft-card-toggle {
    background: transparent; border:1px solid var(--border);
    color: var(--text-secondary); border-radius: var(--radius);
    padding: 4px 12px; font-size:12px; cursor:pointer;
    display:inline-flex; align-items:center; gap:6px;
  }
  .jnft-card-toggle:hover { background: var(--bg-hover); color: var(--text); }
  .jnft-card-toggle .chev { transition: transform .2s; display:inline-block; }
  .jnft-card-toggle.open .chev { transform: rotate(180deg); }
  .jnft-composition-list { display: flex; flex-direction: column; gap: 8px; }
  .jnft-composition-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; background: var(--bg-card2);
    border: 1px solid var(--border-light); border-radius: var(--radius);
  }
  .jnft-composition-row > div { min-width: 0; }
  /* 提单申请 · 进度时间线 */
  .bill-progress-list { list-style:none; padding:0; margin:0; position: relative; }
  .bill-progress-item {
    position:relative; padding: 0 0 18px 32px; display:flex; flex-direction:column;
  }
  .bill-progress-item:not(:last-child)::before {
    content:''; position:absolute; left:12px; top:24px; bottom:0; width:2px;
    background: var(--border);
  }
  .bill-progress-item.bill-progress-done:not(:last-child)::before { background: #22c55e; }
  .bp-dot {
    position:absolute; left:0; top:0; width:24px; height:24px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:700;
    background: var(--bg-card2); border:2px solid var(--border); color: var(--text-muted);
  }
  .bill-progress-done .bp-dot { background: rgba(34,197,94,.18); border-color:#22c55e; color:#4ade80; }
  .bill-progress-active .bp-dot { background: var(--accent); border-color: var(--accent); color:#fff; box-shadow: 0 0 0 4px rgba(96,165,250,.18); }
  .bill-progress-rejected .bp-dot { background: rgba(239,68,68,.18); border-color:#ef4444; color:#f87171; }
  .bp-content { padding-top: 2px; }
  .bp-title { font-size:14px; font-weight:600; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .bp-title .bp-time { font-size:11px; color: var(--text-muted); font-weight:400; }
  .bp-desc { font-size:12px; color: var(--text-secondary); margin-top:4px; line-height:1.5; }
  /* 提单原件占位预览 */
  .bill-original-preview { padding: 4px; }
  .bop-page {
    background: #f5f1e6; color:#1a1810; border:1px solid #d6cfb8;
    border-radius: 6px; padding: 18px 20px; box-shadow: 0 4px 14px rgba(0,0,0,.4);
    font-family: 'Georgia', 'Times New Roman', serif; position: relative; overflow:hidden;
  }
  .bop-header {
    display:flex; justify-content:space-between; align-items:flex-end;
    border-bottom: 2px double #8b7e55; padding-bottom: 8px; margin-bottom: 12px;
  }
  .bop-stamp { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color:#5b4d22; }
  .bop-no { font-family: monospace; font-size: 13px; color:#1a1810; }
  .bop-grid {
    display:grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  }
  .bop-lbl { font-size: 10px; color:#8b7e55; text-transform: uppercase; letter-spacing:.5px; }
  .bop-val { font-size: 13px; color:#1a1810; }
  .bop-watermark {
    position:absolute; right:-30px; bottom:10px;
    font-size: 48px; color: rgba(139,126,85,.18); transform: rotate(-12deg);
    font-weight:700; letter-spacing: 4px; pointer-events:none;
  }
  /* 信息 Tab 表 */
  .bill-info-table { width:100%; font-size: 13px; }
  .bill-info-table .bit-k { color: var(--text-muted); padding: 8px 12px 8px 0; width: 140px; vertical-align: top; }
  .bill-info-table .bit-v { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
  .nft-token-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700; color: #60a5fa; letter-spacing: .03em; }
  .nft-token-name { font-size: 13px; font-weight: 600; margin-top: 2px; }
  .jnft-placeholder { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
  .flow-mini-steps {
    display:flex; flex-direction:column; gap:6px; text-align:left;
    margin: 10px auto 14px; max-width:360px;
    background: var(--bg-card2); border:1px solid var(--border);
    border-radius: var(--radius); padding: 12px 14px;
  }
  .flow-mini-step {
    display:flex; align-items:flex-start; gap:10px;
    font-size:12px; line-height:1.5; padding: 4px 0;
    position: relative;
  }
  .flow-mini-step + .flow-mini-step::before {
    content:''; position:absolute; left:11px; top:-6px; width:1px; height:8px;
    background: var(--border);
  }
  .flow-mini-step .fs-num {
    flex:0 0 22px; height:22px; border-radius:50%;
    background:var(--bg-card); color:var(--text-muted);
    border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    font-size:11px; font-weight:700;
  }
  .flow-mini-step.active .fs-num {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 0 0 3px rgba(96,165,250,.18);
  }
  .flow-mini-step.done .fs-num {
    background: rgba(34,197,94,.18); border-color: #22c55e; color: #4ade80;
  }
  .flow-mini-step.done .fs-num::before { content:'✓'; }
  .flow-mini-step.done .fs-num span { display:none; }
  .flow-mini-step .fs-label { color: var(--text-secondary); }
  .flow-mini-step.active .fs-label { color: var(--text); font-weight:600; }
  .flow-mini-step.done .fs-label { color: var(--text-muted); }
  .flow-mini-step .fs-hint {
    display:block; font-size:11px; color:var(--text-muted); margin-top:2px;
    opacity:.85;
  }
  .flow-mini-step.done .fs-hint { opacity:.55; }
  .btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
  .stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px 20px;
    min-width: 0;
  }
  .stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
  .stat-value { font-size: clamp(18px, 1.65vw, 22px); font-weight: 700; margin-bottom: 4px; line-height: 1.08; }
  .stat-sub { font-size: 11px; color: var(--text-secondary); }
  .metric-text {
    display: inline-flex;
    align-items: baseline;
    gap: .12em .34em;
    max-width: 100%;
    white-space: normal;
    vertical-align: baseline;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .metric-number {
    flex: 1 1 auto;
    font-size: 1.08em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
    color: inherit;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .metric-unit {
    flex: 0 0 auto;
    font-size: .66em;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .03em;
    color: var(--text-secondary);
  }
  .amount-value,
  .money-value,
  .numeric-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
  }
  .metric-amount .metric-unit { color: color-mix(in srgb, var(--text-secondary) 78%, currentColor); }
  .metric-count .metric-unit { color: var(--text-muted); }
  .stat-value .metric-number,
  .borrow-hero-amount .metric-number,
  .borrow-quota-chart-center strong .metric-number,
  .borrow-quota-metric strong .metric-number,
  .dashboard-pool-available strong .metric-number,
  .pool-borrow-available strong .metric-number,
  .pool-borrow-available-badge strong .metric-number,
  .loan-summary-value .metric-number {
    font-size: 1.12em;
  }
  .stat-value .metric-unit,
  .borrow-hero-amount .metric-unit,
  .borrow-quota-chart-center strong .metric-unit,
  .borrow-quota-metric strong .metric-unit,
  .dashboard-pool-available strong .metric-unit,
  .pool-borrow-available strong .metric-unit,
  .pool-borrow-available-badge strong .metric-unit,
  .loan-summary-value .metric-unit {
    font-size: .56em;
    font-weight: 700;
  }
  .stat-card-rich { display:flex; flex-direction:column; gap:10px; min-height:172px; padding:16px 18px; }
  .stat-card-rich .stat-label { margin-bottom: 0; }
  .stat-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .stat-card-pill {
    font-size: 10px; padding: 2px 8px; border-radius: 999px;
    font-weight: 600; letter-spacing: .2px;
  }
  .stat-card-rich .stat-value { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.08; margin-bottom: 0; }
  .stat-card .stat-value,
  .stat-card-rich .stat-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .stat-card-rich .stat-rows {
    margin-top: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
    padding-top: 10px; border-top: 1px dashed var(--border);
  }
  .stat-card-rich .stat-row { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .stat-card-rich .stat-row-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
  .stat-card-rich .stat-row-val { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
  .stat-card-rich .stat-row-val.muted { color: var(--text-secondary); font-weight: 500; }
  .stat-card-rich .stat-sub { margin-top: 0; }

  /* ============================================================
     BUTTONS
  ============================================================ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius);
    font-size: 13px; font-weight: 500; cursor: pointer;
    border: none; transition: background-color .15s, border-color .15s, color .15s, opacity .15s; white-space: nowrap;
    position: relative; z-index: 2;
    pointer-events: auto;
  }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary { background: var(--bg-card2); color: var(--text-primary); border: 1px solid var(--border); }
  .btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-muted); }
  .btn-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
  .btn-success:hover { background: #0d3520; }
  .btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }
  .btn-danger:hover { background: #3d1515; }
  .btn-warning { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow); }
  .btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
  .btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }
  .btn-lg { padding: 12px 24px; font-size: 14px; width: 100%; border-radius: var(--radius-lg); }
  .btn-sm { padding: 5px 10px; font-size: 12px; }
  .btn:disabled { opacity: .4; cursor: not-allowed; }

  /* ============================================================
     FORMS
  ============================================================ */
  .form-group { margin-bottom: 16px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
  .form-label .req { color: var(--red); }
  .form-input, .form-select, .form-textarea {
    width: 100%; padding: 9px 12px;
    background: var(--bg-base); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-primary);
    font-size: 13px; transition: border-color .15s;
    font-family: inherit;
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  }
  .form-textarea { resize: vertical; min-height: 80px; }
  .form-select { cursor: pointer; }
  .form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
  .form-error {
    margin-top: 5px;
    color: var(--red);
    font-size: 11px;
    line-height: 1.35;
  }
  .input-group { position: relative; }
  .input-prefix {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary); font-size: 13px; pointer-events: none;
    line-height: 1;
  }
  .input-prefix + .form-input { padding-left: 30px; }
  /* 金额输入框右侧单位（USDT / USD / HSK 等）*/
  .input-unit {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 12px; font-weight: 600;
    pointer-events: none; letter-spacing: .03em;
    background: var(--bg-card2);
    padding: 3px 8px; border-radius: 6px;
    border: 1px solid var(--border);
    min-width: 52px; text-align: center; z-index: 2;
  }
  .input-group.with-unit .form-input,
  .input-group:has(.input-unit) .form-input { padding-right: 86px; }
  /* 兼容旧 .input-suffix-btn（按钮型后缀，可点击）*/
  .input-suffix-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  }
  /* 数字金额输入框：让数字居右更易看 */
  .form-input.amount-input {
    text-align: right; font-variant-numeric: tabular-nums;
    font-size: 18px; font-weight: 600; letter-spacing: .01em;
  }

  /* ============================================================
     BADGES & TAGS
  ============================================================ */
  .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 20px;
    font-size: 11px; font-weight: 500;
    border: 0;
  }
  .badge-green { background: rgba(63,185,80,.14); color: #7ee787; }
  .badge-yellow { background: rgba(210,153,34,.16); color: #f2cc60; }
  .badge-red { background: rgba(248,81,73,.14); color: #ff938a; }
  .badge-orange { background: rgba(227,112,42,.16); color: #f6a86b; }
  .badge-blue { background: rgba(96,165,250,.16); color: #93c5fd; }
  .badge-purple { background: rgba(163,113,247,.16); color: #c4b5fd; }
  .badge-gray,
  .badge-muted { background: rgba(139,148,158,.14); color: #c9d1d9; }
  .bill-nft-destroyed-mark {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(139,148,158,.14);
    color: #c9d1d9;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
  }
  .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
  .dot-green { background: var(--green); }
  .dot-yellow { background: var(--yellow); }
  .dot-red { background: var(--red); }
  .dot-orange { background: var(--orange); }
  .dot-gray { background: var(--text-muted); }

  /* ============================================================
     PROGRESS & HEALTH
  ============================================================ */
  .progress-bar { height: 6px; background: var(--bg-card2); border-radius: 3px; overflow: hidden; }
  .progress-fill { height: 100%; border-radius: 3px; transition: width .3s; }
  .progress-green { background: var(--green); }
  .progress-yellow { background: var(--yellow); }
  .progress-red { background: var(--red); }
  .progress-blue { background: var(--accent); }

  .health-display {
    text-align: center; padding: 20px;
    background: var(--bg-card2); border-radius: var(--radius-lg);
  }
  .health-number { font-size: 40px; font-weight: 800; line-height: 1; }
  .health-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
  .health-safe { color: var(--green); }
  .health-warn { color: var(--yellow); }
  .health-danger { color: var(--red); }

  .risk-panel { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
  .risk-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
  .risk-metric {
    background: var(--bg-card2); border-radius: var(--radius); padding: 12px;
    border: 1px solid var(--border-light);
  }
  .risk-metric-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
  .risk-metric-value { font-size: 15px; font-weight: 700; }
  .risk-metric-sub { font-size: 10px; color: var(--text-secondary); margin-top: 4px; }
  .ltv-track {
    position: relative; height: 12px; background: var(--bg-card2);
    border-radius: 6px; overflow: visible; margin: 8px 0 6px;
  }
  .ltv-fill {
    height: 100%; border-radius: 6px; transition: width .3s, background .3s;
    max-width: 100%;
  }
  .ltv-marker {
    position: absolute; top: -4px; bottom: -4px; width: 2px;
    background: var(--red); z-index: 2;
  }
  .ltv-marker-label {
    position: absolute; top: 16px; transform: translateX(-50%);
    font-size: 10px; color: var(--red); white-space: nowrap;
  }
  .risk-legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); }
  .risk-formula {
    font-size: 11px; color: var(--text-muted); line-height: 1.7;
    background: var(--bg-card2); border-radius: var(--radius); padding: 12px; margin-top: 12px;
  }
  .risk-formula code { font-family: monospace; color: #60a5fa; font-size: 10px; }

  .jnft-risk-stack { display: flex; flex-direction: column; gap: 16px; }
  .jnft-risk-panel {
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
    border-left: 3px solid var(--purple);
  }
  .jnft-risk-panel.status-warn { border-left-color: var(--yellow); }
  .jnft-risk-panel.status-danger { border-left-color: var(--red); }
  .jnft-risk-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
  }
  .jnft-risk-panel .risk-panel { grid-template-columns: 140px 1fr; gap: 16px; }
  .jnft-risk-panel .health-number { font-size: 32px; }
  .jnft-card-risk {
    background: var(--bg-card2); border-radius: var(--radius); padding: 12px; margin-bottom: 14px;
    border: 1px solid var(--border-light);
  }
  .jnft-card-risk-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .jnft-card-risk .ltv-track { height: 8px; margin: 6px 0 4px; }

  @media (max-width: 768px) {
    .risk-panel { grid-template-columns: 1fr; }
    .risk-metrics { grid-template-columns: 1fr; }
    .jnft-risk-panel .risk-panel { grid-template-columns: 1fr; }
  }

  /* ============================================================
     TABLES
  ============================================================ */
  .table-wrap { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  thead th {
    padding: 10px 12px; text-align: left;
    color: var(--text-secondary); font-size: 11px;
    text-transform: uppercase; letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
  }
  tbody td { padding: 12px; border-bottom: 1px solid var(--border-light); }
  tbody tr:last-child td { border-bottom: none; }
  tbody tr:hover { background: var(--bg-hover); }

  /* ============================================================
     STEPS
  ============================================================ */
  .steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
  .step-item { display: flex; align-items: center; gap: 8px; }
  .step-circle {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
  }
  .step-circle.active { background: var(--accent); color: #fff; }
  .step-circle.done { background: var(--green); color: #fff; }
  .step-circle.pending { background: var(--bg-card2); color: var(--text-muted); border: 1px solid var(--border); }
  .step-label { font-size: 12px; white-space: nowrap; }
  .step-label.active { color: var(--text-primary); font-weight: 500; }
  .step-label.done { color: var(--green); }
  .step-label.pending { color: var(--text-muted); }
  .step-line { flex: 1; height: 1px; background: var(--border); min-width: 24px; }
  .step-line.done { background: var(--green); }

  /* ============================================================
     SPLIT LAYOUT
  ============================================================ */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .split-3-2 { grid-template-columns: 3fr 2fr; }
  .split-2-3 { grid-template-columns: 2fr 3fr; }

  /* ============================================================
     NFT CARDS
  ============================================================ */
  .nft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .nft-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color .15s, transform .15s;
    cursor: pointer;
    display: flex; flex-direction: column;
  }
  .nft-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .nft-card.locked { opacity: .8; }
.borrow-nft-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.borrow-nft-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.borrow-nft-selectable {
  cursor: pointer;
  position: relative;
}
.borrow-nft-selected {
  border-color: rgba(96,165,250,.9) !important;
  box-shadow: 0 0 0 2px rgba(96,165,250,.25), 0 18px 34px rgba(37,99,235,.18);
}
.borrow-nft-selected .nft-body {
  background: rgba(37,99,235,.08);
}
.borrow-select-status {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
}
.borrow-select-status strong {
  font-size: 16px;
  font-weight: 800;
}
.borrow-nft-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px;
  background: linear-gradient(180deg, rgba(37,99,235,.14), rgba(15,23,42,.02));
  pointer-events: none;
}
.borrow-nft-overlay span {
  border: 1px solid rgba(147,197,253,.55);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(15,23,42,.72);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 700;
}
.bill-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bill-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.bill-row-main,
.bill-row-meta {
  min-width: 0;
}
.bill-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bill-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.pledge-pool-row-actions {
  align-items: center;
}
.pledge-pool-select {
  width: 220px;
  min-height: 32px;
}
.bill-row-list-compact {
  gap: 6px;
}
.bill-row-compact {
  grid-template-columns: minmax(260px, 1.5fr) minmax(240px, 1fr);
  gap: 10px;
  padding: 10px 12px;
}
.bill-row-compact .bill-row-meta {
  justify-content: flex-end;
  gap: 8px;
}
.bill-row-compact .text-sm {
  line-height: 1.25;
}
.list-id-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.list-id-label {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}
.list-id-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow-wrap: normal;
}
.list-id-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.list-id-link:hover {
  color: var(--accent);
}
.nft-bill-link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nft-bill-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7dd3fc;
  padding: 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nft-bill-link:hover {
  color: var(--accent);
}
.admin-filter-tabs {
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-filter-tabs .tab {
  min-width: 92px;
}
.admin-bills-toolbar {
  align-items: center;
  gap: 12px;
}
.admin-bills-toolbar-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-workbench-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-workbench-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.borrower-nft-pool-hero {
  display: block;
  background: linear-gradient(135deg, rgba(239, 247, 255, .96), rgba(255, 255, 255, .96));
  border-color: rgba(96, 165, 250, .26);
}
.borrower-nft-pool-hero-copy {
  min-width: 0;
}
.borrower-nft-pool-hero-note {
  color: #0b63ce;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.admin-list-row.bill-row-compact {
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.65fr) minmax(120px, auto);
  align-items: center;
}
.admin-aligned-row.bill-row-compact {
  grid-template-columns: minmax(220px, 1.25fr) minmax(138px, .85fr) minmax(146px, .9fr) minmax(184px, 1fr) minmax(148px, 148px) minmax(186px, 186px);
}
#page-admin-bills .admin-review-aligned-row.bill-row-compact {
  grid-template-columns: minmax(230px, 1.35fr) minmax(162px, .95fr) minmax(136px, .78fr) minmax(210px, 1.05fr) minmax(148px, 148px) minmax(232px, 232px);
  align-items: stretch;
}
#page-admin-bills .admin-review-aligned-row .admin-review-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
#page-admin-bills .admin-review-aligned-row .admin-review-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
#page-admin-bills .admin-review-aligned-row .admin-review-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  min-width: 0;
}
#page-admin-bills .admin-review-aligned-row .admin-review-subline .text-xs {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-admin-bills .admin-review-aligned-row .admin-review-col-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .02em;
}
#page-admin-bills .admin-review-aligned-row .admin-review-company strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-admin-bills .admin-review-aligned-row .admin-review-status {
  min-width: 148px;
  max-width: 148px;
  justify-content: flex-start;
  align-items: center;
}
#page-admin-bills .admin-review-aligned-row .admin-review-actions {
  min-width: 232px;
  max-width: 232px;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#page-admin-bills .admin-review-aligned-row .admin-review-actions .btn {
  white-space: nowrap;
}
#page-admin-bills .admin-nft-mint-shell {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
#page-admin-bills .admin-aligned-row.admin-mint-aligned-row.bill-row-compact {
  grid-template-columns: minmax(230px, 1.35fr) minmax(144px, .9fr) minmax(148px, .95fr) minmax(210px, 1.1fr) minmax(186px, 186px);
}
#page-admin-bills .admin-aligned-row.admin-mint-aligned-row .admin-row-status-hidden {
  display: none;
}
#page-admin-bills .admin-aligned-row.admin-mint-aligned-row .admin-row-actions {
  min-width: 186px;
  max-width: 186px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
#page-admin-bills .admin-nft-mint-shell .admin-mint-subtabs {
  margin-top: 0;
  padding-left: 0;
}
#page-admin-bills .admin-aligned-row .list-row-status {
  min-width: 148px;
  max-width: 148px;
  justify-content: flex-start;
}
#page-admin-bills .admin-aligned-row .admin-row-actions {
  min-width: 186px;
  max-width: 186px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
#page-admin-bills .admin-aligned-row .admin-row-actions .btn {
  white-space: nowrap;
}
.admin-list-row .bill-row-actions {
  align-items: center;
  min-width: 112px;
}
.admin-list-row .list-row-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.list-row-status .loan-stage-hint {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
  max-width: 180px;
}

/* Unified list rail (operator / lender) */
:root {
  /* Allow text columns to shrink so actions never overflow the card. */
  --ulist-grid: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, .95fr) minmax(0, 1.05fr) var(--ulist-status-width) var(--ulist-action-width);
  --ulist-status-width: 148px;
  --ulist-action-width: 220px;
}
.ulist-row {
  display: grid;
  /* smoke guardrail keeps the baseline track explicit */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, .95fr) minmax(0, 1.05fr) 148px 220px;
  grid-template-columns: var(--ulist-grid);
  align-items: center;
  gap: 10px;
  min-height: 0;
}
.ulist-col {
  min-width: 0;
}
.ulist-col-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ulist-col-amount,
.ulist-col-time,
.ulist-col-party {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ulist-label {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}
.ulist-value {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.ulist-row .ulist-value,
.ulist-row .ulist-label,
.ulist-row .list-id-value,
.ulist-row .loan-stage-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ulist-row .ulist-col-main .text-xs {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ulist-col-status {
  width: var(--ulist-status-width);
  min-width: var(--ulist-status-width);
  max-width: var(--ulist-status-width);
}
.ulist-col-status .list-row-status {
  width: 100%;
  min-width: 0;
}
.ulist-col-actions {
  width: var(--ulist-action-width);
  min-width: var(--ulist-action-width);
  max-width: var(--ulist-action-width);
}
.ulist-col-actions .list-row-actions {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}
.ulist-col-actions .btn {
  white-space: nowrap;
}
@media (max-width: 1024px) {
  :root {
    --ulist-status-width: 132px;
    --ulist-action-width: 188px;
    --ulist-grid: minmax(0, 1fr) var(--ulist-status-width) var(--ulist-action-width);
  }
  .ulist-row {
    align-items: start;
    row-gap: 8px;
  }
  .ulist-col-main {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .ulist-col-amount,
  .ulist-col-time,
  .ulist-col-party {
    grid-column: 1;
  }
  .ulist-col-status {
    grid-column: 2;
    grid-row: 1;
  }
  .ulist-col-actions {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
}
@media (max-width: 768px) {
  :root {
    /* Drop the fixed actions column; actions move to the next row. */
    --ulist-status-width: 132px;
    --ulist-grid: minmax(0, 1fr) var(--ulist-status-width);
  }
  .ulist-row {
    gap: 8px;
    align-items: start;
  }
  .ulist-col-main {
    grid-column: 1;
    grid-row: 1;
  }
  .ulist-col-status {
    grid-column: 2;
    grid-row: 1;
  }
  .ulist-col-amount {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .ulist-col-time {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .ulist-col-party {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  .ulist-col-actions {
    grid-column: 1 / -1;
    grid-row: 5;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .ulist-col-actions .list-row-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Unified multi-platform list track */
:root {
  --platform-list-grid: minmax(210px, 1.25fr) minmax(136px, .88fr) minmax(148px, .92fr) minmax(210px, 1.05fr) minmax(148px, 148px) minmax(220px, 220px);
  --platform-list-status-width: 148px;
  --platform-list-action-width: 220px;
}
.platform-list-row.bill-row-compact {
  display: grid;
  /* smoke guardrail keeps explicit baseline track */
  grid-template-columns: minmax(210px, 1.25fr) minmax(136px, .88fr) minmax(148px, .92fr) minmax(210px, 1.05fr) minmax(148px, 148px) minmax(220px, 220px);
  grid-template-columns: var(--platform-list-grid);
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
}
.platform-list-row .platform-list-col {
  min-width: 0;
}
.platform-list-row .platform-list-col-main {
  grid-column: 1;
}
.platform-list-row .platform-list-col-meta {
  grid-column: 2 / 5;
}
.platform-list-row .platform-list-col-status {
  grid-column: 5;
}
.platform-list-row .platform-list-col-actions {
  grid-column: 6;
  width: var(--platform-list-action-width);
  min-width: var(--platform-list-action-width);
  max-width: var(--platform-list-action-width);
  justify-content: flex-end;
  flex-wrap: nowrap;
  align-items: center;
}
.platform-list-row .list-row-field > strong,
.platform-list-row .list-id-value,
.platform-list-row .loan-stage-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.platform-list-row .list-row-field-amount > strong,
.platform-list-row .ulist-col-amount .ulist-value,
.list-row-field-amount > strong,
.ulist-col-amount .ulist-value,
.detail-val .metric-text,
.nft-meta-value .metric-text {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.list-row-field-amount .metric-text,
.ulist-col-amount .metric-text,
.detail-val .metric-text,
.nft-meta-value .metric-text {
  max-width: 100%;
}
.platform-list-col-status .list-row-status,
.platform-list-row .platform-list-col-status .list-row-status {
  min-width: 148px;
  max-width: 148px;
  min-width: var(--platform-list-status-width);
  max-width: var(--platform-list-status-width);
}
.platform-list-row .platform-list-col-actions .btn {
  white-space: nowrap;
}
.borrower-loan-row.platform-list-row .borrower-loan-content,
.my-bill-record-card.platform-list-row .my-bill-record-content,
.lender-list-row.platform-list-row .bill-row-meta {
  grid-column: 2 / 5;
}
.borrower-loan-row.platform-list-row .borrower-loan-side {
  grid-column: 5;
}
.borrower-loan-row.platform-list-row .borrower-loan-actions,
.my-bill-record-card.platform-list-row .my-bill-record-actions,
.lender-list-row.platform-list-row .platform-list-col-actions {
  grid-column: 6;
}
.my-bill-record-card.platform-list-row .my-bill-record-status {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
}
.my-bill-record-card.platform-list-row .my-bill-record-status .loan-stage-hint {
  max-width: 100%;
}
.lender-list-row.platform-list-row .list-row-status {
  justify-content: flex-start;
}
.platform-list-row .admin-credit-status-block {
  min-width: 0;
  max-width: 132px;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  white-space: normal;
}
.platform-list-row .admin-credit-status-block .loan-stage-hint {
  margin-top: 0;
  line-height: 1.35;
  white-space: nowrap;
}
.admin-issued-filter .list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-issued-filter-toolbar {
  align-items: flex-end;
}
.admin-issued-filter-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-issued-filter-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  margin-left: auto;
}
.admin-issued-filter-select {
  min-width: 220px;
}
.admin-issued-filter-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 107, 214, .08);
}
@media (max-width: 1040px) {
  :root {
    --platform-list-grid: minmax(200px, 1.15fr) minmax(128px, .82fr) minmax(132px, .82fr) minmax(180px, .95fr) minmax(132px, 132px) minmax(188px, 188px);
    --platform-list-status-width: 132px;
    --platform-list-action-width: 188px;
  }
}
.admin-nft-mint-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-nft-mint-summary,
.admin-nft-mint-panel {
  margin-top: 0;
}
.admin-mint-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-mint-subtabs {
  display: inline-flex;
  gap: 3px;
  max-width: 100%;
  margin-top: 0;
  padding: 3px;
  background: rgba(15, 23, 42, .42);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-mint-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}
.admin-mint-subtab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .04);
}
.admin-mint-subtab.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(37, 99, 235, .28), rgba(124, 58, 237, .22));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .22);
}
.admin-mint-subtab-count {
  min-width: 20px;
  justify-content: center;
}
.admin-nft-mint-panel-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.admin-nft-mint-row .list-row-status {
  gap: 6px;
}
.admin-nft-mint-row-compact.bill-row-compact {
  grid-template-columns: minmax(210px, .9fr) minmax(0, 1.8fr) minmax(128px, max-content) !important;
  min-height: 0;
  padding: 9px 12px !important;
  gap: 10px !important;
  align-items: center;
}
.admin-nft-mint-row-compact .bill-row-main,
.admin-nft-mint-row-compact .bill-row-meta,
.admin-nft-mint-row-compact .bill-row-actions {
  min-height: 0;
}
.admin-nft-mint-row-compact .bill-row-meta {
  display: block;
}
.admin-nft-mint-row-compact .list-row-fields {
  grid-template-columns: minmax(96px, .8fr) minmax(120px, .9fr) minmax(128px, 1fr) minmax(100px, .8fr);
  gap: 7px;
}
.admin-nft-mint-row-compact .list-row-field {
  padding: 0;
  min-height: 0;
}
.admin-nft-mint-row-compact .list-row-field > span {
  font-size: 10px;
}
.admin-nft-mint-row-compact .list-row-field > strong {
  font-size: 12px;
  line-height: 1.25;
}
.admin-mint-row-sub {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.25;
}
.admin-mint-row-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.admin-mint-row-tags .badge {
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.2;
}
.admin-nft-mint-row-compact .bill-row-actions {
  justify-content: flex-end;
  align-self: center;
}
.admin-nft-mint-row-compact .btn {
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}
.admin-nft-mint-panel {
  padding: 10px 12px !important;
}
.admin-nft-mint-list {
  gap: 8px;
}
@media (max-width: 900px) {
  .admin-nft-mint-row-compact.bill-row-compact {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .admin-nft-mint-row-compact .bill-row-meta {
    grid-column: 1 / -1;
    order: 3;
  }
}
@media (max-width: 720px) {
  .platform-list-row.bill-row-compact {
    grid-template-columns: 1fr !important;
  }
  .platform-list-row .platform-list-col-main,
  .platform-list-row .platform-list-col-meta,
  .platform-list-row .platform-list-col-status,
  .platform-list-row .platform-list-col-actions,
  .borrower-loan-row.platform-list-row .borrower-loan-content,
  .borrower-loan-row.platform-list-row .borrower-loan-side,
  .borrower-loan-row.platform-list-row .borrower-loan-actions,
  .my-bill-record-card.platform-list-row .my-bill-record-content,
  .my-bill-record-card.platform-list-row .my-bill-record-actions,
  .lender-list-row.platform-list-row .bill-row-meta {
    grid-column: auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }
  .platform-list-row .platform-list-col-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .my-bill-record-card.platform-list-row .my-bill-record-actions {
    padding-right: 0;
  }
  .platform-list-row .platform-list-col-status .list-row-status {
    min-width: 0;
    max-width: none;
  }
  .platform-list-row .list-row-field > strong,
  .platform-list-row .list-id-value,
  .platform-list-row .loan-stage-hint {
    white-space: normal;
    text-overflow: clip;
  }
  .admin-nft-mint-row-compact.bill-row-compact {
    grid-template-columns: 1fr !important;
  }
  .admin-nft-mint-row-compact .bill-row-actions {
    justify-content: flex-start;
  }
  .admin-nft-mint-row-compact .list-row-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-redeem-panel {
  overflow: hidden;
}
.admin-redeem-table td {
  vertical-align: top;
}
.admin-redeem-table .loan-record-actions {
  justify-content: flex-start;
}
.borrower-loan-row.bill-row-compact {
  grid-template-columns: var(--platform-list-grid);
  align-items: center;
  gap: 10px;
}
.borrower-loan-row .bill-row-meta {
  grid-column: 2 / 5;
  display: block;
  min-width: 0;
}
.borrower-loan-row .borrower-loan-side {
  grid-column: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding-right: 14px;
  min-width: 0;
}
.borrower-loan-row .bill-row-actions {
  align-items: center;
  min-width: 0;
}
.borrower-loan-row .borrower-loan-side .borrower-loan-actions {
  width: auto;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.borrower-loan-row .borrower-loan-side .borrower-loan-actions .btn {
  flex: 0 0 auto;
}
.borrower-loan-fields {
  display: grid;
  grid-template-columns: minmax(136px, 1.15fr) minmax(136px, 1.15fr) minmax(126px, 1fr) minmax(82px, .72fr) minmax(112px, .95fr);
  gap: 8px 12px;
  min-width: 0;
}
.borrower-pending-loan-row .borrower-loan-fields {
  grid-template-columns: minmax(136px, 1.25fr) minmax(82px, .7fr) minmax(112px, .95fr) minmax(108px, .95fr) minmax(92px, .8fr);
}
.borrower-loan-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.borrower-loan-row .borrower-loan-side .borrower-loan-status {
  width: auto;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
}
.borrower-loan-status .badge,
.borrower-loan-status .loan-meta-chip {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.borrower-loan-status .loan-stage-hint {
  max-width: 170px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}
.borrower-loan-fields span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
}
.borrower-loan-fields strong {
  display: block;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.borrower-loan-fields .list-row-field-amount strong {
  white-space: normal;
}
.borrower-loan-fields .list-row-field-amount .metric-text {
  display: inline-flex;
  max-width: 100%;
}
.list-row-field-date>strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.my-txs-filter-panel {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card2);
}
.my-txs-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.my-txs-count {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96,165,250,.12);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
}
.my-txs-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
}
.my-txs-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.my-txs-filter-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.my-txs-select {
  width: 100%;
  min-height: 36px;
  background-color: var(--bg-card);
  border-color: rgba(96,165,250,.22);
  color: var(--text-primary);
  font-size: 12px;
}
.my-txs-select:hover {
  border-color: rgba(96,165,250,.45);
}
.my-txs-filter-actions {
  display: flex;
  align-items: flex-end;
}
.my-txs-status-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.my-txs-status-tabs .logs-chip {
  min-height: 30px;
}
.my-txs-filter-grid-compact {
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-top: 12px;
}
.my-txs-search-btn {
  min-height: 36px;
  padding-inline: 18px;
  white-space: nowrap;
}
.my-txs-empty {
  text-align: center;
}
.drawer-wide {
  width: min(560px, 100vw);
  right: -580px;
}
.my-bill-records-filter-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}
.my-bill-record-card .list-id-field {
  min-width: 0;
}
.bill-library-list {
  gap: 10px;
}
.bill-library-card.bill-row-compact {
  grid-template-columns: minmax(210px, 1fr) minmax(420px, 1.8fr) minmax(220px, auto);
  align-items: center;
}
.bill-library-identifiers {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.bill-library-status-tabs .logs-chip {
  gap: 6px;
}
.bill-library-main-tabs {
  margin-bottom: 12px;
}
.bill-library-main-tabs .logs-chip {
  min-height: 32px;
}
.bill-entry-method-tabs {
  align-self: flex-start;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card2);
}
.bill-entry-method-tab {
  min-height: 32px;
  border-radius: 999px;
}
.bill-entry-method-tab.active {
  border-color: rgba(96,165,250,.34);
}
.detail-view-page > .bill-entry-method-tabs {
  margin-top: -2px;
}
.bill-library-entry-tabs-wrap {
  align-items: center;
}
.bill-library-kpi-grid .stat-card {
  min-width: 0;
}
.borrower-bill-record-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px 14px;
  min-width: 0;
}
.borrower-bill-record-fields span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
}
.borrower-bill-record-fields strong {
  display: block;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.borrower-bill-record-fields .my-bill-record-note {
  grid-column: 1 / -1;
}
.borrower-bill-record-fields .my-bill-record-note strong {
  white-space: normal;
}
.bill-operation-card.bill-row-compact {
  grid-template-columns: minmax(210px, .78fr) minmax(520px, 2fr);
  align-items: center;
}
.bill-operation-fields {
  grid-template-columns: repeat(6, minmax(104px, 1fr));
}
.bill-operation-fields .list-row-field-id {
  grid-column: span 1;
}
.bill-operation-fields .list-row-field-id strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
}
@media (max-width: 720px) {
  .drawer-wide {
    right: -100vw;
    width: 100vw;
  }
  .my-txs-filter-head {
    align-items: stretch;
  }
  .my-txs-filter-grid,
  .my-bill-records-filter-grid,
  .bill-library-card.bill-row-compact,
  .bill-operation-card.bill-row-compact,
  .borrower-bill-record-fields {
    grid-template-columns: 1fr;
  }
  .borrower-hub-tabs-wrap {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }
  .borrower-hub-header-tabs,
  .borrower-hub-tabs-actions {
    width: 100%;
  }
  .borrower-hub-tabs-actions {
    justify-content: flex-start;
  }
  .bill-entry-method-tabs,
  .bill-library-entry-tabs-wrap {
    width: 100%;
  }
  .bill-entry-method-tabs .logs-chip {
    flex: 1 1 0;
  }
  .my-txs-filter-actions,
  .my-txs-search-btn {
    width: 100%;
  }
}
.borrower-unminted-row.bill-row-compact {
  grid-template-columns: minmax(240px, 1.25fr) minmax(300px, 1fr) auto;
  align-items: center;
}
.borrower-unminted-row .bill-row-meta {
  justify-content: flex-start;
}
.borrower-unminted-actions {
  min-width: 92px;
  justify-content: flex-end;
  white-space: nowrap;
}
.borrower-hub-tabs-wrap {
  position: sticky;
  top: 74px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(13,17,23,.96), rgba(13,17,23,.88));
  backdrop-filter: blur(12px);
}
.borrower-hub-header-tabs {
  margin-bottom: 0;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}
.borrower-hub-header-tabs .tab {
  gap: 6px;
  white-space: nowrap;
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(148,163,184,.14);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.borrower-hub-header-tabs .tab.active .tab-count {
  background: rgba(96,165,250,.2);
  color: var(--text-primary);
}
.borrower-hub-tabs-actions {
  flex: 0 0 auto;
}
.hub-page-stack > section {
  scroll-margin-top: 128px;
}
.batch-redeem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.batch-redeem-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.batch-redeem-card:hover {
  border-color: rgba(96,165,250,.55);
}
.batch-redeem-card.selected {
  border-color: rgba(96,165,250,.95);
  background: linear-gradient(180deg, rgba(0,107,214,.08), var(--bg-card) 48%);
  box-shadow: 0 0 0 2px rgba(96,165,250,.22), 0 14px 30px rgba(18,56,98,.12);
}
.nft-selection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148,163,184,.14);
  background: rgba(248,252,255,.82);
}
.batch-redeem-check {
  position: static;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.batch-redeem-selected {
  display: none;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.batch-redeem-card.selected .batch-redeem-selected {
  display: inline-flex;
}
.batch-redeem-card .nft-body,
.batch-redeem-card .list-id-value {
  min-width: 0;
}
.pool-batch-redeem-grid {
  margin-top: 12px;
}
.pool-batch-redeem-summary {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card2);
}
.pool-batch-redeem-summary.is-invalid {
  border-color: rgba(248,81,73,.55);
  background: rgba(248,81,73,.08);
}
.pool-batch-redeem-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}
.redeem-modal {
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}
.redeem-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
}
.pool-detail-body .stat-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}
.pool-detail-body .stat-value .metric-text {
  max-width: 100%;
}
.detail-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 1040px);
}
.detail-view-page {
  max-width: 980px;
}
.detail-list-page {
  max-width: 1040px;
}
.detail-page-head,
.detail-status-card,
.detail-action-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-page-head {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.detail-page-head > div:first-child {
  min-width: 0;
}
.detail-page-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.25;
}
.detail-status-card,
.detail-page-section {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card2);
}
.detail-page-section h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: .04em;
}
.detail-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bill-upload-detail-grid {
  margin-top: 16px;
}
.bill-attachment-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.bill-attachment-chip {
  display: inline-flex;
  flex-direction: column;
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 10px;
  background: rgba(15,23,42,.38);
  text-align: left;
}
.bill-attachment-chip strong,
.bill-attachment-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bill-attachment-chip small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}
.detail-page-media {
  width: 100%;
  max-width: 320px;
}
.detail-page-media .nft-cover {
  border-radius: var(--radius-lg);
}
.detail-page-grid-media {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
}
.bill-nft-detail-shell {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
}
.bill-nft-detail-page .detail-page-media {
  max-width: 360px;
}
.bill-nft-detail-page .nft-cover {
  background:
    radial-gradient(circle at 20% 16%, rgba(0,107,214,.20), transparent 32%),
    linear-gradient(135deg, #eef7ff 0%, #ffffff 50%, #dcecff 100%);
  border: 1px solid rgba(0,107,214,.18);
  box-shadow: 0 14px 30px rgba(16,54,94,.10);
}
.bill-nft-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  background:
    radial-gradient(circle at 92% 12%, rgba(0,107,214,.08), transparent 32%),
    linear-gradient(135deg, #fff, #f6fbff);
}
.bill-nft-hero-summary .nft-detail-summary-grid {
  grid-template-columns: minmax(150px, 1fr) minmax(110px, .72fr) minmax(220px, 1.35fr) minmax(130px, .85fr);
  gap: 10px;
}
.bill-nft-hero-summary .nft-detail-summary-item {
  padding: 10px 12px;
  background: #fff;
}
.bill-nft-detail-layout {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: start;
}
.bill-nft-detail-shell.bill-nft-detail-layout.detail-page-grid-media {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}
.bill-nft-visual-card {
  position: sticky;
  top: 16px;
}
.bill-nft-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bill-nft-info-card {
  min-width: 0;
  height: 100%;
  border-color: #d7e7f8;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.bill-nft-info-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.bill-nft-info-card h4::before {
  content: '';
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
}
.bill-nft-doc-section,
.bill-nft-lifecycle-section {
  grid-column: 1 / -1;
}
.bill-nft-chain-section .detail-list,
.bill-nft-pledge-section .detail-list {
  grid-template-columns: 1fr;
}
.bill-upload-detail-grid-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bill-upload-detail-grid-side .detail-page-section {
  min-width: 0;
}
.bill-upload-detail-grid-side .detail-page-section h4 {
  margin-bottom: 8px;
}
.bill-nft-detail-page .detail-row {
  gap: 12px;
  align-items: start;
}
.bill-nft-detail-page .detail-key {
  min-width: 88px;
}
.bill-nft-detail-page .detail-val {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bill-nft-detail-page .bill-attachment-list {
  justify-content: flex-start;
}
.bill-nft-detail-page .bill-attachment-chip {
  background: #fff;
  border-color: rgba(0,107,214,.18);
  box-shadow: none;
}
.bill-nft-detail-page .chain-value {
  white-space: normal;
  word-break: break-word;
}
.bill-nft-detail-page .chain-value-tx {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(0,107,214,.20);
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.45;
}
.bill-nft-detail-page a.chain-value-tx:hover {
  border-color: rgba(0,107,214,.42);
  background: #e4f1ff;
}
.nft-detail-shell {
  align-items: stretch;
}
.nft-detail-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  min-width: 0;
}
.nft-detail-core-card {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.98)),
    var(--bg-card);
  border-color: #d7e7f8;
  box-shadow: 0 10px 24px rgba(0,107,214,.06);
}
.nft-detail-collapsible {
  background: #f8fafc;
  border-style: dashed;
}
.nft-detail-collapsible summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .03em;
}
.nft-detail-collapsible summary::marker {
  color: var(--accent);
}
.nft-detail-collapsible[open] summary {
  margin-bottom: 10px;
  color: var(--accent);
}
.nft-detail-collapsible-body {
  display: grid;
  gap: 10px;
}
.nft-detail-collapsible-subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}
.nft-detail-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.nft-detail-summary-item {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dce8f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.nft-detail-summary-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
}
.nft-detail-summary-item strong {
  display: block;
  min-width: 0;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.nft-detail-summary-item.is-amount strong {
  color: var(--accent);
  font-size: 15px;
}
.detail-page-info-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.detail-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(56,189,248,.08), rgba(15,23,42,.54)),
    var(--bg-card2);
}
.detail-summary-card > div:first-child {
  flex: 1 1 260px;
  min-width: 0;
}
.detail-summary-side {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}
.detail-summary-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
.detail-summary-actions .btn {
  min-height: 34px;
  white-space: normal;
}
.detail-list-kpi-grid {
  margin-bottom: 0;
}
.loan-detail-compact {
  gap: 10px;
  max-width: 1020px;
}
.loan-detail-header {
  align-items: center;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(232,242,255,.92), rgba(255,255,255,.98) 52%),
    var(--bg-card);
  border-color: #cfe0f4;
  box-shadow: 0 10px 24px rgba(0,107,214,.07);
}
.loan-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}
.loan-detail-title-row h3 {
  margin: 0;
}
.loan-detail-title-row .badge {
  border: 1px solid currentColor;
  font-weight: 650;
}
.loan-detail-title-row .badge-green { background: var(--green-bg); color: var(--green); }
.loan-detail-title-row .badge-yellow { background: var(--yellow-bg); color: var(--yellow); }
.loan-detail-title-row .badge-red { background: var(--red-bg); color: var(--red); }
.loan-detail-title-row .badge-orange { background: var(--orange-bg); color: var(--orange); }
.loan-detail-title-row .badge-blue { background: var(--accent-light); color: var(--accent); }
.loan-detail-title-row .badge-purple { background: var(--purple-bg); color: var(--purple); }
.loan-detail-title-row .badge-gray,
.loan-detail-title-row .badge-muted { background: #f1f5f9; color: var(--text-secondary); }
.loan-detail-header .toolbar-actions .btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: #cfe0f4;
  box-shadow: none;
}
.loan-detail-header .toolbar-actions .btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--accent);
  border-color: rgba(0,107,214,.32);
}
.loan-detail-id-card {
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-color: #d8e7f7;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,255,.96)),
    var(--bg-card);
  box-shadow: 0 8px 22px rgba(20,32,51,.05);
}
.loan-detail-id-card .font-mono {
  margin-top: 3px;
  font-size: 13px;
}
.loan-detail-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}
.loan-detail-kpi-card {
  min-height: 74px;
  padding: 12px 14px;
  border-color: #dce8f5;
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.loan-detail-kpi-card .stat-label {
  margin-bottom: 6px;
  font-size: 10px;
}
.loan-detail-kpi-card .stat-value {
  margin-bottom: 0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.05;
}
.loan-detail-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.loan-detail-info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 14px;
  border-color: #dce8f5;
  background: var(--bg-card);
}
.loan-detail-info-card h4,
.loan-detail-timeline-section h4,
.loan-detail-history-section h4 {
  margin-bottom: 8px;
  font-size: 12px;
}
.loan-detail-info-list {
  display: grid;
  gap: 0;
}
.loan-detail-info-list .detail-row {
  min-height: 34px;
  padding: 7px 0;
}
.loan-detail-timeline-section,
.loan-detail-history-section {
  padding: 12px 14px;
  border-color: #dce8f5;
  background: var(--bg-card);
}
.borrower-record-page-section {
  padding: 16px;
  background: rgba(255,255,255,.018);
}
.detail-page > .mt-16 {
  margin-top: 0 !important;
}
.detail-page .detail-row {
  min-width: 0;
}
.detail-page .detail-key {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}
.detail-page .detail-val,
.detail-page .list-id-value,
.detail-page .stat-value,
.detail-page .font-mono {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detail-page .toolbar-actions {
  min-width: 0;
  justify-content: flex-end;
}
.detail-page .toolbar-actions .btn {
  max-width: 100%;
  white-space: normal;
}
.detail-action-bar {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.025);
}
.detail-page-nft-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.record-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.record-timeline-flow {
  overflow: hidden;
}
.record-timeline-item {
  position: relative;
  display: flex;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.record-timeline-item.done {
  border-color: rgba(63,185,80,.28);
  background: rgba(63,185,80,.055);
}
.record-timeline-item.pending {
  color: var(--text-secondary);
  background: rgba(255,255,255,.012);
}
.record-timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  flex: 0 0 auto;
}
.record-timeline-item.done .record-timeline-dot {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(63,185,80,.12);
}
.record-timeline-item.pending .record-timeline-dot {
  background: var(--bg-card);
}
.record-timeline-main {
  min-width: 0;
  flex: 1 1 auto;
}
.record-timeline-title {
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
  word-break: keep-all;
}
.record-timeline-sub {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 10.5px;
  line-height: 1.35;
  word-break: break-word;
}
.record-timeline-item.pending .record-timeline-sub {
  color: var(--text-muted);
}
.loan-detail-timeline-flow {
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 6px;
}
.loan-detail-timeline-flow .record-timeline-item {
  min-height: 66px;
  padding: 8px 8px 8px 7px;
  color: var(--text-primary);
  border-color: #d5e4f4;
  background: #f7fbff;
}
.loan-detail-timeline-flow .record-timeline-item.done {
  border-color: rgba(18,147,95,.42);
  background: linear-gradient(180deg, #f2fbf7, #ffffff);
  box-shadow: inset 0 3px 0 rgba(0,107,214,.18);
}
.loan-detail-timeline-flow .record-timeline-item.pending {
  color: var(--text-secondary);
  border-color: #d9e6f4;
  background: #f1f6fc;
}
.loan-detail-timeline-flow .record-timeline-title {
  font-size: 11px;
}
.loan-detail-timeline-flow .record-timeline-sub {
  margin-top: 2px;
  font-size: 10px;
}
.record-timeline-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(148,163,184,.12);
  color: var(--text-muted);
  font-size: 9.5px;
  line-height: 1.45;
}
.record-timeline-item.done .record-timeline-state {
  background: rgba(63,185,80,.12);
  color: var(--green);
}
.loan-detail-timeline-flow .record-timeline-item.pending .record-timeline-title {
  color: #334155;
}
.loan-detail-timeline-flow .record-timeline-item.pending .record-timeline-sub {
  color: #66758a;
}
.loan-detail-timeline-flow .record-timeline-item.pending .record-timeline-state {
  background: #e7eef7;
  color: #52657d;
}
.loan-detail-timeline-flow .record-timeline-item.pending .record-timeline-dot {
  border-color: #9db4ce;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,107,214,.08);
}
.record-timeline-arrow {
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 1;
  width: 18px;
  height: 1px;
  background: #a9c8eb;
  transform: translateY(-50%);
  pointer-events: none;
}
.record-timeline-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid #8cb9e8;
  border-right: 1px solid #8cb9e8;
  transform: translateY(-50%) rotate(45deg);
}
.record-history-list .detail-val {
  max-width: 62%;
  text-align: right;
  word-break: break-word;
}
.loan-operation-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loan-operation-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid #dce8f5;
  border-radius: var(--radius);
  background: #fbfdff;
}
.loan-operation-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(63,185,80,.1);
}
.loan-operation-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.loan-operation-main strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.loan-operation-main span {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: right;
  overflow-wrap: anywhere;
}
.loan-operation-empty {
  padding: 4px 0;
}
.jnft-cover {
  position: relative;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(125,184,255,.48);
  background:
    radial-gradient(circle at 78% 18%, rgba(74,222,255,.34), transparent 26%),
    linear-gradient(135deg, #0b3d78, #0b63ce 54%, #0f8bdc);
  box-shadow: 0 18px 38px rgba(0,107,214,.2);
}
.jnft-cover-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 24px 24px;
}
.jnft-cover-head,
.jnft-cover-main,
.jnft-cover-foot {
  position: relative;
  z-index: 1;
}
.jnft-cover-head,
.jnft-cover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.jnft-cover-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 128px;
}
.jnft-cover-main em {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.jnft-cover-main strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: clamp(22px, 4.2vw, 34px);
  line-height: 1;
}
.jnft-cover-main small {
  font-size: 13px;
  opacity: .82;
}
.jnft-cover-foot .font-mono {
  color: #fff;
}
.chain-value {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  overflow-wrap: anywhere;
}
.nft-lifecycle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nft-lifecycle-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
}
.nft-lifecycle-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(7,134,81,.12);
}
.nft-lifecycle-main {
  min-width: 0;
}
.nft-lifecycle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.nft-lifecycle-head strong {
  font-size: 12px;
}
.nft-lifecycle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 11px;
}
.nft-lifecycle-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .detail-page-grid {
    grid-template-columns: 1fr;
  }
  .bill-nft-hero-card,
  .bill-nft-detail-shell,
  .bill-upload-detail-grid-side {
    grid-template-columns: 1fr;
  }
  .bill-nft-detail-shell.bill-nft-detail-layout.detail-page-grid-media,
  .bill-nft-info-grid {
    grid-template-columns: 1fr;
  }
  .bill-nft-hero-summary .nft-detail-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bill-nft-visual-card {
    position: static;
  }
  .bill-nft-detail-page .detail-page-media {
    max-width: 100%;
  }
  .bill-attachment-list {
    justify-content: flex-start;
  }
  .detail-page-media {
    max-width: 100%;
  }
  .detail-page {
    gap: 12px;
  }
  .record-timeline {
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: visible;
  }
  .loan-detail-header {
    align-items: stretch;
  }
  .loan-detail-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loan-detail-info-grid {
    grid-template-columns: 1fr;
  }
  .loan-detail-timeline-flow .record-timeline-item {
    min-height: 0;
  }
  .record-timeline-item {
    padding: 8px 10px;
  }
  .record-timeline-arrow {
    top: auto;
    right: auto;
    left: 12px;
    bottom: -8px;
    width: 1px;
    height: 9px;
    transform: none;
  }
  .record-timeline-arrow::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }
  .detail-page-head,
  .detail-status-card {
    align-items: stretch;
  }
  .detail-page-head .toolbar-actions,
  .detail-summary-side,
  .detail-summary-actions {
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
  }
  .detail-summary-actions .btn,
  .detail-page-head .toolbar-actions .btn {
    flex: 1 1 140px;
  }
  .detail-list-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .record-history-list .detail-val {
    max-width: 100%;
    text-align: left;
  }
  .loan-operation-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .loan-operation-main span {
    text-align: left;
  }
}
@media (max-width: 520px) {
  .detail-list-kpi-grid {
    grid-template-columns: 1fr;
  }
  .loan-detail-kpi-grid {
    grid-template-columns: 1fr;
  }
  .detail-page .detail-row {
    flex-direction: column;
    gap: 4px;
  }
  .detail-page .detail-val {
    text-align: left;
  }
}
.pledge-nft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(148,163,184,.14);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}
.pledge-nft-modal {
  height: min(860px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
}
.pledge-nft-modal .modal-body.pledge-nft-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding: 0;
}
.pledge-nft-fixed-top,
.pledge-nft-fixed-bottom {
  flex: 0 0 auto;
  background: rgba(10,16,28,.42);
}
.pledge-nft-fixed-top {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.pledge-nft-fixed-bottom {
  padding: 12px 20px 14px;
  border-top: 1px solid rgba(148,163,184,.12);
}
.pledge-nft-alert.alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-color: rgba(96,165,250,.2);
  background: rgba(37,99,235,.12);
}
.pledge-nft-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 20px;
  scrollbar-gutter: stable;
}
.pledge-nft-modal .modal-footer {
  border-top-color: rgba(148,163,184,.12);
  background: rgba(10,16,28,.5);
}

#pledge-nft-to-pool-modal {
  align-items: flex-start;
  padding-top: var(--modal-safe-top, 76px);
  padding-bottom: 28px;
}

#pledge-nft-to-pool-modal .pledge-nft-modal {
  margin-top: 0;
  height: min(860px, calc(100dvh - var(--modal-safe-top, 76px) - 28px));
  max-height: calc(100dvh - var(--modal-safe-top, 76px) - 28px);
}
.pledge-nft-target {
  min-width: 240px;
}
.pledge-nft-target .form-label {
  margin-bottom: 4px;
}
.pledge-nft-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.pledge-nft-select-card {
  cursor: pointer;
}
.pledge-nft-select-card .nft-meta {
  margin-top: 8px;
}
.admin-list-row .form-select-sm,
.admin-list-row .form-input-sm {
  width: auto;
  min-width: 118px;
  height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}
.platform-kpi-row.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.platform-row-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-row-list-compact {
  gap: 6px;
}
.platform-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(360px, 2fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.platform-row-review {
  grid-template-columns: minmax(220px, 1.15fr) minmax(260px, 1.3fr) minmax(260px, 1fr) auto;
}
.platform-row-main {
  min-width: 0;
}
.platform-row-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 11px;
}
.platform-row-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.platform-row-sub {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.platform-row-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px 12px;
  min-width: 0;
}
.platform-row-fields > div {
  min-width: 0;
}
.platform-row-fields span,
.platform-row-controls label > span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.platform-row-fields strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.platform-row-controls {
  display: grid;
  grid-template-columns: minmax(86px, 100px) minmax(132px, 148px);
  gap: 8px;
  align-items: end;
}
.platform-row-controls .form-select,
.platform-row-controls .form-input {
  height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.platform-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 96px;
}
.platform-row .compact-details {
  grid-column: 1 / -1;
  margin-top: -2px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
}
  .nft-cover {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #0d2040 0%, #1a1040 50%, #0d2030 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .nft-cover-art {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top center; display: block;
  }
  .nft-cover-main-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .nft-template-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
    filter: saturate(0.95) contrast(0.98);
  }
  .nft-cover-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.26) 72%, rgba(0,0,0,.48) 100%);
  }
  .nft-proof-thumb-wrap {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    width: 42%; aspect-ratio: 1/1;
    border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
    background: rgba(0,0,0,.25);
  }
  .nft-proof-thumb {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .nft-cover-token {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 10px; font-family: monospace; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
    background: rgba(0,0,0,.55); color: #fff; letter-spacing: .04em;
  }
  .nft-cover-bundle-tag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 10px; padding: 3px 8px; border-radius: 4px;
    background: rgba(163,113,247,.85); color: #fff; font-weight: 600;
  }
  .nft-cover-icon { font-size: 48px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); z-index: 1; }
  .nft-cover-route {
    position: absolute; bottom: 8px; left: 0; right: 0; z-index: 2;
    text-align: center; font-size: 11px; color: rgba(255,255,255,.85);
    font-family: monospace; text-shadow: 0 1px 4px rgba(0,0,0,.8);
  }
  .nft-cover-overlay {
    position: absolute; top: 8px; right: 8px; z-index: 2;
  }
  .credit-nft-panel-list {
    display: flex; flex-direction: column; gap: 10px;
    min-width: 0;
  }
  .credit-nft-card {
    display: grid; grid-template-columns: minmax(170px, 178px) minmax(0, 1fr);
    gap: 18px; cursor: default;
    align-items: center;
    padding: 14px;
    min-width: 0;
    min-height: 170px;
    overflow: hidden;
    border-color: rgba(125,211,252,.16);
    background:
      linear-gradient(135deg, rgba(14,165,233,.055), rgba(15,23,42,.2) 45%, rgba(34,197,94,.035)),
      var(--bg-card);
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
  }
  .credit-nft-card:hover {
    border-color: rgba(125,211,252,.26);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    transform: none;
  }
  .credit-nft-card .credit-nft-cover {
    min-height: 140px; border-radius: var(--radius);
  }
  .credit-nft-cover {
    align-items: stretch; justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    background:
      radial-gradient(circle at 25% 20%, rgba(45,212,191,.28), transparent 34%),
      radial-gradient(circle at 82% 78%, rgba(34,197,94,.2), transparent 38%),
      linear-gradient(145deg, #061b2a 0%, #0b1d35 48%, #07111f 100%);
    border: 1px solid rgba(94,234,212,.28);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      inset 0 -22px 44px rgba(2,6,23,.2);
  }
  .credit-nft-cover,
  .credit-nft-cover * {
    word-break: normal;
    overflow-wrap: normal;
  }
  .credit-nft-cover-grid,
  .credit-nft-cover-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .credit-nft-cover-grid {
    opacity: .22;
    background-image:
      linear-gradient(rgba(148,163,184,.2) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,163,184,.16) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.35) 70%, transparent);
  }
  .credit-nft-cover-glow {
    background:
      radial-gradient(circle at 50% 48%, rgba(134,239,172,.16), transparent 34%),
      linear-gradient(180deg, rgba(15,23,42,0), rgba(15,23,42,.28));
  }
  .credit-nft-cover::after {
    content: '';
    position: absolute; inset: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
  }
  .credit-nft-cover-head,
  .credit-nft-cover-main,
  .credit-nft-cover-title,
  .credit-nft-cover-foot {
    position: relative; z-index: 2;
  }
  .credit-nft-cover-head,
  .credit-nft-cover-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; min-width: 0;
    color: rgba(203,213,225,.74);
    font-size: 10px; font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .credit-nft-cover-head span,
  .credit-nft-cover-foot span {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .credit-nft-cover-head .credit-nft-cover-label {
    flex: 0 0 auto;
    overflow: visible;
    max-width: none;
    color: #e2e8f0;
    font-size: 11px;
    letter-spacing: .12em;
    text-overflow: clip;
  }
  .credit-nft-cover-main {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding: 0 8px;
    text-align: center;
  }
  .credit-nft-cover-title {
    width: 100%;
    color: #e2e8f0;
    font-size: clamp(18px, 2.7vw, 22px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: .08em;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(125,211,252,.22);
  }
  .credit-nft-cover-main em {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(203,213,225,.7);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .12em;
  }
  .credit-nft-cover-main strong {
    display: block;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    color: #86efac;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.03em;
    text-shadow: 0 0 22px rgba(134,239,172,.24);
  }
  .credit-nft-cover-main .credit-nft-cover-amount {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 100%;
    white-space: normal;
    text-overflow: clip;
  }
  .credit-nft-cover-amount span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
  }
  .credit-nft-cover-amount small {
    flex: 0 0 auto;
    color: rgba(203,213,225,.74);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
  }
  .credit-nft-cover-foot {
    color: rgba(226,232,240,.72);
    letter-spacing: normal;
    text-transform: none;
  }
  .credit-nft-cover-foot .font-mono {
    flex: 0 1 auto;
    max-width: 72%;
    word-break: normal;
    overflow-wrap: normal;
    white-space: nowrap;
    text-overflow: clip;
  }
  .credit-nft-body {
    display: flex; flex-direction: column; justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 0;
  }
  .credit-nft-body-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }
  .credit-nft-head-spacer {
    flex: 1 1 auto;
    min-width: 0;
  }
  .credit-nft-eyebrow {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
  }
  .credit-nft-title {
    margin-top: 3px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }
  .credit-nft-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .credit-nft-field {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(148,163,184,.12);
    border-radius: var(--radius);
    background: rgba(15,23,42,.36);
  }
  .credit-nft-field span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 4px;
  }
  .credit-nft-field strong,
  .credit-nft-field-value {
    display: block;
    min-width: 0;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }
  .credit-nft-field strong .metric-text,
  .credit-nft-field-value .metric-text {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .credit-nft-field:nth-child(2) strong {
    color: var(--green);
  }
.credit-nft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}
  .credit-nft-id-link {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  .credit-nft-id-link:hover {
    color: var(--accent);
  }
  @media (max-width: 760px) {
    .credit-nft-card {
      grid-template-columns: 1fr;
      gap: 12px;
      min-height: 0;
    }
    .credit-nft-card .credit-nft-cover {
      min-height: 132px;
    }
    .credit-nft-cover-title {
      font-size: clamp(20px, 7vw, 24px);
    }
    .credit-nft-cover-main strong {
      font-size: clamp(22px, 7.5vw, 28px);
    }
  }
  @media (max-width: 520px) {
    .credit-nft-body-head {
      flex-direction: column;
      gap: 8px;
    }
    .credit-nft-field-grid {
      grid-template-columns: 1fr;
    }
  }
  .jnft-project-cover {
    height: 116px; border-radius: var(--radius) var(--radius) 0 0;
    margin: -1px -1px 12px; overflow: hidden; position: relative;
  }
  .nft-art-thumb {
    width: 100%; max-width: 200px; height: 100px; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--border);
  }
  .bundle-select-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px; margin-top: 12px;
  }
  .bundle-select-card {
    background: var(--bg-card2); border: 2px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
    position: relative;
  }
  .bundle-select-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .bundle-select-card-pick {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 6px; background: rgba(0,0,0,0.55);
    border-radius: 999px; cursor: pointer;
  }
  .bundle-select-card-pick input { width: 14px; height: 14px; accent-color: var(--accent); }
  .bundle-select-card .nft-cover { height: 100px; }
  .bundle-distribute-table { width: 100%; font-size: 12px; margin-top: 12px; border-collapse: collapse; }
  .bundle-distribute-table th, .bundle-distribute-table td {
    padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border);
  }
  .bundle-distribute-table th { color: var(--text-muted); font-weight: 500; }
  .bundle-distribute-table tfoot td { padding-top: 10px; }
  .bundle-comp-line { padding: 3px 0; line-height: 1.45; }
  .bundle-comp-line + .bundle-comp-line { border-top: 1px dashed var(--border); }

  /* NFT 证书风格抽屉 */
  .nft-cert {
    padding: 14px 4px 4px;
    background:
      linear-gradient(180deg, rgba(124,58,237,.06) 0%, transparent 40%),
      repeating-linear-gradient(45deg, rgba(124,58,237,.02) 0 6px, transparent 6px 12px);
    border-radius: var(--radius);
  }
  .nft-cert-head {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border: 1px solid rgba(124,58,237,.4);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(56,189,248,.06) 100%);
    position: relative; overflow: hidden;
  }
  .nft-cert-head::before {
    content: 'TRADEGO · 提单 NFT'; position: absolute; right: -20px; bottom: -22px;
    font-size: 36px; font-weight: 800; color: rgba(124,58,237,.06);
    letter-spacing: 1px; transform: rotate(-8deg);
    white-space: nowrap; pointer-events: none;
  }
  .nft-cert-stamp {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: radial-gradient(circle, rgba(124,58,237,.3), rgba(124,58,237,.05));
    border: 2px solid rgba(196,181,253,.6); border-radius: 50%;
  }
  .nft-cert-titles { flex: 1; min-width: 0; }
  .nft-cert-id {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.5px;
  }
  .nft-cert-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

  .nft-cert-kpis {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 14px;
  }
  .nft-cert-kpis > div {
    padding: 8px 10px; background: var(--bg-card2);
    border: 1px solid var(--border); border-radius: 8px;
  }
  .nft-cert-kpi-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
  .nft-cert-kpi-val { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-top: 2px; }

  .nft-cert-section {
    margin: 14px 0; padding: 12px 14px;
    background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius);
  }
  .nft-cert-section-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    padding-bottom: 6px; border-bottom: 1px dashed var(--border);
  }
  .nft-cert-trail { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
  .nft-cert-trail-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 6px 0;
  }
  .nft-cert-trail-dot {
    width: 24px; height: 24px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    border-radius: 50%; border: 1.5px solid var(--border);
    background: var(--bg-card);
  }
  .nft-cert-trail-item.ok .nft-cert-trail-dot { border-color: var(--green); color: var(--green); }
  .nft-cert-trail-item.warn .nft-cert-trail-dot { border-color: var(--yellow); color: var(--yellow); }
  .nft-cert-trail-item.pending .nft-cert-trail-dot { color: var(--text-muted); }
  .nft-cert-trail-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
  .nft-cert-trail-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

  .nft-cert-sig {
    margin-top: 16px; padding: 10px 14px;
    border: 1px dashed rgba(124,58,237,.3); border-radius: var(--radius);
    font-size: 11px; color: var(--text-muted);
    background: rgba(124,58,237,.04);
    text-align: center; line-height: 1.6;
  }
  .demo-chip {
    display: inline-block; font-size: 9px; padding: 1px 5px; margin-left: 4px;
    border-radius: 3px; background: var(--bg-card2); color: var(--text-muted);
    border: 1px dashed var(--border); vertical-align: middle;
  }
  .notif-panel {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
    width: 380px; max-width: calc(100vw - 32px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow); z-index: 150;
    max-height: 540px; display: none; flex-direction: column; overflow: hidden;
  }
  .notif-panel.open { display: flex; }
  .notif-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    background: var(--bg-card2);
  }
  .notif-panel-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
  .notif-panel-actions { display: flex; gap: 6px; }
  .notif-panel-actions .btn { padding: 4px 8px; font-size: 11px; }
  .notif-panel-chips {
    display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
  }
  .notif-panel-chip {
    padding: 3px 10px; font-size: 11px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--bg-card2); color: var(--text-secondary);
    cursor: pointer; transition: all .15s;
  }
  .notif-panel-chip:hover { background: var(--bg-hover); color: var(--text-primary); }
  .notif-panel-chip.active {
    background: rgba(0, 122, 255, 0.12); border-color: var(--blue); color: var(--blue); font-weight: 600;
  }
  .notif-panel-list { flex: 1; overflow-y: auto; }
  .notif-panel-item {
    display: flex; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    font-size: 12px; cursor: pointer;
    background: rgba(59,130,246,0.04);
    transition: background .15s;
  }
  .notif-panel-item:hover { background: var(--bg-hover); }
  .notif-panel-item:last-child { border-bottom: none; }
  .notif-panel-item.read { background: transparent; opacity: 0.7; }
  .notif-panel-icon { font-size: 18px; flex-shrink: 0; line-height: 1.2; }
  .notif-panel-body { flex: 1; min-width: 0; }
  .notif-panel-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
  .notif-panel-cat { font-size: 10px; color: var(--text-muted); padding: 1px 6px; border-radius: 3px; background: var(--bg-card2); border: 1px solid var(--border); flex-shrink: 0; }
  .notif-panel-name { font-weight: 600; font-size: 12.5px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
  .notif-panel-detail { font-size: 11.5px; color: var(--text-secondary); line-height: 1.45; margin-bottom: 2px; max-height: 2.9em; overflow: hidden; }
  .notif-panel-meta { font-size: 10.5px; color: var(--text-muted); opacity: 0.85; }
  .notif-panel-empty { padding: 36px 16px; text-align: center; color: var(--text-muted); }
  .notif-panel-footer { padding: 8px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-muted); background: var(--bg-card2); }
  .notif-panel-more { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--accent); font-size: 11px; padding: 2px 4px; }
  .notif-panel-more:hover { text-decoration: underline; }
  .nav-badge-wrap { position: relative; }
  .nft-cover-share-tag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 10px; padding: 3px 8px; border-radius: 4px;
    background: rgba(37,99,235,.88); color: #fff; font-weight: 700;
  }
  .nft-body { padding: 14px; display: flex; flex: 1; flex-direction: column; min-width: 0; }
  .nft-id { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
  .nft-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; font-family: monospace; }
  .nft-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
  .nft-meta-row { display: flex; justify-content: space-between; font-size: 12px; }
  .nft-meta-label { color: var(--text-secondary); }
  .nft-meta-value { color: var(--text-primary); font-weight: 500; }
  .nft-status-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 8px; min-width: 0;
  }
  .nft-status-head .list-id-field { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
  .nft-card-status {
    flex: 0 0 auto; max-width: 48%;
    justify-content: center; text-align: center;
    white-space: normal; line-height: 1.35;
  }
  .nft-action-row {
    display: flex; align-items: flex-end; justify-content: flex-end;
    min-height: 30px; margin-top: auto; padding-top: 10px;
    border-top: 1px solid rgba(148,163,184,.1);
  }
  .nft-action-row-empty { border-top-color: transparent; }
  .nft-actions {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 8px; flex-wrap: wrap; width: 100%;
    position: relative; z-index: 3;
  }
  .nft-actions .btn { flex: 0 1 auto; min-width: 82px; justify-content: center; }

  /* Loan certificate special */
  .jnft-cover {
    background: linear-gradient(135deg, #1a0f2e 0%, #0d1a3a 50%, #1a1040 100%);
  }
  .jnft-health-bar {
    margin: 8px 0;
    height: 4px; border-radius: 2px;
    background: var(--bg-card2); overflow: hidden;
  }

  /* ============================================================
     ALERT BANNERS
  ============================================================ */
  .alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius);
    font-size: 13px; margin-bottom: 16px;
  }
  .alert-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
  .alert-warning { background: var(--yellow-bg); border: 1px solid rgba(210,153,34,.3); color: var(--yellow); }
  .alert-danger { background: var(--red-bg); border: 1px solid rgba(248,81,73,.3); color: var(--red); }
  .alert-success { background: var(--green-bg); border: 1px solid rgba(63,185,80,.3); color: var(--green); }
  .alert-info { background: var(--accent-light); border: 1px solid rgba(37,99,235,.3); color: #60a5fa; }

  /* ============================================================
     MODAL
  ============================================================ */
  .modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 20px;
    pointer-events: none;
  }
  .modal-overlay.open { display: flex; pointer-events: auto; }
  .modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 100%; max-width: 480px;
    box-shadow: var(--shadow); animation: slideUp .2s ease;
    max-height: 90vh; display: flex; flex-direction: column;
  }
  .modal-lg { max-width: 760px; }
  .modal-body { overflow-y: auto; }
  /* KYC Detail */
  .kyc-detail-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .kyc-detail-grid .kyc-section { padding: 12px 14px; background: var(--bg-card2); border:1px solid var(--border); border-radius: var(--radius); }
  .kyc-detail-grid .kyc-section.full { grid-column: 1 / -1; }
  .kyc-section-title { font-size: 12px; font-weight: 600; letter-spacing:.2px; color: var(--text-primary); margin-bottom: 8px; display:flex; align-items:center; gap:6px; }
  .kyc-section-title .kst-icon { font-size: 14px; }
  .kyc-field-row { display:flex; justify-content:space-between; gap:12px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px dashed transparent; }
  .kyc-field-row + .kyc-field-row { border-top: 1px dashed var(--border); }
  .kyc-field-key { color: var(--text-muted); flex-shrink: 0; }
  .kyc-field-val { color: var(--text-primary); text-align: right; word-break: break-word; }
  .kyc-doc-item { display:flex; align-items:center; gap:10px; padding: 6px 0; font-size: 12.5px; }
  .kyc-doc-item + .kyc-doc-item { border-top: 1px dashed var(--border); }
  .kyc-doc-icon { width:28px; height:28px; border-radius:6px; background: var(--bg-card); border:1px solid var(--border); display:flex;align-items:center;justify-content:center; font-size:13px; flex-shrink:0; }
  .kyc-risk-row { display:flex; align-items:flex-start; gap:10px; padding: 6px 0; font-size: 12.5px; }
  .kyc-risk-row + .kyc-risk-row { border-top: 1px dashed var(--border); }
  .kyc-risk-status { font-size:11px; padding: 2px 8px; border-radius: 999px; font-weight:600; white-space:nowrap; flex-shrink:0; }
  .kyc-risk-status.ok { background: var(--green-bg); color: var(--green); border:1px solid rgba(63,185,80,.3); }
  .kyc-risk-status.warn { background: rgba(245,158,11,.12); color: var(--yellow); border:1px solid rgba(245,158,11,.3); }
  .kyc-risk-status.pending { background: var(--accent-light); color: #60a5fa; border:1px solid rgba(96,165,250,.3); }
  .kyc-risk-status.fail { background: var(--red-bg); color: var(--red); border:1px solid rgba(248,81,73,.3); }
  .kyc-risk-note { color: var(--text-secondary); }
  @media (max-width: 720px) {
    .kyc-detail-grid { grid-template-columns: 1fr; }
  }
  @keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 1ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 1ms !important;
    }
  }
  .modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
  }
  .modal-title { font-size: 15px; font-weight: 600; }
  .modal-close {
    width: 28px; height: 28px; border-radius: var(--radius);
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  }
  .modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
  .modal-body { padding: 20px; }
  .modal-footer {
    padding: 16px 20px; border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
  }

  /* ============================================================
     DRAWER
  ============================================================ */
  .drawer-overlay {
    display: none; position: fixed; inset: 0; z-index: 150;
    background: rgba(0,0,0,.5);
    pointer-events: none;
  }
  .drawer-overlay.open { display: block; pointer-events: auto; }
  .drawer {
    position: fixed; top: 0; right: -420px; bottom: 0; z-index: 151;
    width: 400px; background: var(--bg-card);
    border-left: 1px solid var(--border);
    transition: right .25s ease; overflow-y: auto;
    pointer-events: none;
  }
  .drawer.open { right: 0; pointer-events: auto; }
  .drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg-card); z-index: 1;
  }
  .drawer-body { padding: 20px; }
  .drawer-section { margin-bottom: 20px; }
  .drawer-section-title {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
  }
  .drawer-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 0; }
  .drawer-key { font-size: 12px; color: var(--text-secondary); }
  .drawer-val { font-size: 12px; color: var(--text-primary); font-weight: 500; text-align: right; max-width: 60%; word-break: break-all; }

  /* ============================================================
     TABS
  ============================================================ */
  .tabs { display: flex; gap: 2px; background: var(--bg-card2); border-radius: var(--radius); padding: 3px; margin-bottom: 20px; }
  .tab {
    flex: 1; padding: 7px 12px; border-radius: 6px;
    font-size: 13px; cursor: pointer; text-align: center;
    color: var(--text-secondary); border: none; background: none;
    transition: all .15s;
    position: relative; z-index: 1;
    pointer-events: auto;
  }
  .tab.active { background: var(--bg-card); color: var(--text-primary); font-weight: 500; }
  .compact-filter-tabs {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
    background: rgba(232, 242, 255, .72);
    border: 1px solid rgba(0, 107, 214, .12);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 50, 90, .05);
  }
  .compact-filter-tabs .tab {
    flex: 0 0 auto;
    min-width: 76px;
    white-space: nowrap;
    border-radius: 999px;
  }
  .compact-filter-tabs .tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 107, 214, .18);
  }
  .tab-content { display: none; }
  .tab-content.active { display: block; }
  .pool-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
  }
  .pool-filter-tabs .tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 140px;
  }

#page-pool .user-table td .btn {
  min-height: 32px;
}

  /* ============================================================
     DIVIDER
  ============================================================ */
  .divider { height: 1px; background: var(--border); margin: 16px 0; }
  .divider-label {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 11px; margin: 16px 0;
  }
  .divider-label::before, .divider-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }

  /* ============================================================
     MISC UTILITIES
  ============================================================ */
  .flex { display: flex; }
  .flex-col { flex-direction: column; }
  .items-center { align-items: center; }
  .items-start { align-items: flex-start; }
  .justify-between { justify-content: space-between; }
  .justify-end { justify-content: flex-end; }
  .gap-4 { gap: 4px; }
  .gap-8 { gap: 8px; }
  .gap-12 { gap: 12px; }
  .gap-16 { gap: 16px; }
  .gap-20 { gap: 20px; }
  .mb-4 { margin-bottom: 4px; }
  .mb-8 { margin-bottom: 8px; }
  .mb-12 { margin-bottom: 12px; }
  .mb-16 { margin-bottom: 16px; }
  .mb-20 { margin-bottom: 20px; }
  .mb-24 { margin-bottom: 24px; }
  .mt-8 { margin-top: 8px; }
  .mt-12 { margin-top: 12px; }
  .mt-16 { margin-top: 16px; }
  .text-sm { font-size: 12px; }
  .text-xs { font-size: 11px; }
  .text-lg { font-size: 16px; }
  .text-xl { font-size: 18px; }
  .text-2xl { font-size: 22px; }
  .text-muted { color: var(--text-secondary); }
  .text-green { color: var(--green); }
  .text-red { color: var(--red); }
  .text-yellow { color: var(--yellow); }
  .text-blue { color: #60a5fa; }
  .text-orange { color: var(--orange); }
  .font-mono { font-family: monospace; }
  .font-bold { font-weight: 700; }
  .font-semibold { font-weight: 600; }
  .text-right { text-align: right; }
  .text-center { text-align: center; }
  .w-full { width: 100%; }
  .rounded { border-radius: var(--radius); }
  .rounded-lg { border-radius: var(--radius-lg); }
  .bg-card2 { background: var(--bg-card2); }
  .border { border: 1px solid var(--border); }
  .p-12 { padding: 12px; }
  .p-16 { padding: 16px; }
  .p-20 { padding: 20px; }

  /* ============================================================
     LEDGER CONNECT SPECIAL
  ============================================================ */
  .ledger-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    text-align: center; max-width: 400px; margin: 0 auto;
  }
  .ledger-icon { font-size: 56px; margin-bottom: 16px; }
  .ledger-steps { text-align: left; margin: 20px 0; }
  .ledger-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 8px 0; font-size: 13px; color: var(--text-secondary);
  }
  .ledger-step-num {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--bg-card2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0; color: var(--text-muted);
  }
  .ledger-step-num.done { background: var(--green-bg); border-color: var(--green); color: var(--green); }

  /* ============================================================
     LOAN DETAIL ROWS
  ============================================================ */
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border-light);
    font-size: 13px;
  }
  .detail-row:last-child { border-bottom: none; }
  .detail-key { color: var(--text-secondary); }
  .detail-val { font-weight: 500; }

  /* ============================================================
     UPLOAD ZONE
  ============================================================ */
  .upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 24px; text-align: center; cursor: pointer;
    transition: all .15s; color: var(--text-secondary);
    position: relative; z-index: 1;
  }
  .upload-zone:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-light); }
  .upload-zone.disabled { cursor: not-allowed; opacity: 0.7; background: var(--bg-secondary); }
  .upload-zone.disabled:hover { border-color: var(--border); color: var(--text-secondary); background: var(--bg-secondary); }
  .upload-icon { font-size: 24px; margin-bottom: 8px; }
  .upload-preview { margin-top: 10px; }
  .upload-preview-image {
    width: 100%; max-height: 260px; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  }

  /* 折叠表单组（提单录入扩展字段） */
  .form-collapsible { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
  .form-collapsible[open] { padding-bottom: 14px; }
  .form-collapsible summary { cursor: pointer; padding: 4px 0; user-select: none; font-size: 13px; }
  .form-collapsible summary::marker { color: var(--text-muted); }

  /* 数量 + 单位下拉组合（input-group 内嵌 select） */
  .input-group .input-suffix-select {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-left: 1px solid var(--border); flex: 0 0 auto;
  }

  /* ============================================================
     CHECKLIST
  ============================================================ */
  .checklist { display: flex; flex-direction: column; gap: 8px; }
  .check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
  .check-box {
    width: 16px; height: 16px; border-radius: 4px;
    border: 1.5px solid var(--border); background: var(--bg-base);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all .15s;
  }
  .check-box.checked { background: var(--green); border-color: var(--green); }
  .check-box.checked::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 700; }

  /* ============================================================
     RADIO GROUP
  ============================================================ */
  .radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
  .radio-btn {
    padding: 6px 14px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-base);
    color: var(--text-secondary); font-size: 13px; cursor: pointer;
    transition: all .15s; user-select: none;
    position: relative; z-index: 1;
  }
  .radio-btn.selected { border-color: var(--accent); background: var(--accent-light); color: #60a5fa; }

  /* ============================================================
     AMOUNT QUICK BTNS
  ============================================================ */
  .quick-btns { display: flex; gap: 6px; margin-top: 8px; }
  .quick-btn {
    padding: 4px 10px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card2);
    color: var(--text-secondary); font-size: 11px; cursor: pointer;
    transition: all .15s;
    position: relative; z-index: 2;
  }
  .quick-btn:hover { border-color: var(--accent); color: #60a5fa; background: var(--accent-light); }
  .quick-btn.active {
    border-color: var(--accent); color: #fff;
    background: var(--accent); font-weight: 600;
  }
  .quick-btn.active:hover { background: var(--accent); color: #fff; }

  /* ============================================================
     TIMELINE
  ============================================================ */
  .timeline { display: flex; flex-direction: column; gap: 0; }
  .timeline-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0; margin-top: 5px;
  }
  .timeline-line {
    position: absolute; left: 4px; top: 15px; bottom: 0;
    width: 2px; background: var(--border);
  }
  .timeline-item:last-child .timeline-line { display: none; }
  .timeline-content { flex: 1; }
  .timeline-title { font-size: 13px; font-weight: 500; }
  .timeline-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

  /* ============================================================
     SIGN MODAL STAGES
  ============================================================ */
  .sign-stage { display: none; }
  .sign-stage.active { display: block; }
  #sign-modal.modal-overlay {
    background: rgba(15, 23, 42, .32);
    backdrop-filter: blur(6px);
  }
  .wallet-sign-modal {
    border-color: rgba(0, 107, 214, .18);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
  }
  .wallet-sign-modal .modal-header {
    background: linear-gradient(135deg, rgba(232, 242, 255, .96), rgba(255, 255, 255, .98));
    border-bottom-color: #dbeafe;
  }
  .wallet-sign-section {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
  }
  .wallet-sign-section h4 {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .04em;
  }
  .wallet-sign-summary {
    background: linear-gradient(180deg, #ffffff, #f3f8ff);
  }
  .wallet-sign-technical {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    background: #f8fafc;
  }
  .wallet-sign-technical summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
  }
  .wallet-sign-primary {
    min-width: 148px;
  }
  .sign-center { text-align: center; padding: 20px 0; }
  .sign-icon { font-size: 48px; margin-bottom: 12px; }
  .sign-spinner {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: spin .8s linear infinite;
    margin: 0 auto 12px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .tx-hash {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-card2); border-radius: var(--radius);
    padding: 8px 12px; font-family: monospace; font-size: 12px;
    color: var(--text-secondary); margin-top: 8px;
  }
  .confirm-progress { margin-top: 12px; }
  .confirm-progress .progress-bar { height: 4px; }

  /* ============================================================
     链上信息卡片 / 地址徽章（Blockscout 跳转）
  ============================================================ */
  .addr-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(59, 130, 246, .12); color: var(--blue, #3b82f6);
    border: 1px solid rgba(59, 130, 246, .35); border-radius: 6px;
    padding: 2px 8px; font-size: 12px; text-decoration: none;
    transition: all .15s;
  }
  .addr-chip:hover { background: rgba(59, 130, 246, .22); border-color: var(--blue, #3b82f6); }
  .addr-chip-pending { background: rgba(156,163,175,.15); color: var(--text-muted); border-color: rgba(156,163,175,.35); }
  .addr-chip-icon { font-size: 10px; opacity: .7; }
  .tx-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(34, 197, 94, .12); color: var(--green, #22c55e);
    border: 1px solid rgba(34, 197, 94, .35); border-radius: 6px;
    padding: 2px 8px; font-size: 12px; text-decoration: none; font-family: monospace;
    transition: all .15s;
  }
  .tx-chip:hover { background: rgba(34, 197, 94, .22); }
  .onchain-card {
    background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(124,58,237,.06));
    border: 1px solid rgba(59,130,246,.25); border-radius: var(--radius);
    padding: 12px 14px; margin: 12px 0;
  }
  .onchain-card-title {
    font-size: 12px; color: var(--blue, #3b82f6); font-weight: 600;
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
  }
  .onchain-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0; font-size: 13px;
  }
  .onchain-row + .onchain-row { border-top: 1px dashed rgba(255,255,255,.06); }
  .onchain-row .k { color: var(--text-muted); }
  .gas-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1500;
    background: linear-gradient(90deg, rgba(234,179,8,.95), rgba(245,158,11,.95));
    color: #1f1300; padding: 8px 16px; font-size: 13px; font-weight: 500;
    text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.2);
    display: none;
  }
  .gas-banner.show { display: block; }
  .gas-banner a { color: #1f1300; text-decoration: underline; margin-left: 8px; }
  .chain-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(34, 197, 94, .12); color: var(--green, #22c55e);
    border: 1px solid rgba(34, 197, 94, .35); border-radius: 999px;
    padding: 2px 10px; font-size: 11px;
  }
  .chain-badge.warn { background: rgba(239, 68, 68, .12); color: var(--red, #ef4444); border-color: rgba(239,68,68,.35); }
  .footer-chain {
    position: fixed; right: 16px; bottom: 16px; z-index: 800;
    background: var(--bg-card, #1a1f2e); border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 10px; padding: 8px 12px; font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    display: none; align-items: center; gap: 10px;
  }
  .footer-chain.show { display: flex; }
  /* 弹窗打开时隐藏右下角链状态徽章，避免遮挡 / 穿透 */
  body:has(.modal-overlay.open) .footer-chain.show { display: none; }
  .footer-chain .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #22c55e); }
  .footer-chain .hsk { color: var(--yellow, #eab308); font-weight: 600; }
  .footer-chain a { color: var(--text-secondary); text-decoration: none; }
  .footer-chain a:hover { color: var(--blue, #3b82f6); }
  /* 移动端：footer-chain 缩为图标 + 链 id；点击展开 */
  @media (max-width: 720px) {
    .footer-chain { right: 8px; bottom: 8px; padding: 6px 8px; font-size: 11px; gap: 6px; }
    .footer-chain .hide-on-mobile { display: none !important; }
    .admin-mint-subtabs { display: flex; width: 100%; border-radius: var(--radius); }
    .admin-mint-subtab { flex: 1 0 120px; min-width: 120px; }
    .admin-nft-mint-row.bill-row-compact {
      grid-template-columns: 1fr;
    }
    .admin-nft-mint-row .bill-row-meta,
    .admin-nft-mint-row .bill-row-actions {
      justify-content: flex-start;
    }
    /* 表格小屏改 card-list */
    .table-wrap.responsive table thead { display: none; }
    .table-wrap.responsive table, .table-wrap.responsive table tbody, .table-wrap.responsive table tr, .table-wrap.responsive table td {
      display: block; width: 100%;
    }
    .table-wrap.responsive table tr {
      background: var(--bg-card, #1a1f2e); border: 1px solid var(--border, rgba(255,255,255,.08));
      border-radius: 8px; margin-bottom: 8px; padding: 8px 10px;
    }
    .table-wrap.responsive table td { border: none; padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; }
    .table-wrap.responsive table td::before {
      content: attr(data-th); color: var(--text-muted, #888); font-size: 11px; font-weight: 600;
    }
    /* 最小字号 / 触控点击区 */
    body { -webkit-text-size-adjust: 100%; }
    .btn { min-height: 36px; }
    .btn-sm { min-height: 32px; }
    .form-input, .form-select, .form-textarea { font-size: 16px; }
    button, a { -webkit-tap-highlight-color: rgba(59,130,246,.18); }
  }
  /* 焦点可见 + 焦点陷阱样式 */
  .modal-overlay.open { outline: none; }
  .modal:focus { outline: 2px solid var(--blue, #3b82f6); outline-offset: 4px; }
  *:focus-visible { outline: 2px solid var(--blue, #3b82f6); outline-offset: 2px; }
.bill-info-float {
  position: fixed;
  inset: auto 24px 24px auto;
  z-index: 1100;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  pointer-events: none;
}
.bill-info-float-panel {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid rgba(125, 211, 252, .24);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.48);
  overflow: hidden;
}
.bill-info-float-head,
.bill-info-float-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.bill-info-float-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.bill-info-float-title {
  font-size: 14px;
  font-weight: 700;
}
.bill-info-float-body {
  max-height: min(620px, calc(100vh - 180px));
  overflow-y: auto;
  padding: 14px 16px 16px;
}
.bill-info-float-body .detail-page-section {
  margin-bottom: 12px;
}

  /* ============================================================
     PAGE: LOGIN
  ============================================================ */
  .login-page {
    min-height: 100vh; display: flex; align-items: stretch; justify-content: center;
    background:
      radial-gradient(ellipse 60% 50% at 15% 0%, rgba(37,99,235,.18) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 90% 100%, rgba(124,58,237,.14) 0%, transparent 60%),
      var(--bg);
  }
  .login-wrap { width: 100%; max-width: 400px; padding: 24px; align-self: center; }
  /* Two-column hero layout (login page only) */
  #page-login .login-page {
    align-items: stretch; padding: 0;
    display: flex; flex-direction: column;
  }
  .login-topbar {
    width: 100%; padding: 16px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,.04);
    backdrop-filter: blur(6px);
    background: rgba(11,16,32,.55);
    position: sticky; top: 0; z-index: 50;
  }
  .login-topbar-brand { display:flex; align-items:center; gap:12px; }
  .login-topbar-brand .login-logo-icon {
    width:38px; height:38px; border-radius: 10px; font-size: 18px; margin: 0;
  }
  .login-topbar-brand .login-topbar-name {
    font-size: 15px; font-weight: 700; line-height: 1.1; color: var(--text-primary);
  }
  .login-topbar-brand .login-topbar-tag {
    font-size: 11px; color: var(--text-muted); margin-top: 2px;
  }
  .login-topbar-brand .login-topbar-powered {
    font-size: 10px; color: var(--text-secondary); margin-top: 3px;
    letter-spacing: .2px; opacity: .85;
  }
  .login-hero-powered {
    margin-top: 14px; font-size: 11.5px; color: var(--text-secondary);
    letter-spacing: .2px;
  }
  .login-hero-powered strong { color: var(--text-primary); font-weight: 600; }
  .login-link {
    font-size: 13px; color: var(--accent); cursor: pointer; user-select: none;
  }
  .login-link:hover { text-decoration: underline; }
  .ga-code-input {
    text-align: center; letter-spacing: 8px; font-size: 20px;
    font-family: var(--font-mono, monospace); font-weight: 600;
  }
  .ga-qr-box {
    width: 148px; height: 148px; margin: 4px auto 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 4px;
    border: 1px dashed var(--border); border-radius: 10px;
    background:
      repeating-linear-gradient(45deg, var(--bg-card2) 0 6px, transparent 6px 12px),
      var(--bg-card);
    color: var(--text-secondary); font-size: 13px;
  }
  .ga-secret {
    text-align: center; font-size: 12.5px; color: var(--text-secondary);
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 10px; word-break: break-all;
  }
  .ga-secret .font-mono { color: var(--text-primary); letter-spacing: 1px; }
  .bundle-borrower-group {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-card2); padding: 14px 16px; margin-bottom: 16px;
  }
  .bundle-borrower-head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
  }
  .bundle-borrower-foot {
    margin-top: 12px; display: flex; justify-content: flex-end;
  }
  .login-topbar-tabs {
  display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px;
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: 999px;
  }
  .login-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }
  .login-design-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(125,211,252,.14);
    border-radius: 999px;
    background: rgba(15,23,42,.28);
    color: rgba(203,213,225,.74);
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    opacity: .82;
    transition: all .18s ease;
  }
  .login-design-icon {
    width: 13px;
    height: 13px;
    border: 1px solid currentColor;
    border-radius: 3px;
    position: relative;
    opacity: .72;
  }
  .login-design-icon::before,
  .login-design-icon::after {
    content: '';
    position: absolute;
    left: 3px;
    right: 3px;
    height: 1px;
    background: currentColor;
  }
  .login-design-icon::before { top: 4px; }
  .login-design-icon::after { top: 8px; }
  .login-design-link:hover {
    color: var(--text-primary);
    opacity: 1;
    border-color: rgba(125,211,252,.32);
    background: rgba(37,99,235,.08);
  }
  .login-topbar-tab {
    padding: 8px 18px; border-radius: 999px; cursor: pointer;
    font-size: 13px; font-weight: 500; text-align: center;
    color: var(--text-secondary); transition: all .2s;
    user-select: none; white-space: nowrap;
  }
  .login-topbar-tab.active { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -10px var(--accent); }
  .login-topbar-tab:not(.active):hover { color: var(--text-primary); }
  .login-shell {
    width: 100%; max-width: 1120px; margin: 0 auto;
    padding: 56px 24px 64px;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
    align-items: center; align-self: center; flex: 1;
  }
  .login-hero { color: var(--text-primary); }
  .login-borrower-landing {
    position: relative;
    color: var(--text-primary);
    padding: 10px 0;
  }
  .login-borrower-landing::before {
    content: "";
    position: absolute;
    inset: -28px -24px auto auto;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,.18), transparent 68%);
    pointer-events: none;
  }
  .login-hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 14px; padding: 5px 10px;
    border: 1px solid rgba(96,165,250,.28); border-radius: 999px;
    background: rgba(37,99,235,.08);
    color: #93c5fd; font-size: 11px; letter-spacing: .35px;
  }
  .login-hero-brand { display:flex; align-items:center; gap:14px; margin-bottom:28px; }
  .login-hero-brand .login-logo-icon { width:48px; height:48px; border-radius: 12px; font-size: 22px; margin: 0; }
  .login-hero-brand h1 { font-size: 22px; font-weight: 700; line-height: 1.2; }
  .login-hero-brand p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
  .login-hero-tagline {
    font-size: 30px; font-weight: 700; line-height: 1.25; margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 60%, #a78bfa 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .login-hero-sub {
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
    max-width: 460px; margin-bottom: 28px;
  }
  .login-hero-features { display: grid; gap: 12px; max-width: 520px; }
  .login-feature {
    display: grid; grid-template-columns: 40px 1fr; gap: 14px;
    padding: 14px 16px; background: rgba(20,28,46,.6);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    backdrop-filter: blur(6px);
    transition: border-color .2s, background .2s, transform .2s;
  }
  .login-feature:hover { border-color: rgba(96,165,250,.45); background: rgba(28,38,68,.7); transform: translateY(-1px); }
  .login-feature-icon {
    width:40px; height:40px; border-radius:10px;
    background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(124,58,237,.25));
    display:flex;align-items:center;justify-content:center; font-size:18px;
    border:1px solid rgba(96,165,250,.25);
  }
  .login-feature-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
  .login-feature-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
  .login-hero-foot {
    margin-top: 28px; display:flex; gap: 16px; flex-wrap: wrap;
    font-size: 11px; color: var(--text-muted);
  }
  .login-hero-foot .login-hero-chip {
    display:inline-flex; align-items:center; gap:6px;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(255,255,255,.03); border: 1px solid var(--border);
  }
  .login-flow-steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    counter-reset: login-flow;
  }
  .login-flow-steps span {
    position: relative; padding-left: 24px;
    font-size: 12px; color: var(--text-secondary); line-height: 1.45;
  }
  .login-flow-steps span::before {
    counter-increment: login-flow; content: counter(login-flow);
    position: absolute; left: 0; top: 0;
    width: 17px; height: 17px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(63,185,80,.18); color: #86efac;
    font-size: 10px; font-weight: 700;
  }
  .login-form-col { max-width: 460px; width: 100%; justify-self: end; }
  /* 简化登录页：仅保留登录窗口，居中显示 */
  .login-shell.login-shell-simple { grid-template-columns: minmax(0, 460px); justify-content: center; }
  .login-shell.login-shell-simple .login-form-col { justify-self: center; }
  #page-login .login-shell[data-role="borrower"] {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    justify-content: normal;
  }
  #page-login .login-shell[data-role="borrower"] .login-form-col { justify-self: end; }
  #page-login .login-shell:not([data-role="borrower"]) .login-borrower-landing { display: none; }
  .login-role-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px;
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: 999px; margin-bottom: 18px;
  }
  .login-role-tab {
    padding: 9px 14px; border-radius: 999px; cursor: pointer;
    font-size: 13px; font-weight: 500; text-align: center;
    color: var(--text-secondary); transition: all .2s;
    user-select: none;
  }
  .login-role-tab.active { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -10px var(--accent); }
  .login-role-tab:not(.active):hover { color: var(--text-primary); }
  .login-card-clean { padding: 28px 28px 24px; }
  .login-card-clean h3 { font-size: 17px; }
  .login-card-clean .ledger-steps { margin: 16px 0 18px; }
  .login-card-clean .form-label { font-size: 11px; }
  .login-card-clean .form-select { font-size: 13px; }
  .login-inline-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .login-text-btn {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
  }
  .login-text-btn:hover { text-decoration: underline; }
  .login-inline-sep { color: var(--text-muted); font-size: 11px; }
  .login-demo-toggle {
    margin-top: 10px;
    font-size: 11px; color: var(--text-muted); cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .login-demo-toggle:hover { color: var(--accent); }
  .login-demo-toggle .chev { transition: transform .2s; }
  .login-demo-toggle.open .chev { transform: rotate(180deg); }
  .login-admin-card {
    margin-top: 16px;
    border: 1px dashed rgba(96, 165, 250, .4);
    background: linear-gradient(180deg, rgba(37,99,235,.06), var(--bg-card));
  }
  .login-admin-card-head {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
  }
  .login-admin-card .login-admin-icon { font-size: 28px; line-height: 1; }
  @media (max-width: 960px) {
    .login-shell { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px 40px; max-width: 520px; }
    #page-login .login-shell[data-role="borrower"] {
      grid-template-columns: 1fr; max-width: 560px;
    }
    .login-form-col { justify-self: stretch; }
    #page-login .login-shell[data-role="borrower"] .login-form-col { justify-self: stretch; }
    .login-hero-tagline { font-size: 24px; }
    .login-hero-features { max-width: none; }
    .login-flow-steps { grid-template-columns: 1fr; }
    .login-topbar { padding: 12px 20px; gap: 12px; }
    .login-topbar-brand .login-topbar-tag { display: none; }
    .login-topbar-tab { padding: 7px 14px; font-size: 12px; }
    .login-topbar-actions { gap: 8px; }
    .login-design-link { padding: 6px 9px; font-size: 10.5px; }
  }
  .qa-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px 18px;
  }
  .help-qa-grid { display: flex; flex-direction: column; gap: 16px; }
  .qa-section-title {
    font-size: 14px; font-weight: 600; margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
  }
  .qa-section-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }
  .qa-item { border-bottom: 1px solid var(--border); }
  .qa-item:last-child { border-bottom: none; }
  .qa-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 12px 0; background: none; border: none; cursor: pointer;
    color: var(--text-primary); font-size: 13px; font-weight: 500; text-align: left;
    font-family: inherit;
  }
  .qa-question:hover { color: var(--accent); }
  .qa-chevron {
    flex-shrink: 0; font-size: 10px; color: var(--text-muted);
    transition: transform .2s;
  }
  .qa-item.open .qa-chevron { transform: rotate(180deg); color: var(--accent); }
  .qa-answer {
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    font-size: 12px; color: var(--text-secondary); line-height: 1.65;
  }
  .qa-item.open .qa-answer { max-height: 280px; padding-bottom: 12px; }
  .qa-answer p { margin: 0 0 8px; }
  .qa-answer p:last-child { margin-bottom: 0; }
  .qa-tag {
    display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 4px;
    background: var(--bg-card2); color: var(--text-muted); margin-right: 4px;
  }
  .login-logo { text-align: center; margin-bottom: 32px; }
  .login-logo-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 12px;
  }
  .login-logo h1 { font-size: 20px; font-weight: 700; }
  .login-logo p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

  /* ============================================================
     REGISTER STEPS
  ============================================================ */
  .reg-progress { display: flex; margin-bottom: 32px; }
  .reg-step {
    flex: 1; text-align: center; position: relative;
    padding-top: 36px;
  }
  .reg-step::before {
    content: ''; position: absolute;
    top: 14px; left: 50%; right: -50%;
    height: 2px; background: var(--border);
    pointer-events: none;
  }
  .reg-step:last-child::before { display: none; }
  .reg-step.done::before { background: var(--green); }
  .reg-step-circle {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    background: var(--bg-card2); border: 2px solid var(--border);
    color: var(--text-muted);
  }
  .reg-step.active .reg-step-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
  .reg-step.done .reg-step-circle { background: var(--green); border-color: var(--green); color: #fff; }
  .reg-step-label { font-size: 11px; color: var(--text-muted); line-height: 1.3; padding: 0 2px; }
  .reg-step.active .reg-step-label { color: var(--text-primary); font-weight: 500; }
  .reg-step.done .reg-step-label { color: var(--green); }
  .reg-progress-wrap { overflow-x: auto; margin-bottom: 32px; padding-bottom: 4px; }
  .reg-progress-4 { min-width: 520px; }
  .reg-progress-4 .reg-step-circle { width: 26px; height: 26px; font-size: 11px; top: 0; }
  .reg-progress-4 .reg-step { padding-top: 34px; }
  .reg-progress-4 .reg-step::before { top: 13px; }
  .login-demo-hints {
    margin-top: 16px; padding: 12px; background: var(--bg-card2);
    border-radius: var(--radius); border: 1px dashed var(--border);
    font-size: 11px; color: var(--text-muted); line-height: 1.7;
  }
  .login-demo-hints strong { color: var(--text-secondary); }
  .status-page { text-align: center; padding: 24px 0; }
  .status-icon { font-size: 56px; margin-bottom: 16px; }
  .state-flow {
    font-size: 11px; color: var(--text-muted); text-align: left;
    background: var(--bg-card2); border-radius: var(--radius);
    padding: 12px 14px; margin-top: 20px; line-height: 1.8;
  }
  .otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
  .otp-input {
    width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700;
    background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-primary); font-family: monospace;
  }
  .otp-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
  .pwd-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

  /* ============================================================
     ADMIN SPECIFIC
  ============================================================ */
  .review-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px; margin-bottom: 12px;
  }
  .review-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
  .review-card-title { font-size: 14px; font-weight: 600; }
  .review-card-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
  .review-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
  .review-field { font-size: 12px; }
  .review-field-label { color: var(--text-secondary); margin-bottom: 2px; }
  .review-field-value { color: var(--text-primary); font-weight: 500; }
  .review-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
  .review-card-clickable { cursor: pointer; transition: border-color .15s, background .15s; }
  .review-card-clickable:hover { border-color: var(--accent); background: var(--bg-hover); }
  tr.row-clickable { cursor: pointer; transition: background .15s; }
  tr.row-clickable:hover { background: var(--bg-hover); }
  /* Admin Logs */
  .admin-logs-toolbar {
    display: flex; flex-wrap: wrap; gap: 14px 18px;
    align-items: center; padding: 12px 14px;
  }
  .logs-filter-group { display: flex; align-items: center; gap: 8px; }
  .logs-filter-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
  .logs-chip-group { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg-card2); border: 1px solid var(--border); border-radius: 999px; }
  .logs-chip {
    padding: 5px 12px; border-radius: 999px; cursor: pointer;
    font-size: 12px; color: var(--text-secondary); background: none; border: none;
    transition: all .15s;
  }
  .logs-chip:hover { color: var(--text-primary); }
  .logs-chip.active { background: var(--accent); color: #fff; font-weight: 500; }
  .lender-records-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
  }
  .lender-records-head h3 { margin: 0; }
  #logs-range-filter { font-size: 12px; padding: 6px 10px; width: auto; min-width: 140px; }
  #logs-search-input { font-size: 12px; padding: 6px 10px; }
  .logs-table { width: 100%; }
  .logs-table th { font-size: 11px; color: var(--text-muted); padding: 10px 14px; background: var(--bg-card2); position: sticky; top: 0; }
  .logs-table td { font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .logs-table tbody tr { transition: background .15s; }
  .logs-table tbody tr:hover { background: var(--bg-hover); }
  .logs-actor-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500;
  }
  .logs-actor-pill.admin { background: rgba(124,58,237,.15); color: #c4b5fd; border:1px solid rgba(124,58,237,.3); }
  .logs-actor-pill.borrower { background: var(--accent-light); color: #93c5fd; border:1px solid rgba(96,165,250,.3); }
  .logs-actor-pill.system { background: var(--bg-card2); color: var(--text-muted); border:1px solid var(--border); }
  .logs-empty { padding: 48px 16px; text-align: center; color: var(--text-muted); }
  .logs-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-top: 1px solid var(--border);
    font-size: 11px; color: var(--text-muted);
    background: var(--bg-card2);
  }
  /* Pool composition bar */
  .pool-bar { height: 16px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 14px; }
  .pool-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-secondary); }
  .pool-legend > div { display: flex; align-items: center; gap: 8px; }
  .pool-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
  .logs-list { display: flex; flex-direction: column; gap: 0; }
  .logs-list .logs-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
  }
  .logs-list .logs-item:last-child { border-bottom: none; }
  .logs-list .logs-ico { font-size: 18px; flex-shrink: 0; }
  .logs-list .logs-main { flex: 1; min-width: 0; }
  .logs-list .logs-title { font-size: 13px; font-weight: 500; }
  .logs-list .logs-meta { text-align: right; white-space: nowrap; }
  /* Role edit modal */
  .role-edit-head {
    padding: 12px 14px; background: var(--bg-card2); border:1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 14px;
  }
  .role-edit-key {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 15px; font-weight: 700; color: var(--text-primary);
  }
  .role-perm-list {
    display: flex; flex-direction: column; gap: 6px;
    max-height: 280px; overflow-y: auto;
    padding: 4px;
  }
  .role-perm-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; background: var(--bg-card2);
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: border-color .15s, background .15s;
  }
  .role-perm-row:hover { border-color: var(--accent); background: var(--bg-hover); }
  .role-perm-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }
  .role-perm-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
  .role-perm-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
  .role-perm-desc { font-size: 11px; color: var(--text-muted); line-height: 1.45; }
  .multisig-status {
    margin-top: 12px; padding: 12px 14px;
    background: var(--bg-card2); border: 1px dashed var(--border);
    border-radius: var(--radius);
  }
  .multisig-step {
    font-size: 12.5px; padding: 4px 0; display: flex; align-items: center; gap: 6px;
    color: var(--text-secondary);
  }
  .multisig-step.done { color: var(--green); font-weight: 500; }
  .multisig-step.pending { color: var(--text-muted); }

  /* ============================================================
     LIQUIDATION LIFECYCLE
  ============================================================ */
  .liq-lifecycle {
    display: flex; align-items: stretch; gap: 0;
    background: var(--bg-card2); border-radius: var(--radius-lg);
    padding: 14px; overflow-x: auto;
  }
  .liq-stage {
    flex: 1; min-width: 130px; padding: 10px 12px;
    border-right: 1px dashed var(--border);
    position: relative; opacity: .45; transition: opacity .2s;
  }
  .liq-stage:last-child { border-right: none; }
  .liq-stage.active { opacity: 1; }
  .liq-stage.done { opacity: .85; }
  .liq-stage-tag {
    display: inline-block; font-size: 10px; font-weight: 600;
    padding: 2px 6px; border-radius: 4px; margin-bottom: 6px;
    background: var(--bg-base); color: var(--text-muted);
    border: 1px solid var(--border);
  }
  .liq-stage.active .liq-stage-tag { background: var(--accent); color: #fff; border-color: var(--accent); }
  .liq-stage.danger.active .liq-stage-tag { background: var(--red); border-color: var(--red); }
  .liq-stage.warn.active .liq-stage-tag { background: var(--yellow); border-color: var(--yellow); color: #000; }
  .liq-stage-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
  .liq-stage-sub { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
  .liq-stage.danger .liq-stage-title { color: var(--red); }
  .liq-stage.warn .liq-stage-title { color: var(--yellow); }

  .liq-trigger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .liq-trigger-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 3px solid var(--accent); border-radius: var(--radius);
    padding: 14px;
  }
  .liq-trigger-card.danger { border-left-color: var(--red); }
  .liq-trigger-card.warn { border-left-color: var(--yellow); }
  .liq-trigger-tag {
    font-size: 10px; padding: 2px 6px; border-radius: 4px;
    background: var(--bg-card2); color: var(--text-muted); margin-right: 6px;
  }
  .liq-trigger-card.danger .liq-trigger-tag { background: var(--red-bg); color: var(--red); }
  .liq-trigger-card.warn .liq-trigger-tag { background: var(--yellow-bg); color: var(--yellow); }

  .liq-rate-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
    background: var(--bg-card2); border-radius: var(--radius); overflow: hidden;
  }
  .liq-rate-table th, .liq-rate-table td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid var(--border);
  }
  .liq-rate-table th { background: var(--bg-card); color: var(--text-secondary); font-weight: 600; font-size: 11px; }
  .liq-rate-table tr:last-child td { border-bottom: none; }
  .liq-rate-table .rate-cell { font-family: monospace; font-weight: 600; }

  .liq-waterfall { display: flex; flex-direction: column; gap: 6px; }
  .liq-waterfall-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card2); border-radius: var(--radius);
    padding: 10px 14px; border-left: 3px solid var(--border);
  }
  .liq-waterfall-row.fulfilled { border-left-color: var(--green); }
  .liq-waterfall-row.partial { border-left-color: var(--yellow); }
  .liq-waterfall-row.unfulfilled { border-left-color: var(--red); }
  .liq-waterfall-rank {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--bg-base); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--text-secondary);
    flex-shrink: 0;
  }
  .liq-waterfall-row.fulfilled .liq-waterfall-rank { background: var(--green); color: #000; border-color: var(--green); }
  .liq-waterfall-name { flex: 1; font-size: 13px; }
  .liq-waterfall-amt { font-family: monospace; font-size: 13px; font-weight: 600; }

  .liq-cargo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .liq-cargo-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
  }
  .liq-cargo-card-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    font-size: 13px; font-weight: 600;
  }
  .liq-cargo-step {
    display: flex; gap: 10px; padding: 8px 0;
    border-top: 1px solid var(--border-light);
    font-size: 11px; color: var(--text-secondary); line-height: 1.5;
  }
  .liq-cargo-step:first-of-type { border-top: none; padding-top: 4px; }
  .liq-cargo-step-num {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--bg-card2); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; flex-shrink: 0;
  }
  @media (max-width: 768px) {
    .liq-trigger-grid, .liq-cargo-options { grid-template-columns: 1fr; }
  }

  /* ============================================================
     ADMIN: USERS / ROLES / PARAMS
  ============================================================ */
  .user-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .user-table th, .user-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
  .user-table th { background: var(--bg-card2); color: var(--text-secondary); font-weight: 600; font-size: 11px; }
  .user-table tr:hover { background: var(--bg-card2); }
  .user-table .actions-cell { text-align: right; }
  .user-table .actions-cell .btn { padding: 4px 8px; font-size: 11px; }
.user-table .actions-cell { white-space: normal; }
.user-table .actions-cell .btn { margin: 2px; }
#page-admin-users .user-table .actions-cell {
  min-width: 236px;
}
#page-admin-users .account-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#page-admin-users .account-row-actions .btn {
  margin: 0;
}
#page-admin-users .account-action-btn {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}
#page-admin-users .account-action-wallet {
  color: #0057b8;
  background: #f4f9ff;
  border-color: #b9d7fb;
  box-shadow: 0 1px 0 rgba(0, 107, 214, .05);
}
#page-admin-users .account-action-wallet:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
#page-admin-users .account-wallet-full {
  max-width: 240px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
.managed-account-wallet-modal {
  max-width: 560px;
  width: min(560px, calc(100vw - 36px));
}
.managed-account-wallet-modal .modal-header {
  align-items: flex-start;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.wallet-bind-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}
.wallet-bind-summary-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.wallet-bind-summary-item > span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.wallet-bind-summary-item > strong {
  min-width: 0;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.wallet-address-display {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  line-height: 1.45;
}
.wallet-address-display span {
  color: #0057b8;
  font-weight: 700;
}
.wallet-address-display small {
  color: var(--text-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wallet-address-display.is-empty {
  display: block;
  color: var(--text-muted);
  font-family: inherit;
}
.wallet-bind-input-group {
  margin-bottom: 0;
}
.wallet-bind-input-group .form-input {
  min-height: 42px;
}
.wallet-bind-error:empty {
  display: none;
}
.wallet-bind-footer .btn {
  min-width: 112px;
  border-radius: 999px;
}
@media (max-width: 720px) {
  #page-admin-users .user-table .actions-cell {
    min-width: 0;
  }
  #page-admin-users .account-row-actions {
    justify-content: flex-start;
  }
  .wallet-bind-summary-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

  .role-matrix { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--bg-card2); border-radius: var(--radius); overflow: hidden; }
  .role-matrix th, .role-matrix td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; }
  .role-matrix th { background: var(--bg-card); font-size: 11px; color: var(--text-secondary); }
  .role-matrix td:first-child, .role-matrix th:first-child { text-align: left; font-weight: 500; }
  .role-matrix .perm-yes { color: var(--green); font-weight: 700; }
  .role-matrix .perm-no { color: var(--text-muted); }
  .role-matrix .perm-conditional { color: var(--yellow); font-weight: 600; }

  .param-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
  }
  .param-card-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
  .param-card-value { font-size: 22px; font-weight: 700; color: var(--text-primary); font-family: monospace; }
  .param-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
  .param-edit-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .param-edit-row label { flex: 1; font-size: 12px; color: var(--text-secondary); }
  .param-edit-row input { width: 120px; }

  /* ============================================================
     FUNDS: OTC / Tether
  ============================================================ */
  .funds-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--bg-card2); padding: 4px; border-radius: var(--radius); width: max-content; }
  .funds-tab {
    padding: 8px 18px; background: none; border: none; border-radius: var(--radius);
    color: var(--text-muted); cursor: pointer; font-size: 12px; font-weight: 500;
  }
  .funds-tab.active { background: var(--accent); color: #fff; }
  .balance-card {
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.08));
    border: 1px solid rgba(96,165,250,.3); border-radius: var(--radius-lg);
    padding: 18px; margin-bottom: 16px;
  }
  .balance-row { display: flex; align-items: baseline; gap: 8px; }
  .balance-amount { font-size: 28px; font-weight: 700; font-family: monospace; }
  .balance-currency { font-size: 14px; color: var(--text-muted); }
  .channel-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
    display: flex; align-items: center; gap: 12px;
  }
  .channel-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-card2); display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .channel-info { flex: 1; }
  .channel-info h4 { font-size: 13px; margin-bottom: 2px; }
  .channel-info p { font-size: 11px; color: var(--text-muted); }
  .funds-tx-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-bottom: 1px solid var(--border-light); font-size: 12px;
  }
  .funds-tx-row:last-child { border-bottom: none; }
  .funds-tx-type {
    width: 70px; padding: 2px 6px; border-radius: 4px;
    font-size: 10px; font-weight: 600; text-align: center;
  }
  .funds-tx-type.deposit { background: var(--green-bg, rgba(56,139,72,.15)); color: var(--green); }
  .funds-tx-type.withdraw { background: var(--red-bg, rgba(248,81,73,.15)); color: var(--red); }
  .funds-tx-type.transfer { background: var(--accent-light); color: #60a5fa; }
  .funds-tx-info { flex: 1; }
  .funds-tx-amt { font-family: monospace; font-weight: 600; }

  /* MONITOR */
  .risk-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: var(--bg-card2);
    border-radius: var(--radius); margin-bottom: 8px;
    border-left: 3px solid transparent;
  }
  .risk-row.danger { border-left-color: var(--red); }
  .risk-row.warning { border-left-color: var(--yellow); }
  .risk-row.normal { border-left-color: var(--green); }
  .risk-info { flex: 1; }
  .risk-title { font-size: 13px; font-weight: 500; }
  .risk-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
  .risk-health { text-align: right; min-width: 60px; }
  .risk-health-num { font-size: 18px; font-weight: 700; }
  .risk-actions { display: flex; gap: 6px; }

  /* ADMIN DASHBOARD: 重要信息 */
  .admin-focus-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }
  .admin-focus-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
  }
  .admin-focus-card-head h3 { margin: 0; font-size: 15px; }
  .admin-alert-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius);
    background: var(--bg-card2); margin-bottom: 8px;
    border-left: 3px solid var(--border);
    cursor: pointer; transition: background .15s;
  }
  .admin-alert-item:last-child { margin-bottom: 0; }
  .admin-alert-item:hover { background: var(--bg-base); }
  .admin-alert-item.due-soon { border-left-color: var(--yellow); }
  .admin-alert-item.overdue { border-left-color: var(--red); }
  .admin-alert-item.in-grace { border-left-color: var(--orange); }
  .admin-alert-item.risk-warn { border-left-color: var(--yellow); }
  .admin-alert-item.risk-danger { border-left-color: var(--red); }
  .admin-alert-main { flex: 1; min-width: 0; }
  .admin-alert-title { font-size: 13px; font-weight: 600; }
  .admin-alert-sub { font-size: 11px; color: var(--text-secondary); margin-top: 3px; line-height: 1.45; }
  .admin-alert-meta {
    text-align: right; flex-shrink: 0; min-width: 72px;
  }
  .admin-alert-meta-num { font-size: 16px; font-weight: 700; font-family: monospace; }
  .admin-alert-meta-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
  .admin-alert-empty {
    padding: 20px; text-align: center; font-size: 12px; color: var(--text-muted);
    background: var(--bg-card2); border-radius: var(--radius);
  }

  /* PRICE MONITOR */
  .price-monitor-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  .price-bill-card {
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px 16px;
    border-left: 3px solid var(--border);
  }
  .price-bill-card.warn { border-left-color: var(--yellow); }
  .price-bill-card.danger { border-left-color: var(--red); }
  .price-bill-card.normal { border-left-color: var(--green); }
  .price-bill-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 10px; margin-bottom: 10px;
  }
  .price-bill-title { font-size: 13px; font-weight: 600; }
  .price-bill-meta { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }
  .price-spark-wrap {
    background: var(--bg-base); border-radius: var(--radius);
    padding: 8px 10px 4px; margin-bottom: 10px;
  }
  .price-sparkline { display: block; width: 100%; height: 52px; }
  .price-spark-labels {
    display: flex; justify-content: space-between; font-size: 10px;
    color: var(--text-muted); margin-top: 4px;
  }
  .price-metrics-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    font-size: 11px;
  }
  .price-metric-cell {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 8px; text-align: center;
  }
  .price-metric-cell .lbl { color: var(--text-muted); font-size: 10px; margin-bottom: 4px; }
  .price-metric-cell .val { font-weight: 700; font-family: monospace; font-size: 12px; }
  .price-threshold-bar {
    display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px;
    color: var(--text-secondary); margin-bottom: 16px;
  }
  .price-threshold-bar span { display: inline-flex; align-items: center; gap: 6px; }
  .price-threshold-dot {
    width: 8px; height: 8px; border-radius: 50%;
  }
  .price-threshold-dot.warn { background: var(--yellow); }
  .price-threshold-dot.danger { background: var(--red); }

  .fund-util-bar {
    height: 6px; background: var(--bg-card2); border-radius: 3px;
    margin: 10px 0 8px; overflow: hidden;
  }
  .fund-util-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    transition: width .3s ease;
  }
  .fund-util-fill.high { background: linear-gradient(90deg, var(--yellow), #f0b429); }
  .fund-util-fill.full { background: linear-gradient(90deg, var(--red), #f85149); }

  .fund-pool-overview {
    border: 1px solid rgba(96, 165, 250, .35);
    background: linear-gradient(135deg, rgba(37,99,235,.08), var(--bg-card));
  }
  .fund-pool-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
  }
  .fund-pool-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
  .fund-pool-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; max-width: 520px; }
  .fund-pool-total {
    text-align: right;
  }
  .fund-pool-total-num { font-size: 26px; font-weight: 800; font-family: monospace; color: #60a5fa; }
  .fund-pool-total-lbl { font-size: 11px; color: var(--text-muted); }
  .fund-pool-bar-wrap { margin-bottom: 14px; }
  .fund-pool-bar-labels {
    display: flex; justify-content: space-between; font-size: 11px;
    color: var(--text-secondary); margin-bottom: 6px;
  }
  .fund-pool-segments {
    display: flex; height: 28px; border-radius: var(--radius);
    overflow: hidden; background: var(--bg-card2);
  }
  .fund-pool-seg-deployed {
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600; color: #fff; min-width: 0;
  }
  .fund-pool-seg-idle {
    flex: 1; background: var(--bg-base);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--text-muted);
  }
  .fund-pool-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  }
  .fund-pool-metric {
    background: var(--bg-card2); border-radius: var(--radius);
    padding: 12px; text-align: center;
  }
  .fund-pool-metric .lbl { font-size: 10px; color: var(--text-muted); margin-bottom: 6px; }
  .fund-pool-metric .val { font-size: 15px; font-weight: 700; font-family: monospace; }

  .lending-providers-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px;
  }
  .lending-provider-card {
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px 16px;
    border-left: 3px solid var(--accent);
  }
  .lending-provider-card.planned {
    border-left-color: var(--border); opacity: .72;
    border-style: dashed;
  }
  .platform-flow-ribbon {
    display: flex; align-items: center; gap: 0; flex-wrap: wrap;
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 16px;
  }
  .platform-flow-step {
    display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted);
    padding: 4px 8px; border-radius: var(--radius);
  }
  .platform-flow-step.done { color: var(--green); }
  .platform-flow-step.active { color: var(--accent); font-weight: 600; background: rgba(99,102,241,.12); }
  .platform-flow-step.clickable { cursor: pointer; }
  .platform-flow-step.clickable:hover { background: var(--bg-hover); }
  .platform-flow-arrow { color: var(--text-muted); font-size: 10px; padding: 0 4px; opacity: .6; }
  #app-toast-root {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  }
  .app-toast {
    pointer-events: auto; min-width: 260px; max-width: 360px;
    padding: 12px 16px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    font-size: 13px; line-height: 1.45;
    animation: toast-in .25s ease;
  }
  .app-toast.info { border-left: 3px solid var(--accent); }
  .app-toast.ok { border-left: 3px solid var(--green); }
  .app-toast.warn { border-left: 3px solid var(--yellow); }
  @keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .lending-provider-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 8px; margin-bottom: 10px;
  }
  .lending-provider-name { font-size: 14px; font-weight: 600; }
  .lending-provider-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
  .lending-provider-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 11px;
  }
  .lending-provider-stat .lbl { color: var(--text-muted); font-size: 10px; }
  .lending-provider-stat .val { font-weight: 700; font-family: monospace; font-size: 12px; margin-top: 2px; }

  /* ADMIN DASHBOARD 大盘 */
  .admin-dash-hero {
    background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(124,58,237,.08));
    border: 1px solid rgba(96,165,250,.28);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 20px;
  }
  .admin-dash-hero-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 12px; margin-bottom: 18px;
  }
  .admin-dash-hero-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
  .admin-dash-kpi-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  }
  .admin-dash-kpi {
    background: var(--bg-card2); border-radius: var(--radius);
    padding: 12px 10px; text-align: center;
    border: 1px solid var(--border-light);
    cursor: pointer; transition: border-color .15s, transform .15s;
  }
  .admin-dash-kpi:hover { border-color: var(--accent); transform: translateY(-1px); }
  .admin-dash-kpi .kpi-lbl { font-size: 10px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.3; }
  .admin-dash-kpi .kpi-val { font-size: 18px; font-weight: 800; font-family: monospace; line-height: 1.1; }
  .admin-dash-kpi .kpi-sub { font-size: 10px; color: var(--text-secondary); margin-top: 4px; }
  .admin-dash-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px;
  }
  .admin-dash-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
  }
  .admin-dash-grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px;
  }
  .admin-dash-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px 18px; height: 100%;
  }
  .admin-dash-panel-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; gap: 8px;
  }
  .admin-dash-panel-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
  .admin-risk-bars { display: flex; flex-direction: column; gap: 10px; }
  .admin-risk-bar-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
  .admin-risk-bar-label { width: 72px; color: var(--text-secondary); flex-shrink: 0; }
  .admin-risk-bar-track {
    flex: 1; height: 8px; background: var(--bg-card2); border-radius: 4px; overflow: hidden;
  }
  .admin-risk-bar-fill { height: 100%; border-radius: 4px; }
  .admin-risk-bar-fill.green { background: var(--green); }
  .admin-risk-bar-fill.yellow { background: var(--yellow); }
  .admin-risk-bar-fill.red { background: var(--red); }
  .admin-risk-bar-fill.orange { background: #f0883e; }
  .admin-risk-bar-pct { width: 36px; text-align: right; font-family: monospace; font-weight: 600; }
  .admin-todo-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; background: var(--bg-card2); border-radius: var(--radius);
    margin-bottom: 8px; cursor: pointer; border-left: 3px solid var(--border);
  }
  .admin-todo-item:hover { background: var(--bg-base); }
  .admin-todo-item.warn { border-left-color: var(--yellow); }
  .admin-todo-item.danger { border-left-color: var(--red); }
  .admin-todo-item.info { border-left-color: var(--accent); }
  .admin-mini-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .admin-mini-table th, .admin-mini-table td {
    padding: 8px 10px; border-bottom: 1px solid var(--border-light); text-align: left;
  }
  .admin-mini-table th { color: var(--text-muted); font-weight: 600; font-size: 10px; }
  .admin-mini-table tr:last-child td { border-bottom: none; }
  .admin-pool-compact .fund-pool-segments { height: 22px; }
  .admin-metric-tiles {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  }
  .admin-metric-tile {
    background: var(--bg-card2); border-radius: var(--radius); padding: 10px 12px;
  }
  .admin-metric-tile .lbl { font-size: 10px; color: var(--text-muted); }
  .admin-metric-tile .val { font-size: 14px; font-weight: 700; font-family: monospace; margin-top: 4px; }

  /* ============================================================
     RESPONSIVE
  ============================================================ */
  @media (max-width: 768px) {
    .split, .split-3-2, .split-2-3 { grid-template-columns: 1fr; }
    .stat-grid, .stat-grid-2x2 { grid-template-columns: 1fr; }
    .metric-number { font-size: 1.02em; }
    .metric-unit { font-size: .62em; }
    .stat-value .metric-number,
    .borrow-hero-amount .metric-number,
    .borrow-quota-chart-center strong .metric-number,
    .borrow-quota-metric strong .metric-number,
    .dashboard-pool-available strong .metric-number,
    .pool-borrow-available strong .metric-number,
    .pool-borrow-available-badge strong .metric-number {
      font-size: 1.06em;
    }
    /* 借款明细：窄屏隐藏次要列（授权额度/可用额度/利息收益/时间），保留 NFT/借款人/债务/到期/状态/操作 */
    .loan-detail-table th:nth-child(3), .loan-detail-table td:nth-child(3),
    .loan-detail-table th:nth-child(5), .loan-detail-table td:nth-child(5),
    .loan-detail-table th:nth-child(7), .loan-detail-table td:nth-child(7),
    .loan-detail-table th:nth-child(9), .loan-detail-table td:nth-child(9) { display: none; }
    .cargo-value-compare { grid-template-columns: 1fr; gap: 8px; }
    .cargo-value-mid { flex-direction: row; gap: 8px; }
    .stat-grid-4, .stat-grid-5 { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .nft-grid { grid-template-columns: 1fr; }
    .nav-links { display: flex; }
    .nav-chain { display: none; }
    .nav-right { gap: 8px; }
    .nav-user-email {
      max-width: 150px;
      flex-basis: 150px;
    }
    .container { padding: 20px 16px; }
    .admin-focus-grid { grid-template-columns: 1fr; }
    .price-monitor-grid { grid-template-columns: 1fr; }
    .price-metrics-row { grid-template-columns: repeat(2, 1fr); }
    .fund-pool-metrics { grid-template-columns: repeat(2, 1fr); }
    .lending-providers-grid { grid-template-columns: 1fr; }
    .lending-provider-stats { grid-template-columns: 1fr 1fr; }
    .admin-dash-kpi-strip { grid-template-columns: repeat(2, 1fr); }
    .admin-dash-grid, .admin-dash-grid-2, .admin-dash-grid-3 { grid-template-columns: 1fr; }
    .jnft-action-tabs-row { flex-wrap: wrap; }
    .jnft-action-meta { flex-basis: 100%; margin-left: 0; margin-top: 6px; }
    .loan-summary-grid { grid-template-columns: 1fr; gap: 8px; }
    .loan-summary-meta { grid-template-columns: repeat(2, 1fr); }
  }

/* ── 借款操作 tabs（borrow / repay / unstake 共享） ─────────── */
.jnft-action-tabs { width: 100%; }
.jnft-action-tabs-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
}
.jnft-action-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text-muted);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 500;
  transition: all .15s;
}
.jnft-action-tab:hover { background: rgba(163,113,247,.08); color: var(--text); }
.jnft-action-tab.active {
  background: var(--bg-card);
  color: var(--text);
  border-color: rgba(163,113,247,.4);
  box-shadow: 0 0 0 2px rgba(163,113,247,.08) inset;
}
.jnft-action-tab.is-disabled { opacity: .45; cursor: not-allowed; }
.jnft-action-tab.is-disabled:hover { background: transparent; }
.jnft-action-icon { font-size: 14px; }
.jnft-action-meta {
  margin-left: auto; padding-right: 6px;
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap;
}

/* ── Loan summary card（合并费用预览/风险预估的紧凑卡） ─────── */
.loan-summary-card { display: block; }

/* ── Info collapsible（折叠说明）+ Info tooltip（❓ 悬停展开） ─ */
.info-collapsible {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 16px;
}
.info-collapsible > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  user-select: none;
}
.info-collapsible > summary::-webkit-details-marker { display: none; }
.info-collapsible > summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--text-muted);
  transition: transform .15s;
}
.info-collapsible[open] > summary::after { transform: rotate(180deg); }
.info-collapsible[open] > summary { color: var(--text); border-bottom: 1px solid var(--border); }
.info-collapsible > summary:hover { color: var(--text); }
.info-collapsible-body {
  padding: 12px 14px;
  font-size: 13px; line-height: 1.6;
  color: var(--text-muted);
}
.info-collapsible-body strong { color: var(--text); }

/* 内联 ❓ tooltip：使用原生 title 或 .info-q 样式 */
.info-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 11px; line-height: 1;
  color: var(--text-muted);
  cursor: help;
  margin-left: 4px;
  background: var(--bg-card);
  vertical-align: middle;
}
.info-q:hover { color: var(--text); border-color: var(--text-muted); }
.loan-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.loan-summary-cell {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; min-width: 0;
}
.loan-summary-value {
  font-size: 22px; font-weight: 700; line-height: 1.2;
  margin-top: 2px;
}
.loan-summary-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  font-size: 12px;
}
.loan-summary-meta > span { display: inline-flex; gap: 4px; align-items: baseline; }

/* ── 页面底部固定操作栏（borrow / stake / repay / unstake 共用） ── */
.page-action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(22,27,34,0.85), rgba(22,27,34,1) 35%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  /* 右侧多留 220px 给 footer-chain HUD（避免遮挡） */
  padding: 12px 240px 14px 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.page-action-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  width: 100%;
}
/* 兜底：浏览器不支持 :has() 时，仍把 footer-chain 上移到 action-bar 之上 */
@supports selector(:has(*)) {
  body:has(.page.active.has-action-bar) .footer-chain { bottom: 88px; right: 16px; }
}
.page-action-bar-summary {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-action-bar-summary strong { color: var(--text); }
.page-action-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.page-action-bar-actions .btn {
  white-space: nowrap;
  min-width: 200px;
}
.page-action-bar-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}
/* 给带 action-bar 的页面留出底部空间 */
.page.has-action-bar { padding-bottom: 110px; }
@media (max-width: 720px) {
  .page-action-bar { padding: 10px 14px 12px; gap: 10px; }
  .page-action-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-action-bar-summary { text-align: center; }
  .page-action-bar-actions { justify-content: center; flex-direction: column; align-items: stretch; }
  .page-action-bar-actions .btn { min-width: 0; width: 100%; }
  .page-action-bar-hint { text-align: center; }
  .page.has-action-bar { padding-bottom: 160px; }
  @supports selector(:has(*)) {
    body:has(.page.active.has-action-bar) .footer-chain { bottom: 150px; }
  }
}

/* ── 借款人 dashboard 业务链路折叠 ──────────────────────────────── */
.platform-flow-collapsible {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.platform-flow-collapsible summary {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: 13px;
}
.platform-flow-collapsible summary::-webkit-details-marker { display: none; }
.platform-flow-collapsible[open] summary { margin-bottom: 8px; }
.platform-flow-body .platform-flow-ribbon { margin: 0; }

/* ── 运营大盘「更多指标」折叠 ──────────────────────────────────── */
.admin-dash-kpi-more { margin-top: 10px; }
.admin-dash-kpi-more summary {
  cursor: pointer; list-style: none; user-select: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px dashed var(--border);
  transition: background 0.15s;
}
.admin-dash-kpi-more summary:hover { background: var(--bg-card2); }
.admin-dash-kpi-more summary::-webkit-details-marker { display: none; }
.admin-dash-kpi-more[open] summary { background: var(--bg-card2); border-style: solid; }

/* ── 操作前二次确认弹窗（actionConfirmModal）─────────────────── */
.action-confirm-detail {
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.action-confirm-detail .acd-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--border);
}
.action-confirm-detail .acd-row:last-child { border-bottom: 0; padding-bottom: 0; }
.action-confirm-detail .acd-key { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.action-confirm-detail .acd-val { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.action-confirm-detail .acd-val.font-mono { font-family: var(--font-mono, monospace); font-weight: 500; }
.action-confirm-note {
  margin-top: 10px;
  background: rgba(56, 139, 253, 0.08);
  border: 1px solid rgba(56, 139, 253, 0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.action-confirm-note.warn {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.35);
  color: var(--yellow, #eab308);
}

.borrow-no-limit-modal .modal-body {
  padding-bottom: 8px;
}
.borrow-no-limit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(96,165,250,.24);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(15,23,42,.58));
  border-radius: var(--radius);
  padding: 16px;
}
.borrow-no-limit-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 35% 35%, rgba(126,231,135,.9), transparent 38%),
    linear-gradient(135deg, rgba(37,99,235,.95), rgba(22,163,74,.82));
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.borrow-no-limit-actions {
  gap: 8px;
  flex-wrap: wrap;
}

/* ── 紧凑信息行（费用 / 风险 横向 chip 风格） ── */
.compact-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.compact-meta-row .cm-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.compact-meta-row .cm-lbl {
  font-size: 11px;
  color: var(--text-muted);
}
.compact-meta-row .cm-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-meta-row .cm-val.text-red { color: var(--red); }
.compact-meta-row .cm-val.text-green { color: var(--green); }
.compact-meta-row .cm-val.text-yellow { color: var(--yellow); }
.compact-meta-row .cm-val.text-blue { color: var(--blue); }

/* 健康值变化线 */
.health-change-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  gap: 12px;
}
.health-change-line .hc-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.health-change-line .hc-lbl { font-size: 11px; color: var(--text-muted); }
.health-change-line .hc-val { font-size: 18px; font-weight: 700; }
.health-change-line .hc-arrow {
  font-size: 18px;
  color: var(--text-muted);
}

/* ── 个人中心弹窗 ──────────────────────────────────────────────── */
.btn-xs { padding: 2px 8px; font-size: 11px; line-height: 1.6; border-radius: 6px; }
.profile-section {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 14px; margin: 14px 16px 0;
}
.profile-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.profile-row:last-child { border-bottom: none; }
.profile-k { color: var(--text-muted); flex: none; }
.profile-v { color: var(--text); text-align: right; display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.profile-assets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 12px 16px 0;
}
.profile-asset {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 8px; text-align: center;
}
.profile-asset .pa-num { font-size: 18px; font-weight: 700; }
.profile-asset .pa-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.profile-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin: 18px 16px 8px;
}
.profile-logs { margin: 0 16px 4px; }
.profile-log-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.profile-log-item:last-child { border-bottom: none; }
.profile-log-icon { color: var(--text-muted); font-size: 14px; margin-top: 1px; flex: none; }
.profile-log-main { flex: 1; min-width: 0; }
.profile-log-title { font-size: 13px; color: var(--text); }
.profile-log-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════
   SVG ICON SYSTEM（替代 emoji · mask-image · 颜色跟随 currentColor）
   ════════════════════════════════════════════════════════════════ */
:root {
  --m-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
  --m-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E");
  --m-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E");
  --m-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  --m-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' x2='12' y1='20' y2='10'/%3E%3Cline x1='18' x2='18' y1='20' y2='4'/%3E%3Cline x1='6' x2='6' y1='20' y2='16'/%3E%3C/svg%3E");
  --m-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
  --m-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
  --m-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --m-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --m-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12.5 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  --m-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
  --m-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  --m-octagon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
  --m-paperclip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
  --m-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  --m-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
  --m-trend-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 17h6v-6'/%3E%3Cpath d='m22 17-8.5-8.5-5 5L2 7'/%3E%3C/svg%3E");
}

.ic {
  display: inline-block; width: 1em; height: 1em;
  vertical-align: -0.14em; flex: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.ic-globe { -webkit-mask-image: var(--m-globe); mask-image: var(--m-globe); }
.ic-bell { -webkit-mask-image: var(--m-bell); mask-image: var(--m-bell); }
.ic-file { -webkit-mask-image: var(--m-file); mask-image: var(--m-file); }
.ic-lock { -webkit-mask-image: var(--m-lock); mask-image: var(--m-lock); }
.ic-chart { -webkit-mask-image: var(--m-chart); mask-image: var(--m-chart); }
.ic-wallet { -webkit-mask-image: var(--m-wallet); mask-image: var(--m-wallet); }
.ic-shield { -webkit-mask-image: var(--m-shield); mask-image: var(--m-shield); }
.ic-info { -webkit-mask-image: var(--m-info); mask-image: var(--m-info); }
.ic-warn { -webkit-mask-image: var(--m-warn); mask-image: var(--m-warn); }
.ic-check { -webkit-mask-image: var(--m-check); mask-image: var(--m-check); }
.ic-x { -webkit-mask-image: var(--m-x); mask-image: var(--m-x); }
.ic-clock { -webkit-mask-image: var(--m-clock); mask-image: var(--m-clock); }
.ic-octagon { -webkit-mask-image: var(--m-octagon); mask-image: var(--m-octagon); }
.ic-paperclip { -webkit-mask-image: var(--m-paperclip); mask-image: var(--m-paperclip); }
.ic-link { -webkit-mask-image: var(--m-link); mask-image: var(--m-link); }
.ic-mail { -webkit-mask-image: var(--m-mail); mask-image: var(--m-mail); }
.ic-trend-down { -webkit-mask-image: var(--m-trend-down); mask-image: var(--m-trend-down); }

/* ── alert 图标：隐藏原 emoji 文本，按 alert 类型自动渲染 SVG ── */
.alert-icon {
  font-size: 0 !important; flex: none;
  width: 18px; height: 18px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
}
.alert-icon::before {
  content: ""; display: block; width: 18px; height: 18px;
  background-color: var(--accent);
  -webkit-mask: var(--m-info) center / contain no-repeat;
  mask: var(--m-info) center / contain no-repeat;
}
.alert-warning .alert-icon::before { background-color: var(--yellow); -webkit-mask-image: var(--m-warn); mask-image: var(--m-warn); }
.alert-danger .alert-icon::before { background-color: var(--red); -webkit-mask-image: var(--m-octagon); mask-image: var(--m-octagon); }
.alert-success .alert-icon::before { background-color: var(--green); -webkit-mask-image: var(--m-check); mask-image: var(--m-check); }

/* ── 上传 / 证件文件图标 ── */
.upload-icon { font-size: 0 !important; }
.upload-icon::before {
  content: ""; display: block; width: 24px; height: 24px; margin: 0 auto;
  background-color: var(--text-secondary);
  -webkit-mask: var(--m-paperclip) center / contain no-repeat;
  mask: var(--m-paperclip) center / contain no-repeat;
}
.kyc-doc-icon { font-size: 0 !important; }
.kyc-doc-icon::before {
  content: ""; display: block; width: 14px; height: 14px;
  background-color: var(--text-secondary);
  -webkit-mask: var(--m-paperclip) center / contain no-repeat;
  mask: var(--m-paperclip) center / contain no-repeat;
}

/* ── logo 地球（白色叠在渐变方块上）── */
.logo-icon, .login-logo-icon { font-size: 0 !important; }
.logo-icon::before, .login-logo-icon::before {
  content: ""; display: block; width: 62%; height: 62%;
  background-color: #fff;
  -webkit-mask: var(--m-globe) center / contain no-repeat;
  mask: var(--m-globe) center / contain no-repeat;
}

/* ── 登录特性卡 / status / sign 大图标尺寸适配（.ic 用 1em，跟随父 font-size）── */
.login-feature-icon .ic { width: 20px; height: 20px; background-color: #93c5fd; }
.nav-badge .ic { width: 17px; height: 17px; }
.status-icon.ic { margin-bottom: 16px; }
.sign-icon.ic { margin-bottom: 12px; }

/* ════════════════════════════════════════════════════════════════
   借款人操作页（资产锁定 / 借款 / 还款 / 释放）· 统一视觉系统
   ════════════════════════════════════════════════════════════════ */
.op-page .container-md { max-width: 920px; }

/* 页头：返回 + 标题 + 步骤徽章 */
.op-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.op-head .page-title { font-size: 21px; margin: 0; line-height: 1.3; }
.op-step-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #a78bfa; background: rgba(163,113,247,.12);
  border: 1px solid rgba(163,113,247,.32); border-radius: 999px;
  padding: 3px 11px;
}

/* 卡片：更舒展的内边距 + 统一标题层级 */
.op-page .card { padding: 18px 20px; border-radius: var(--radius-lg); }
.op-page .card-sm { padding: 12px 14px; }
.op-page .card h4 {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 0 0 14px; letter-spacing: .01em;
  display: flex; align-items: center; gap: 8px;
}

/* 借款操作 tabs：更像分段控件 */
.op-page .jnft-action-tabs { margin-bottom: 18px; }
.jnft-action-tab { padding: 9px 16px; font-size: 13px; font-weight: 500; }

/* 关键数值横排：放大数值、拉开间距、卡片化 */
.op-page .compact-meta-row {
  gap: 12px; padding: 14px 16px; border-radius: var(--radius);
}
.op-page .compact-meta-row .cm-lbl { font-size: 11px; }
.op-page .compact-meta-row .cm-val { font-size: 15px; }

/* 金额输入：更醒目 */
.op-page .form-input.amount-input { font-size: 22px; padding: 12px 14px; }
.op-page .input-group.with-unit .form-input.amount-input,
.op-page .input-group:has(.input-unit) .form-input.amount-input { padding-right: 96px; }
.op-page .form-label { font-size: 12.5px; margin-bottom: 8px; }

/* 快捷额度按钮：更大更易点 */
.op-page .quick-btns { gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.op-page .quick-btn { padding: 7px 14px; font-size: 12px; border-radius: 8px; }

/* 健康值变化线：放大数值 */
.op-page .health-change-line { padding: 14px 16px; }
.op-page .health-change-line .hc-val { font-size: 19px; }

/* 质押页：NFT 封面 + 提单信息 合并布局 */
.stake-bl-merged { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: stretch; }
.stake-bl-cover { min-height: 180px; }
.stake-bl-info { display: flex; flex-direction: column; justify-content: center; }
.stake-bl-info .detail-row { padding: 7px 0; border-bottom: 1px solid var(--border); }
.stake-bl-info .detail-row:last-child { border-bottom: none; }
@media (max-width: 720px) {
  .stake-bl-merged { grid-template-columns: 1fr; gap: 12px; }
  .stake-bl-cover { min-height: 150px; }
}

/* 打包提单构成列表（资产确认页 / 借款凭证卡）*/
.stake-bl-comp {
  margin-top: 10px; padding: 12px 14px;
  background: rgba(163,113,247,.06); border: 1px solid rgba(163,113,247,.25);
  border-radius: var(--radius);
}
.stake-bl-comp .sbc-title { font-size: 12px; font-weight: 600; color: #c4b5fd; margin-bottom: 8px; }
.stake-bl-comp .sbc-item {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: center;
  padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: 12.5px;
}
.stake-bl-comp .sbc-item:last-of-type { border-bottom: none; }
.stake-bl-comp .sbc-cargo { color: var(--text-muted); }
.stake-bl-comp .sbc-val { text-align: right; font-weight: 600; }
.stake-bl-comp .sbc-note { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* 确认弹窗内的借款凭证预览 */
.confirm-jnft-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(124,58,237,.04));
  border: 1px solid rgba(163,113,247,.32); border-radius: var(--radius-lg);
}
.confirm-jnft-preview .cjp-cover { width: 150px; flex: none; }
.confirm-jnft-preview .cjp-info { flex: 1; min-width: 0; }
.confirm-jnft-preview .cjp-tag { font-size: 11px; color: #a78bfa; font-weight: 600; margin-bottom: 3px; }
.confirm-jnft-preview .cjp-id { font-size: 20px; font-weight: 700; }
.confirm-jnft-preview .cjp-sub { margin-top: 4px; }
@media (max-width: 720px) {
  .confirm-jnft-preview { flex-direction: column; align-items: stretch; }
  .confirm-jnft-preview .cjp-cover { width: 100%; }
}

/* 内联确认操作块（替代底部固定操作栏，紧贴被操作内容）*/
.op-confirm {
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(124,58,237,.06), rgba(124,58,237,.02));
  border: 1px solid rgba(163,113,247,.28);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 10px;
}
.op-confirm-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.op-confirm-summary strong { color: var(--text); }
.op-confirm .btn { width: 100%; }

/* 全额还款大数字卡 */
.repay-amount-hero {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; text-align: center; margin-bottom: 14px;
}
.repay-amount-hero .rah-lbl { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.repay-amount-hero .rah-num { font-size: 30px; font-weight: 700; color: var(--red); letter-spacing: .01em; }
.repay-amount-hero .rah-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.repay-intro { border-color: rgba(163,113,247,.28); }
.repay-empty { padding: 24px; text-align: center; }
.repay-loan-card { padding: 18px; }
.repay-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.repay-loan-id {
  font-size: 16px;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .op-head .page-title { font-size: 18px; }
  .op-page .form-input.amount-input { font-size: 20px; }
}

/* ════════════════════════════════════════════════════════════════
   GLOBAL VISUAL POLISH · 2026-06-11
   ════════════════════════════════════════════════════════════════ */
body {
  background:
    radial-gradient(1200px 620px at 100% -10%, rgba(37,99,235,.10), transparent 52%),
    radial-gradient(900px 520px at -10% -10%, rgba(124,58,237,.10), transparent 50%),
    var(--bg-base);
}

.container, .container-md { padding-top: 52px; padding-bottom: 40px; }
.page-title { font-size: 24px; letter-spacing: .01em; }
.page-subtitle { font-size: 13px; color: #9aa4b0; }

.navbar {
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.30);
  z-index: 2200;
  pointer-events: auto;
}
.nav-link {
  border: 1px solid transparent;
  transition: all .18s ease;
}
.nav-link:hover, .nav-link.active {
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.card {
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.card:hover { border-color: rgba(96,165,250,.28); }

.btn {
  border-radius: 10px;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 20px rgba(37,99,235,.30);
}
.btn-primary:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.btn-secondary, .btn-ghost {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
}

.form-input, .form-select, .form-textarea {
  border-color: rgba(255,255,255,.14);
  background: rgba(10,14,20,.72);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

.table-wrap {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.01);
}

.row-new-highlight {
  animation: rowHighlightFade 2.2s ease;
}

@keyframes rowHighlightFade {
  0% { background: rgba(96, 165, 250, 0.22); }
  100% { background: transparent; }
}
tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
tbody tr:hover { background: rgba(59,130,246,.08); }

.nft-card {
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
}
.nft-card:hover {
  border-color: rgba(96,165,250,.42);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.nft-cover-token {
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,.52);
  border: 1px solid rgba(255,255,255,.25);
}

.modal {
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.48);
}
.modal-header, .modal-footer {
  background: rgba(255,255,255,.01);
}

/* Dashboard loan card layout tune */
#loan-status-filter {
  min-width: 120px;
  height: 34px;
}
#jnft-grid-dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#jnft-grid-dashboard .nft-card {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 200px minmax(280px, 1fr) 120px 180px;
  align-items: center;
  gap: 12px;
}
#jnft-grid-dashboard .loan-row-main {
  min-width: 0;
}
#jnft-grid-dashboard .loan-row-id {
  margin-bottom: 2px;
}
#jnft-grid-dashboard .loan-row-id .list-id-value {
  font-size: 13px;
}
#jnft-grid-dashboard .loan-row-amount {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
}
#jnft-grid-dashboard .loan-row-meta {
  min-width: 0;
}
#jnft-grid-dashboard .loan-row-meta .text-xs {
  font-size: 13px;
  line-height: 1.45;
}
#jnft-grid-dashboard .loan-meta-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#jnft-grid-dashboard .loan-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.4;
}
#jnft-grid-dashboard .loan-meta-chip-overdue {
  background: var(--red-bg);
  border-color: rgba(248,81,73,.3);
  color: var(--red);
}
#jnft-grid-dashboard .loan-row-status {
  justify-self: center;
}
#jnft-grid-dashboard .loan-row-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
#jnft-grid-dashboard .dashboard-pool-row {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.05fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: 24px;
  min-height: 148px;
  padding: 18px 20px;
  cursor: default;
}
#jnft-grid-dashboard .dashboard-pool-row-empty {
  border-color: rgba(96,165,250,.22);
  background:
    radial-gradient(circle at 18% 12%, rgba(96,165,250,.09), transparent 32%),
    radial-gradient(circle at 74% 78%, rgba(126,231,135,.055), transparent 34%),
    var(--bg-card);
}
#jnft-grid-dashboard .dashboard-pool-row:hover {
  border-color: rgba(96,165,250,.32);
  background:
    radial-gradient(circle at 48% 20%, rgba(88,199,131,.045), transparent 34%),
    rgba(37,99,235,.035);
  transform: translateY(-1px);
}
#jnft-grid-dashboard .dashboard-pool-main {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#jnft-grid-dashboard .dashboard-pool-lender {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#jnft-grid-dashboard .dashboard-pool-brief-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
  flex-wrap: wrap;
}
#jnft-grid-dashboard .dashboard-pool-brief {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#jnft-grid-dashboard .dashboard-pool-quota {
  min-width: 0;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}
#jnft-grid-dashboard .dashboard-pool-available {
  min-width: 0;
  min-height: 88px;
  padding: 17px 22px 18px;
  border: 1px solid rgba(88,199,131,.22);
  border-radius: 13px;
  background:
    radial-gradient(circle at 84% 16%, rgba(88,199,131,.18), transparent 32%),
    radial-gradient(circle at 18% 92%, rgba(96,165,250,.07), transparent 34%),
    linear-gradient(135deg, rgba(63,185,80,.105), rgba(13,17,23,.28) 58%, rgba(255,255,255,.018));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.022), 0 12px 26px rgba(0,0,0,.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#jnft-grid-dashboard .dashboard-pool-available span {
  display: block;
  color: rgba(126,231,135,.82);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .075em;
  line-height: 1.35;
}
#jnft-grid-dashboard .dashboard-pool-available strong {
  display: block;
  margin-top: 6px;
  color: #7ee787;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: -.018em;
  line-height: 1.04;
  text-shadow: 0 0 22px rgba(126,231,135,.18);
  overflow-wrap: anywhere;
}
#jnft-grid-dashboard .dashboard-pool-available strong .metric-text {
  justify-content: center;
  max-width: 100%;
}
#jnft-grid-dashboard .dashboard-pool-available strong .metric-number {
  font-size: clamp(.92em, 1.08vw, 1.12em);
}
#jnft-grid-dashboard .dashboard-pool-available strong .metric-unit {
  font-size: .5em;
  letter-spacing: .06em;
  margin-left: 0;
  vertical-align: .18em;
}
#jnft-grid-dashboard .dashboard-pool-available em {
  display: block;
  margin-top: 8px;
  color: rgba(148,163,184,.82);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}
#jnft-grid-dashboard .dashboard-pool-used {
  margin-top: 9px;
  white-space: nowrap;
  text-align: center;
  color: rgba(139,148,158,.72);
  font-size: 11px;
  letter-spacing: .015em;
}
#jnft-grid-dashboard .dashboard-pool-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
#jnft-grid-dashboard .dashboard-pool-meta {
  min-width: 0;
}
#jnft-grid-dashboard .dashboard-pool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  align-items: stretch;
  gap: 10px 12px;
}
#jnft-grid-dashboard .dashboard-pool-fields .list-row-field {
  padding: 0 0 0 10px;
  border: 0;
  border-left: 1px solid rgba(148,163,184,.14);
  background: transparent;
  min-width: 0;
}
#jnft-grid-dashboard .dashboard-pool-fields .list-row-field > span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(139,148,158,.74);
}
#jnft-grid-dashboard .dashboard-pool-fields .list-row-field > strong {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#jnft-grid-dashboard .dashboard-pool-credit-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(96,165,250,.18);
  border-radius: 12px;
  background: rgba(37,99,235,.055);
}
#jnft-grid-dashboard .dashboard-pool-credit-copy {
  min-width: 0;
  width: 100%;
  flex: 0 1 auto;
  line-height: 1.45;
}
#jnft-grid-dashboard .dashboard-pool-credit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  flex: 0 0 auto;
  flex-wrap: wrap;
  max-width: none;
}
#jnft-grid-dashboard .dashboard-pool-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  justify-self: end;
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
  width: min(100%, 286px);
  min-width: 236px;
}
#jnft-grid-dashboard .dashboard-pool-actions-single {
  grid-template-columns: minmax(132px, 1fr);
  width: min(100%, 160px);
  min-width: 132px;
}
#jnft-grid-dashboard .dashboard-pool-detail-btn {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border-color: rgba(126,231,135,.2);
  justify-content: center;
  white-space: nowrap;
}
#jnft-grid-dashboard .dashboard-pool-action-primary {
  grid-column: auto;
}
#jnft-grid-dashboard .dashboard-pool-detail-btn:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn:focus-visible {
  color: var(--text-primary);
  border-color: rgba(126,231,135,.5);
  background: rgba(88,199,131,.12);
  box-shadow: 0 0 0 3px rgba(88,199,131,.1);
}
.dashboard-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dashboard-guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.borrow-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(190px, 240px) minmax(300px, .9fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(96,165,250,.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37,99,235,.13), rgba(22,27,34,.96) 50%, rgba(13,17,23,.92));
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.borrow-hero-card.is-ready {
  border-color: rgba(63,185,80,.32);
  background: linear-gradient(135deg, rgba(63,185,80,.13), rgba(22,27,34,.96) 48%, rgba(13,17,23,.92));
}
.borrow-hero-card-onboarding {
  border-color: rgba(96,165,250,.34);
  background:
    radial-gradient(circle at 16% 18%, rgba(96,165,250,.18), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(126,231,135,.08), transparent 28%),
    linear-gradient(135deg, rgba(37,99,235,.12), rgba(22,27,34,.96) 50%, rgba(13,17,23,.92));
}
.borrow-hero-kicker {
  font-size: 11px;
  color: #93c5fd;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.borrow-hero-title {
  font-size: 18px;
  font-weight: 700;
}
.borrow-hero-amount {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: #7ee787;
}
.borrow-hero-card.is-blocked .borrow-hero-amount {
  color: var(--text-secondary);
}
.borrow-hero-main {
  min-width: 0;
}
.borrow-hero-chart-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: var(--radius-lg);
  background: rgba(13,17,23,.22);
}
.borrow-hero-onboarding-panel {
  gap: 10px;
  text-align: center;
}
.dashboard-onboarding-ring {
  width: 138px;
  height: 138px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(96,165,250,.26);
  background:
    radial-gradient(circle at 50% 48%, rgba(96,165,250,.16), transparent 52%),
    conic-gradient(from 220deg, rgba(96,165,250,.68), rgba(126,231,135,.56), rgba(96,165,250,.18), rgba(96,165,250,.68));
  box-shadow: inset 0 0 0 10px rgba(13,17,23,.82), 0 16px 28px rgba(0,0,0,.18);
}
.dashboard-onboarding-ring strong {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}
.dashboard-onboarding-ring strong .metric-unit {
  font-size: .52em;
  color: var(--text-muted);
}
.dashboard-onboarding-ring span {
  max-width: 90px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}
.borrow-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.credit-acquire-card,
.borrow-lender-panel {
  border: 1px solid rgba(96,165,250,.22);
  border-radius: var(--radius);
  background: rgba(13,17,23,.34);
  padding: 12px;
}
.credit-acquire-card,
.borrow-lender-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.borrow-lender-select {
  min-width: 280px;
  margin-bottom: 0;
}
.borrow-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.borrow-path-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(13,17,23,.16)), var(--bg-card2);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.borrow-path-card:hover:not(:disabled),
.borrow-path-card.active {
  border-color: rgba(96,165,250,.68);
  background: linear-gradient(180deg, rgba(37,99,235,.18), rgba(37,99,235,.08)), var(--bg-card2);
  box-shadow: 0 0 0 2px rgba(37,99,235,.14);
  transform: translateY(-1px);
}
.borrow-path-card.active::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7ee787;
  box-shadow: 0 0 0 4px rgba(63,185,80,.14);
}
.borrow-path-card:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.borrow-path-badge {
  display: inline-flex;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 24px;
  border: 1px solid rgba(96,165,250,.28);
  border-radius: 999px;
  background: rgba(96,165,250,.12);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.borrow-path-card.active .borrow-path-badge {
  border-color: rgba(126,231,135,.34);
  background: rgba(63,185,80,.12);
  color: #7ee787;
}
.borrow-path-title {
  display: block;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.borrow-path-desc {
  display: block;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.borrow-path-meta {
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 12px;
}
.borrow-path-hint {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  padding: 8px 10px;
}
.borrow-path-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(96,165,250,.28);
  background: rgba(37,99,235,.08);
}
.borrow-amount-guidance {
  padding: 10px 12px;
}
.borrow-scenario-alert {
  align-items: flex-start;
}
.borrow-amount-guidance-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .borrow-path-grid {
    grid-template-columns: 1fr;
  }
  .borrow-path-card {
    min-height: 88px;
  }
  .borrow-path-next {
    align-items: flex-start;
    flex-direction: column;
  }
}
.credit-doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.credit-doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card2);
  color: var(--text-secondary);
  font-size: 12px;
}
.credit-doc-item input {
  accent-color: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.credit-attachment-uploader {
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  padding: 12px;
}
.credit-attachment-uploader-head,
.credit-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.credit-attachment-list {
  display: grid;
  gap: 8px;
}
.credit-attachment-item {
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 10px;
  background: rgba(15,23,42,.42);
  padding: 9px 10px;
}
.credit-attachment-main {
  min-width: 0;
}
.credit-attachment-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.credit-attachment-meta,
.credit-attachment-empty {
  color: var(--text-muted);
  font-size: 12px;
}
.credit-attachment-empty {
  border: 1px dashed rgba(148,163,184,.18);
  border-radius: 10px;
  padding: 10px;
}
.lender-credit-approval-modal {
  max-width: 820px;
}
.credit-material-grid,
.credit-pool-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.credit-material-card,
.credit-pool-info-card,
.credit-bill-row {
  border: 1px solid rgba(148,163,184,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  padding: 12px;
}
.credit-material-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.credit-bill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.credit-bill-row {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.6fr);
  gap: 12px;
  align-items: center;
}
.credit-bill-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}
.credit-material-detail {
  display: grid;
  gap: 12px;
}
.credit-material-detail .detail-section {
  margin-top: 0;
}
.credit-material-detail-compact {
  gap: 10px;
}
.credit-material-submit-group {
  display: grid;
  gap: 10px;
}
.credit-material-submit-content {
  display: grid;
  gap: 12px;
}
.credit-material-submit-block {
  display: grid;
  gap: 8px;
}
.credit-material-submit-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.credit-pool-info-card span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.credit-pool-info-card strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.borrow-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.borrow-hero-side-onboarding {
  display: block;
}
.dashboard-onboarding-steps {
  display: grid;
  gap: 8px;
}
.dashboard-onboarding-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(13,17,23,.28);
}
.dashboard-onboarding-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(148,163,184,.1);
  border: 1px solid rgba(148,163,184,.18);
  font-size: 12px;
  font-weight: 800;
}
.dashboard-onboarding-step strong {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}
.dashboard-onboarding-step small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}
.dashboard-onboarding-step.is-next,
.dashboard-onboarding-step.is-active {
  border-color: rgba(96,165,250,.28);
  background: rgba(37,99,235,.075);
}
.dashboard-onboarding-step.is-next .dashboard-onboarding-index,
.dashboard-onboarding-step.is-active .dashboard-onboarding-index {
  color: #93c5fd;
  border-color: rgba(96,165,250,.36);
  background: rgba(37,99,235,.18);
}
.dashboard-onboarding-step.is-active strong,
.dashboard-onboarding-step.is-next strong {
  color: var(--text-primary);
}
.dashboard-onboarding-step.is-done {
  border-color: rgba(126,231,135,.22);
  background: rgba(63,185,80,.075);
}
.dashboard-onboarding-step.is-done .dashboard-onboarding-index {
  color: #7ee787;
  border-color: rgba(126,231,135,.34);
  background: rgba(63,185,80,.16);
}
.dashboard-onboarding-steps-hero {
  grid-template-columns: 1fr;
}
.dashboard-onboarding-steps-card {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
}
.borrow-hero-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 78px;
  padding: 15px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(13,17,23,.34);
}
.borrow-hero-kpi span {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.35;
}
.borrow-hero-kpi strong {
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 800;
  color: var(--text-primary);
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.18;
}
.borrow-hero-kpi-wide {
  grid-column: 1 / -1;
}
.dashboard-sop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.dashboard-sop-step {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card2);
}
.dashboard-sop-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.dashboard-sop-step.active span {
  background: var(--accent);
  color: #fff;
}
.dashboard-sop-step strong {
  font-size: 12px;
  line-height: 1.3;
}
.dashboard-sop-step small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}
.borrower-sop-modal {
  max-width: min(100%, 940px) !important;
  overflow: hidden;
}
.borrower-sop-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(96,165,250,.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(37,99,235,.18), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,.78), rgba(17,24,39,.48));
}
.borrower-sop-summary-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  background: rgba(15,23,42,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.borrower-sop-summary-card.is-next {
  border-color: rgba(96,165,250,.34);
  background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(15,23,42,.62));
}
.borrower-sop-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.borrower-sop-summary strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.borrower-sop-pool-select {
  width: 100%;
  min-height: 34px;
  padding: 7px 34px 7px 10px;
  border-color: rgba(96,165,250,.18);
  background-color: rgba(15,23,42,.7);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}
.borrower-sop-pool-select:focus {
  border-color: rgba(96,165,250,.54);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.borrower-sop-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  margin: 2px 2px 14px;
  padding: 0 12px;
}
.borrower-sop-progress-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.borrower-sop-progress-dot::before,
.borrower-sop-progress-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50%;
  height: 1px;
  background: rgba(148,163,184,.18);
  transform: translateY(-50%);
  z-index: 0;
}
.borrower-sop-progress-dot::before { left: 0; }
.borrower-sop-progress-dot::after { right: 0; }
.borrower-sop-progress-dot:first-child::before,
.borrower-sop-progress-dot:last-child::after {
  display: none;
}
.borrower-sop-progress-dot.is-done::before,
.borrower-sop-progress-dot.is-done::after,
.borrower-sop-progress-dot.is-current::before {
  background: rgba(96,165,250,.42);
}
.borrower-sop-progress-dot i {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: #111827;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.borrower-sop-progress-dot.is-done i {
  border-color: rgba(96,165,250,.34);
  background: rgba(37,99,235,.18);
  color: #bfdbfe;
}
.borrower-sop-progress-dot.is-current i {
  width: 30px;
  height: 30px;
  border-color: rgba(147,197,253,.7);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37,99,235,.12);
}
.borrower-sop-stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.borrower-sop-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 142px;
  padding: 15px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30,41,59,.72), rgba(17,24,39,.72));
  box-shadow: 0 10px 28px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.borrower-sop-step.is-done {
  border-color: rgba(96,165,250,.22);
  background: linear-gradient(180deg, rgba(30,41,59,.68), rgba(17,24,39,.66));
}
.borrower-sop-step.is-recommended {
  border-color: rgba(147,197,253,.56);
  background:
    radial-gradient(circle at 88% 0%, rgba(96,165,250,.2), transparent 38%),
    linear-gradient(135deg, rgba(37,99,235,.2), rgba(17,24,39,.86));
  box-shadow: 0 18px 44px rgba(37,99,235,.12), 0 0 0 1px rgba(96,165,250,.08);
}
.borrower-sop-step.is-muted {
  opacity: .72;
  background: linear-gradient(180deg, rgba(30,41,59,.48), rgba(17,24,39,.6));
}
.borrower-sop-step-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.borrower-sop-step-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.borrower-sop-step.is-done .borrower-sop-step-head span {
  border: 1px solid rgba(96,165,250,.22);
  background: rgba(37,99,235,.14);
  color: #bfdbfe;
}
.borrower-sop-step.is-recommended .borrower-sop-step-head span {
  background: #3b82f6;
  color: #fff;
}
.borrower-sop-step-head > div {
  min-width: 0;
  flex: 1 1 auto;
}
.borrower-sop-step-head strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-primary);
}
.borrower-sop-step-head small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
}
.borrower-sop-step-head em {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(148,163,184,.08);
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}
.borrower-sop-step.is-done .borrower-sop-step-head em {
  color: #bfdbfe;
  background: rgba(37,99,235,.12);
  border-color: rgba(96,165,250,.18);
}
.borrower-sop-step.is-recommended .borrower-sop-step-head em {
  color: #dbeafe;
  background: rgba(96,165,250,.18);
  border-color: rgba(147,197,253,.32);
}
.borrower-sop-step p {
  flex: 1 1 auto;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}
.borrower-sop-step .btn {
  align-self: flex-start;
  margin-top: auto;
}
.borrow-compact-stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card2);
}
.borrow-compact-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.borrow-compact-step + .borrow-compact-step::before {
  content: '';
  width: 18px;
  height: 1px;
  margin-right: 2px;
  background: var(--border);
}
.borrow-compact-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.borrow-compact-step strong {
  color: var(--text-secondary);
  font-weight: 650;
}
.loan-nft-detail-row td {
  background: var(--bg-card2);
}
.loan-nft-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 10px;
  padding: 8px 0;
  width: 100%;
}
.loan-nft-detail-card {
  margin: 0;
  cursor: default;
}
.loan-nft-detail-card:hover {
  transform: none;
}
.loan-nft-detail-card-compact {
  min-width: 0;
}
.loan-nft-detail-card-compact .nft-cover {
  aspect-ratio: 4 / 3;
}
.loan-nft-detail-card-compact .nft-body {
  padding: 10px 12px 12px;
}
.loan-nft-detail-card-compact .list-id-value {
  font-size: 12px;
}
.loan-nft-detail-card-compact .nft-meta {
  margin-bottom: 8px;
}
.loan-nft-detail-card-compact .nft-meta-row {
  gap: 8px;
  font-size: 11px;
}
.loan-nft-detail-list-drawer {
  grid-template-columns: 1fr;
  padding-top: 0;
}
.group-loan-panel {
  overflow: hidden;
}
.group-loan-panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.group-loan-list {
  display: flex;
  flex-direction: column;
}
.group-loan-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(120px, 1fr) minmax(104px, .8fr) minmax(128px, 1fr) minmax(128px, 1fr) minmax(128px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.group-loan-row:last-child {
  border-bottom: none;
}
.group-loan-cell {
  min-width: 0;
}
.group-loan-cell-main {
  padding-right: 4px;
}
.group-loan-label {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .35px;
  text-transform: uppercase;
}
.group-loan-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.group-loan-bills {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.group-loan-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.group-loan-value-strong {
  font-size: 15px;
  font-weight: 700;
}
.group-loan-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 176px;
}
.group-loan-empty {
  padding: 14px 0 4px;
}
.group-loan-records {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}
.group-loan-record-grid {
  max-width: none !important;
}
.group-loan-record-pagination {
  padding: 4px 0 0;
}
.pool-linked-focus {
  border-color: rgba(96,165,250,.72) !important;
  box-shadow: 0 0 0 2px rgba(96,165,250,.22), 0 12px 26px rgba(0,0,0,.28);
}
.pool-action-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(96,165,250,.22);
  border-radius: var(--radius-lg);
  background: rgba(37,99,235,.08);
}
.pool-action-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.pool-detail-action-panel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(96,165,250,.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(96,165,250,.14), transparent 36%),
    linear-gradient(135deg, rgba(37,99,235,.09), rgba(15,23,42,.46)),
    rgba(255,255,255,.025);
}
.pool-detail-action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pool-detail-action-hint {
  flex: 0 1 100%;
}
.pool-section-title-row,
.pool-loan-ledger-more {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pool-loan-ledger-more {
  align-items: center;
  padding: 12px 14px;
  border: 1px dashed rgba(148,163,184,.24);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
}
.pool-nft-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pool-nft-summary-grid {
  margin-bottom: 0;
}
.pool-nft-summary-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px dashed rgba(148,163,184,.24);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
}
.pool-borrow-modal .pool-borrow-application {
  margin: 0;
  border-color: rgba(96,165,250,.22);
}
.pool-credit-focus-card {
  border-color: rgba(63,185,80,.25);
  background: rgba(63,185,80,.055);
}
.borrow-limit-focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.pool-credit-focus-amount {
  min-width: 180px;
  text-align: right;
}
.borrow-limit-focus-amount {
  min-width: 280px;
}
.pool-credit-focus-amount strong {
  display: block;
  color: var(--green);
  font-size: 24px;
  line-height: 1.2;
}
.borrow-limit-focus-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.borrow-limit-focus-actions strong {
  white-space: nowrap;
}
.borrow-linked-bills {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  background: rgba(255,255,255,.015);
}
.borrow-linked-bills summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.pool-borrow-application {
  margin: 22px 0 6px;
  padding: 14px;
  border: 1px solid rgba(96,165,250,.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15,23,42,.72), rgba(13,17,23,.34));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.pool-detail-credit-section {
  margin-bottom: 20px;
}
.pool-borrow-mini-summary {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.borrow-apy-rule-hint {
  margin: -2px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(96,165,250,.18);
  border-radius: var(--radius);
  background: rgba(96,165,250,.06);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.5;
}
.pool-borrow-amount-group {
  margin-bottom: 10px;
}
.pool-borrow-amount-input {
  position: relative;
}
.pool-borrow-amount-input .form-input {
  padding-right: 76px;
}
.pool-borrow-amount-input .form-input.amount-input {
  min-height: 40px;
  padding: 10px 12px;
  padding-right: 72px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.pool-borrow-amount-input .form-input.amount-input::placeholder {
  font-size: 14px;
  font-weight: 500;
}
.pool-borrow-amount-input .input-unit {
  right: 12px;
  min-width: 46px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .025em;
}
.pool-borrow-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pool-borrow-guidance {
  margin-bottom: 12px;
}
#borrow-amount-guidance:empty {
  display: none;
}
.pool-borrow-application-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pool-borrow-application-head h4 {
  margin: 0;
}
.pool-borrow-available-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 156px;
  padding: 9px 12px;
  border: 1px solid rgba(126,231,135,.34);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(63,185,80,.16), rgba(37,99,235,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 20px rgba(0,0,0,.16);
}
.pool-borrow-available-badge > span {
  color: rgba(28,58,84,.82);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
  line-height: 1;
}
.pool-borrow-available-badge strong {
  color: #7ee787;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.pool-borrow-available-badge .metric-text {
  justify-content: flex-end;
}
.pool-borrow-context {
  letter-spacing: .01em;
}
.pool-borrow-application-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.borrow-pool-picker-row {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.borrow-pool-picker-row:hover,
.borrow-pool-picker-row.is-recommended {
  border-color: rgba(96,165,250,.58);
  background: rgba(37,99,235,.08);
}
/* NFT-first views for pool/borrow flow */
.pool-nft-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pool-nft-section {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: rgba(255,255,255,.015);
}
.pool-nft-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pool-nft-section-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.pool-nft-empty {
  background: var(--bg-card2);
}
.nft-asset-grid,
.nft-collateral-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.nft-collateral-card {
  cursor: pointer;
  position: relative;
}
.nft-collateral-card.selected {
  border-color: rgba(96,165,250,.9);
  box-shadow: 0 0 0 2px rgba(96,165,250,.22), 0 14px 28px rgba(37,99,235,.14);
}
.nft-collateral-card.selected .nft-body {
  background: rgba(37,99,235,.08);
}
.nft-collateral-card:focus-within,
.nft-collateral-card:focus-visible {
  outline: 2px solid rgba(96,165,250,.7);
  outline-offset: 3px;
}
.nft-collateral-card .borrow-bill-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.pool-borrow-card {
  cursor: pointer;
  position: relative;
}
.pool-borrow-card.selected {
  border-color: rgba(96,165,250,.9);
  box-shadow: 0 0 0 2px rgba(96,165,250,.22), 0 14px 28px rgba(37,99,235,.14);
}
.pool-borrow-card.selected .nft-body {
  background: rgba(37,99,235,.08);
}
.pool-borrow-card:focus-visible,
.pool-borrow-card:focus-within {
  outline: 2px solid rgba(96,165,250,.7);
  outline-offset: 3px;
}
.pool-borrow-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pool-borrow-check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.pool-borrow-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.pool-borrow-selected-badge {
  display: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.18);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 600;
}
.pool-borrow-card.selected .pool-borrow-selected-badge {
  display: inline-flex;
}
#page-borrow .text-2xl.font-semibold {
  font-size: 20px;
  line-height: 1.25;
}
@media (max-width: 1100px) {
  #jnft-grid-dashboard .nft-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }
  #jnft-grid-dashboard .dashboard-pool-quota {
    justify-self: stretch;
    max-width: none;
  }
  #jnft-grid-dashboard .loan-row-status,
  #jnft-grid-dashboard .loan-row-actions {
    justify-self: start;
  }
  #jnft-grid-dashboard .dashboard-pool-side {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
  #jnft-grid-dashboard .dashboard-pool-actions {
    justify-self: start;
  }
  .group-loan-row {
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(112px, 1fr));
  }
  .group-loan-actions {
    justify-content: flex-start;
    min-width: 0;
  }
  .borrower-loan-row .bill-row-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .borrower-loan-status {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .borrower-loan-status .loan-stage-hint {
    max-width: 100%;
  }
  .platform-row,
  .platform-row-review {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .platform-row-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .pool-nft-section {
    padding: 12px;
  }
  .pool-nft-section-head {
    flex-direction: column;
  }
  .pool-action-panel {
    flex-direction: column;
  }
  .pool-action-buttons,
  .pool-action-buttons .btn {
    width: 100%;
  }
  .pool-credit-focus-amount {
    width: 100%;
    text-align: left;
  }
  .borrow-limit-focus-row,
  .borrow-limit-focus-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .borrow-limit-focus-amount {
    min-width: 0;
  }
  .pool-borrow-action {
    width: 100%;
    justify-content: center;
  }
  .bill-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .borrower-loan-row.bill-row-compact,
  .borrower-unminted-row.bill-row-compact {
    grid-template-columns: 1fr;
  }
  .borrower-loan-row .bill-row-meta {
    grid-template-columns: 1fr;
  }
  #jnft-grid-dashboard .dashboard-pool-row {
    min-height: 0;
    padding: 16px;
  }
  #jnft-grid-dashboard .dashboard-pool-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  #jnft-grid-dashboard .dashboard-pool-actions,
  #jnft-grid-dashboard .dashboard-pool-detail-btn {
    width: 100%;
  }
  .borrower-loan-fields {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
  .borrower-pending-loan-row .borrower-loan-fields {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
  .bill-row-actions {
    justify-content: flex-start;
  }
  .bill-row-compact .bill-row-meta {
    justify-content: flex-start;
  }
  .lender-list-row.bill-row-compact {
    grid-template-columns: 1fr;
  }
  .lender-list-row .bill-row-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .platform-row {
    padding: 12px;
    gap: 10px;
  }
  .platform-row-fields,
  .platform-row-controls {
    grid-template-columns: 1fr 1fr;
  }
  .platform-row-actions .btn {
    flex: 1 1 96px;
  }
  .group-loan-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 10px 12px;
  }
  .group-loan-cell-main,
  .group-loan-actions {
    grid-column: 1 / -1;
  }
  .group-loan-actions .btn {
    flex: 1 1 96px;
  }
}
@media (max-width: 420px) {
  .platform-row-fields,
  .platform-row-controls {
    grid-template-columns: 1fr;
  }
  .group-loan-row {
    grid-template-columns: 1fr;
  }
  .group-loan-actions .btn {
    flex-basis: 100%;
  }
}

/* ── Interaction hot-zone hardening (acceptance fixes) ───────── */
.navbar,
.login-topbar {
  pointer-events: none;
}
.navbar .nav-logo,
.navbar .btn,
.navbar .nav-link,
.navbar .wallet-btn,
.navbar .nav-chain,
.login-topbar .login-topbar-tabs,
.login-topbar .login-topbar-tab,
.login-topbar .login-design-link {
  pointer-events: auto;
}

.admin-list-tabs {
  margin-bottom: 10px;
}
.admin-list-tabs .tab {
  min-height: 38px;
}
.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lender-pending-summary {
  min-width: 0;
  word-break: break-word;
}
.lender-pending-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.lender-pending-actions .btn {
  min-height: 36px;
  min-width: 128px;
}
.lender-list-row.bill-row-compact {
  grid-template-columns: minmax(150px, .9fr) minmax(520px, 2.5fr) minmax(180px, auto);
  gap: 18px;
  padding: 14px 16px;
}
.lender-list-row .bill-row-meta {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}
.lender-list-row .bill-row-actions {
  align-items: center;
}
.lender-row-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 82px;
}
.lender-row-field > span {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
}
.lender-row-field > strong {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

/* Mobile stability: prevent overflow and clipped content */
/* Web layout density tuning: keep content centered, avoid full-bleed lists */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.container-md {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.container-sm {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

#page-pool .container,
#page-borrow .container-md,
#page-repay .container-md,
#page-lender .container,
#page-admin-bills .container,
#page-admin-pool .container {
  overflow-x: clip;
}

/* Keep tables/lists readable on wide screens */
.table-wrap,
.user-table {
  max-width: 100%;
}

#page-pool .table-wrap,
#page-lender .table-wrap,
#page-admin-bills .table-wrap {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

#page-pool .nft-grid,
#page-lender .nft-grid,
#page-admin-bills .nft-grid {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

#borrower-hub-unborrowed-nfts > .card {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.product-design-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-design-hero {
  align-items: flex-start;
  border: 1px solid rgba(96,165,250,.22);
  background:
    radial-gradient(circle at 12% 20%, rgba(56,189,248,.16), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(168,85,247,.14), transparent 32%),
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(17,24,39,.88));
}
.product-design-section h4 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-design-section h4::before {
  content: '';
  width: 8px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #8b5cf6);
}
.product-architecture {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148,163,184,.05) 1px, transparent 1px),
    rgba(15,23,42,.62);
  background-size: 34px 34px;
}
.product-architecture::before {
  content: '';
  position: absolute;
  inset: 18px 7% auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(56,189,248,.15), rgba(56,189,248,.75), rgba(168,85,247,.75), rgba(34,197,94,.15));
  pointer-events: none;
}
.product-arch-apps,
.product-arch-foundation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}
.product-arch-node,
.product-arch-core,
.product-arch-ledger,
.product-arch-asset,
.product-role-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(15,23,42,.9);
  padding: 16px;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.product-arch-node {
  position: relative;
  min-height: 176px;
}
.product-arch-node::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(125,211,252,.8), rgba(125,211,252,0));
}
.product-arch-node.borrower { border-color: rgba(56,189,248,.42); }
.product-arch-node.ops { border-color: rgba(168,85,247,.42); }
.product-arch-node.lender { border-color: rgba(34,197,94,.42); }
.product-arch-tag {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.product-arch-node strong,
.product-arch-core strong,
.product-arch-ledger strong,
.product-arch-asset strong,
.product-role-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 15px;
}
.product-arch-node span,
.product-arch-core span,
.product-arch-ledger span,
.product-arch-asset span,
.product-role-card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}
.product-arch-node ul {
  margin: 10px 0 0;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}
.product-arch-node li + li {
  margin-top: 4px;
}
.product-arch-core {
  border-color: rgba(37,99,235,.55);
}
.product-arch-asset {
  border-color: rgba(245,158,11,.45);
}
.product-arch-ledger {
  border-color: rgba(63,185,80,.45);
}
.product-arch-spine {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.product-arch-spine i {
  height: 1px;
  background: linear-gradient(90deg, rgba(148,163,184,.18), rgba(125,211,252,.72), rgba(148,163,184,.18));
}
.product-swimlane {
  display: grid;
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15,23,42,.58);
}
.product-lane {
  display: grid;
  grid-template-columns: 132px minmax(940px, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--border-light);
}
.product-lane:last-child {
  border-bottom: none;
}
.product-lane-head {
  position: sticky;
  top: 0;
  z-index: 2;
}
.product-lane-role {
  border-right: 1px solid var(--border);
  background: rgba(15,23,42,.9);
  padding: 14px 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  color: var(--text-primary);
}
.product-lane-steps {
  display: grid;
  grid-template-columns: repeat(9, minmax(104px, 1fr));
  gap: 0;
}
.product-lane-head .product-lane-role,
.product-lane-head .product-lane-steps span {
  background: rgba(30,41,59,.96);
  color: var(--text-primary);
  font-weight: 700;
}
.product-lane-steps span,
.product-status-board span {
  border: 0;
  border-right: 1px solid var(--border-light);
  border-radius: 0;
  background: transparent;
  padding: 12px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}
.product-lane-steps span:last-child {
  border-right: none;
}
.product-lane-steps span strong {
  display: block;
  color: var(--text-primary);
  font-size: 12px;
  margin-bottom: 4px;
}
.product-lane-steps span em {
  display: block;
  color: var(--text-muted);
  font-style: normal;
  font-size: 11px;
}
.product-lane-borrower .product-lane-role { box-shadow: inset 3px 0 0 #38bdf8; }
.product-lane-ops .product-lane-role { box-shadow: inset 3px 0 0 #a855f7; }
.product-lane-lender .product-lane-role { box-shadow: inset 3px 0 0 #22c55e; }
.product-lane-chain .product-lane-role { box-shadow: inset 3px 0 0 #f59e0b; }
.product-lane-borrower .product-lane-steps span strong { color: #7dd3fc; }
.product-lane-ops .product-lane-steps span strong { color: #c4b5fd; }
.product-lane-lender .product-lane-steps span strong { color: #86efac; }
.product-lane-chain .product-lane-steps span strong { color: #fbbf24; }
.product-lane:not(.product-lane-head) .product-lane-steps span {
  position: relative;
}
.product-lane:not(.product-lane-head) .product-lane-steps span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(148,163,184,.52);
  border-right: 1px solid rgba(148,163,184,.52);
  transform: translateY(-50%) rotate(45deg);
  background: rgba(15,23,42,.9);
  z-index: 1;
}
.product-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 6px;
}
.product-flow-step {
  min-width: 168px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(56,189,248,.08), transparent 56%),
    var(--bg-card);
  padding: 14px;
  position: relative;
}
.product-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--text-primary);
  font-size: 11px;
  margin-bottom: 8px;
  font-weight: 800;
}
.product-flow-step strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}
.product-flow-step em {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}
.product-flow-arrow {
  display: flex;
  align-items: center;
  color: #7dd3fc;
  font-weight: 800;
}
.product-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  margin-top: 12px;
}
.product-status-board,
.product-todo-board {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(15,23,42,.68);
  padding: 14px;
}
.product-board-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.product-status-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-status-board .product-board-title {
  grid-column: 1 / -1;
}
.product-status-board span {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card2);
  padding: 12px;
}
.product-status-board span strong,
.product-status-board span b,
.product-status-board span em {
  display: block;
}
.product-status-board span b {
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0;
}
.product-status-board span em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 11px;
}
.product-todo-item {
  display: grid;
  grid-template-columns: 28px minmax(90px, .5fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card2);
  padding: 10px 12px;
}
.product-todo-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
}
.product-todo-item strong {
  color: var(--text-primary);
  font-size: 12px;
}
.product-todo-item em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.nav-design-link {
  border-color: rgba(125,211,252,.22);
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-design-link:hover {
  color: var(--text-primary);
  border-color: rgba(125,211,252,.46);
  background: rgba(37,99,235,.12);
}

.product-design-page {
  max-width: 1120px;
  gap: 22px;
}

.product-design-hero-v2 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.22);
  border-radius: 22px;
  padding: 26px;
  background:
    radial-gradient(circle at 16% 10%, rgba(56,189,248,.24), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(168,85,247,.18), transparent 34%),
    linear-gradient(135deg, rgba(2,6,23,.98), rgba(15,23,42,.92) 54%, rgba(17,24,39,.94));
  box-shadow: 0 26px 70px rgba(0,0,0,.38);
}

.product-design-hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15));
  pointer-events: none;
}

.product-hero-copy,
.product-hero-actions,
.product-hero-capabilities {
  position: relative;
  z-index: 1;
}

.product-hero-copy {
  max-width: 780px;
}

.product-hero-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.product-hero-copy p {
  color: #b6c2d2;
  font-size: 14px;
  max-width: 720px;
}

.product-hero-actions {
  position: absolute;
  right: 24px;
  top: 22px;
}

.product-hero-capabilities,
.product-story-strip,
.product-arch-row,
.product-flow-legend,
.product-dashboard-grid-v2 {
  display: grid;
  gap: 14px;
}

.product-hero-capabilities {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.product-capability-card,
.product-story-card,
.product-arch-card,
.product-pool-core,
.product-flow-step-v2,
.product-funnel-board,
.product-demo-board {
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 18px;
  background: rgba(15,23,42,.74);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.product-capability-card {
  padding: 16px;
}

.product-capability-card span,
.product-story-card span,
.product-flow-step-v2 span,
.product-funnel-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56,189,248,.26), rgba(99,102,241,.2));
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
}

.product-capability-card strong,
.product-story-card strong,
.product-arch-card strong,
.product-pool-core strong,
.product-flow-step-v2 strong {
  display: block;
  margin-top: 10px;
  color: var(--text-primary);
  font-size: 15px;
}

.product-capability-card em,
.product-flow-step-v2 em,
.product-funnel-item em {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.product-story-strip {
  grid-template-columns: .9fr 1.15fr .95fr;
}

.product-story-card {
  padding: 18px;
}

.product-story-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.product-architecture-v2 {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(37,99,235,.16), transparent 34%),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148,163,184,.05) 1px, transparent 1px),
    rgba(2,6,23,.74);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.product-layer-architecture {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.22);
  border-radius: 18px;
  background: rgba(2,6,23,.72);
  box-shadow: 0 20px 54px rgba(0,0,0,.28);
}

.product-layer-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 190px;
  min-height: 86px;
  border-bottom: 1px solid rgba(148,163,184,.16);
}

.product-layer-row:last-of-type {
  border-bottom: 0;
}

.product-layer-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: linear-gradient(180deg, rgba(30,64,175,.9), rgba(30,41,59,.94));
  border-right: 1px solid rgba(148,163,184,.22);
  color: #dbeafe;
  font-weight: 750;
  text-align: center;
}

.product-layer-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  align-content: center;
  padding: 14px;
}

.product-layer-modules span,
.product-layer-support {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(125,211,252,.18);
  border-radius: 4px;
  background: rgba(30,64,175,.56);
  color: #e5f0ff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.product-layer-support {
  margin: 14px;
  background: rgba(15,23,42,.86);
  border-color: rgba(148,163,184,.24);
  color: #cbd5e1;
}

.product-mermaid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-mermaid-card {
  border: 1px solid rgba(125,211,252,.16);
  border-radius: 18px;
  background: rgba(15,23,42,.78);
  padding: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.product-mermaid-render {
  overflow-x: auto;
}

.product-mermaid-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.product-mermaid-legend span {
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(148,163,184,.18);
  font-size: 11px;
  color: #e5f0ff;
}

.product-mermaid-legend .borrower { background: rgba(14,116,144,.28); border-color: rgba(103,232,249,.28); }
.product-mermaid-legend .ops { background: rgba(91,33,182,.28); border-color: rgba(196,181,253,.28); }
.product-mermaid-legend .lender { background: rgba(22,101,52,.28); border-color: rgba(134,239,172,.28); }
.product-mermaid-legend .chain { background: rgba(146,64,14,.28); border-color: rgba(251,191,36,.28); }

.product-mermaid-render svg {
  max-width: 100%;
  height: auto;
}

.product-mermaid-source {
  margin: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px dashed rgba(125,211,252,.18);
  border-radius: 12px;
  background: rgba(2,6,23,.64);
  color: #a7b7cc;
  padding: 12px;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.product-mermaid-card.mermaid-rendered .product-mermaid-source {
  margin-top: 10px;
  max-height: 72px;
  opacity: .5;
}

.product-mermaid-card.mermaid-fallback .product-mermaid-source {
  border-color: rgba(245,158,11,.28);
}

.product-arch-row {
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.product-arch-bottom {
  grid-template-columns: 1.45fr .9fr;
}

.product-arch-card,
.product-pool-core {
  padding: 16px;
}

.product-arch-card > span,
.product-pool-core > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-arch-card.borrower { border-color: rgba(56,189,248,.38); }
.product-arch-card.pool,
.product-pool-core { border-color: rgba(37,99,235,.48); }
.product-arch-card.capital { border-color: rgba(34,197,94,.36); }
.product-arch-card.chain { border-color: rgba(245,158,11,.38); }

.product-arch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.product-arch-actions em {
  padding: 5px 8px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: #cbd5e1;
  font-size: 11px;
  font-style: normal;
}

.product-arch-card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.product-arch-connectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 6px;
  position: relative;
  z-index: 1;
}

.product-arch-connectors i {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 11px;
  font-style: normal;
  border: 1px solid rgba(148,163,184,.18);
}

.product-arch-connectors i::before,
.product-arch-connectors i::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: currentColor;
  opacity: .38;
}

.product-arch-connectors i::before { right: 100%; }
.product-arch-connectors i::after { left: 100%; }
.product-arch-connectors .asset { color: #7dd3fc; background: rgba(14,165,233,.11); }
.product-arch-connectors .credit { color: #c4b5fd; background: rgba(139,92,246,.11); }
.product-arch-connectors .approval { color: #fbbf24; background: rgba(245,158,11,.11); }
.product-arch-connectors .money { color: #86efac; background: rgba(34,197,94,.11); }

.product-pool-formula {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-pool-formula b {
  padding: 12px;
  border-radius: 14px;
  background: rgba(37,99,235,.14);
  color: #dbeafe;
  font-size: 13px;
}

.product-flow-legend {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.product-flow-legend span {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15,23,42,.82);
  border: 1px solid rgba(148,163,184,.14);
}

.product-flow-legend b,
.product-flow-legend em {
  display: block;
}

.product-flow-legend b {
  font-size: 12px;
  color: var(--text-primary);
}

.product-flow-legend em {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
}

.product-swimlane-v2 {
  overflow-x: auto;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(2,6,23,.72);
}

.product-swimlane-head,
.product-lane-v2 {
  display: grid;
  grid-template-columns: 126px minmax(1120px, 1fr);
  border-bottom: 1px solid rgba(148,163,184,.13);
}

.product-lane-v2:last-child {
  border-bottom: 0;
}

.product-swimlane-v2 .product-lane-role {
  border-right: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.92);
  padding: 14px 12px;
}

.product-swimlane-v2 .product-lane-steps {
  grid-template-columns: repeat(10, minmax(112px, 1fr));
}

.product-swimlane-head .product-lane-steps span {
  background: rgba(30,41,59,.9);
  color: var(--text-primary);
  font-weight: 750;
}

.product-lane-v2 .product-lane-steps span {
  min-height: 88px;
  background: rgba(15,23,42,.42);
}

.product-lane-v2 .product-lane-steps span::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255,255,255,.04);
}

.product-lane-v2 .product-lane-steps span:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(100% - 16px);
  top: 20px;
  width: 30px;
  height: 1px;
  background: rgba(148,163,184,.45);
  z-index: 2;
}

.product-lane-v2 .product-lane-steps span strong,
.product-lane-v2 .product-lane-steps span em {
  padding-left: 16px;
}

.product-lane-v2 .product-lane-steps span strong {
  font-size: 12px;
}

.product-lane-v2 .product-lane-steps span em {
  margin-top: 5px;
  color: var(--text-muted);
}

.product-lane-borrower { color: #7dd3fc; }
.product-lane-ops { color: #c4b5fd; }
.product-lane-lender { color: #86efac; }
.product-lane-chain { color: #fbbf24; }

.product-design-clean {
  max-width: 1120px;
  overflow-x: clip;
}

.product-clean-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.product-clean-section {
  overflow: hidden;
}

.product-section-desc {
  margin: -4px 0 14px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.product-architecture-clean,
.product-swimlane-clean,
.product-loop-clean,
.product-scenario-clean {
  max-width: 100%;
  overflow: hidden;
}

.product-architecture-clean {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(2,6,23,.56);
}

.product-arch-band,
.product-arch-core {
  display: grid;
  grid-template-columns: minmax(128px, .75fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.product-arch-band strong,
.product-arch-core strong {
  color: var(--text-primary);
  font-size: 13px;
}

.product-arch-band span,
.product-arch-core span,
.product-arch-core em {
  min-width: 0;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  background: rgba(15,23,42,.8);
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
  text-align: center;
}

.product-arch-core {
  grid-template-columns: minmax(0, .9fr) minmax(170px, 1fr) minmax(0, 1.4fr) minmax(0, .9fr);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(96,165,250,.24);
  background: rgba(37,99,235,.1);
}

.product-arch-core strong {
  text-align: center;
}

.product-swimlane-clean {
  display: grid;
  gap: 10px;
}

.product-swimlane-row {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) minmax(128px, .7fr) minmax(0, 2fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.62);
  padding: 12px;
}

.product-swimlane-row strong {
  color: var(--text-primary);
  font-size: 13px;
}

.product-swimlane-row span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15,23,42,.78);
  border: 1px solid rgba(148,163,184,.16);
  color: var(--text-secondary);
  font-size: 11px;
}

.product-swimlane-row em {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
  font-style: normal;
}

.product-swimlane-row.borrower { border-color: rgba(56,189,248,.28); }
.product-swimlane-row.ops { border-color: rgba(168,85,247,.28); }
.product-swimlane-row.lender { border-color: rgba(34,197,94,.28); }
.product-swimlane-row.chain { border-color: rgba(245,158,11,.3); }

.product-swimlane-table {
  display: grid;
  grid-template-columns: 116px repeat(7, minmax(0, 1fr));
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  background: rgba(2,6,23,.56);
}

.product-swimlane-table > div {
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid rgba(148,163,184,.12);
  border-bottom: 1px solid rgba(148,163,184,.12);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.product-swimlane-table > div:nth-child(8n) {
  border-right: 0;
}

.product-swimlane-table > div:nth-last-child(-n + 8) {
  border-bottom: 0;
}

.product-swimlane-table .head,
.product-swimlane-table .role {
  background: rgba(15,23,42,.9);
  color: var(--text-primary);
  font-weight: 700;
}

.product-swimlane-table .role {
  display: flex;
  align-items: center;
}

.product-swimlane-table em {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-style: normal;
}

.product-swimlane-table .borrower { color: #7dd3fc; }
.product-swimlane-table .ops { color: #c4b5fd; }
.product-swimlane-table .lender { color: #86efac; }
.product-swimlane-table .chain { color: #fbbf24; }

.product-loop-clean {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 18px;
  padding: 14px;
  background: rgba(2,6,23,.56);
}

.product-loop-clean-core {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(96,165,250,.24);
  border-radius: 16px;
  background: rgba(37,99,235,.1);
  padding: 14px;
}

.product-loop-clean-core strong {
  color: var(--text-primary);
}

.product-loop-clean-core span {
  color: var(--text-secondary);
  font-size: 12px;
}

.product-loop-clean-node {
  min-width: 0;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.78);
  padding: 12px;
  position: relative;
}

.product-loop-clean-node:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  z-index: 1;
}

.product-loop-clean-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(96,165,250,.16);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 8px;
}

.product-loop-clean-node strong {
  display: block;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.45;
}

.product-scenario-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.product-scenario-clean > div {
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.68);
  padding: 12px;
}

.product-scenario-clean span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.product-scenario-clean strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 5px;
}

.product-scenario-clean em {
  color: var(--text-secondary);
  font-style: normal;
  font-size: 11px;
  line-height: 1.55;
}

.product-loop-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(125,211,252,.2);
  border-radius: 14px;
  background: rgba(14,165,233,.08);
  color: #bfdbfe;
  font-size: 13px;
}

.product-role-flow-grid,
.product-scenario-grid {
  display: grid;
  gap: 12px;
}

.product-role-flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-scenario-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-role-flow-card,
.product-scenario-card {
  border: 1px solid rgba(125,211,252,.16);
  border-radius: 16px;
  background: rgba(15,23,42,.76);
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
}

.product-role-flow-card strong,
.product-scenario-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 10px;
}

.product-role-flow-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
}

.product-role-flow-card b {
  color: #bfdbfe;
}

.product-scenario-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border-radius: 999px;
  background: rgba(37,99,235,.24);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.product-scenario-card em {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
  font-style: normal;
}

.product-loop-panorama {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 48%, rgba(37,99,235,.2), transparent 24%),
    radial-gradient(circle at 50% 48%, transparent 33%, rgba(56,189,248,.08) 34%, transparent 35%),
    linear-gradient(135deg, rgba(2,6,23,.96), rgba(15,23,42,.86));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 28px 70px rgba(0,0,0,.32);
}

.product-loop-orbit {
  position: absolute;
  inset: 74px 14%;
  border: 2px solid rgba(125,211,252,.22);
  border-radius: 50%;
  transform: perspective(900px) rotateX(54deg);
  box-shadow: 0 0 34px rgba(56,189,248,.12), inset 0 0 32px rgba(56,189,248,.08);
}

.product-loop-orbit::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(196,181,253,.28);
  border-radius: 50%;
}

.product-loop-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  min-height: 126px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(96,165,250,.42);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(30,64,175,.88), rgba(15,23,42,.94));
  box-shadow: 0 24px 60px rgba(0,0,0,.36), 0 0 36px rgba(59,130,246,.18);
  text-align: center;
  z-index: 2;
}

.product-loop-core span {
  color: #bfdbfe;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-loop-core strong {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.product-loop-node {
  position: absolute;
  width: 172px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid rgba(125,211,252,.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(56,189,248,.12), rgba(15,23,42,.9)),
    rgba(15,23,42,.9);
  box-shadow: 0 22px 44px rgba(0,0,0,.3);
  z-index: 3;
}

.product-loop-node::after {
  content: '→';
  position: absolute;
  color: #7dd3fc;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(56,189,248,.6);
}

.product-loop-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(37,99,235,.35);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
}

.product-loop-node strong,
.product-loop-node em {
  display: block;
}

.product-loop-node strong {
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.product-loop-node em {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
  font-style: normal;
}

.node-asset { left: 7%; top: 42%; }
.node-bill { left: 18%; top: 9%; }
.node-stake { left: 50%; top: 7%; transform: translateX(-50%); }
.node-borrow { right: 18%; top: 9%; }
.node-repay { right: 7%; top: 42%; }
.node-unstake { right: 22%; bottom: 8%; }
.node-burn { left: 22%; bottom: 8%; }
.node-asset::after { right: -42px; top: -28px; transform: rotate(-34deg); }
.node-bill::after { right: -34px; top: 38px; }
.node-stake::after { right: -44px; top: 46px; transform: rotate(28deg); }
.node-borrow::after { right: -20px; bottom: -34px; transform: rotate(82deg); }
.node-repay::after { left: -38px; bottom: -26px; transform: rotate(144deg); }
.node-unstake::after { left: -34px; top: 38px; transform: rotate(180deg); }
.node-burn::after { left: -28px; top: -30px; transform: rotate(-130deg); }

.product-dashboard-grid-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr);
  margin-top: 14px;
}

.product-funnel-board,
.product-demo-board {
  padding: 16px;
}

.product-funnel-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(110px, 1fr) 56px minmax(150px, 1.2fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15,23,42,.78);
}

.product-funnel-item + .product-funnel-item {
  margin-top: 9px;
}

.product-funnel-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(37,99,235,.2), rgba(56,189,248,.04));
  pointer-events: none;
}

.product-funnel-item > * {
  position: relative;
  z-index: 1;
}

.product-funnel-item strong {
  color: var(--text-primary);
  font-size: 13px;
}

.product-funnel-item b {
  color: #dbeafe;
  font-size: 22px;
  text-align: right;
}

.product-demo-pool {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  background: rgba(15,23,42,.78);
}

.product-demo-pool + .product-demo-pool {
  margin-top: 9px;
}

.product-demo-pool strong {
  color: var(--text-primary);
  font-size: 13px;
}

.product-demo-pool span,
.product-demo-todos span {
  color: var(--text-secondary);
  font-size: 12px;
}

.product-demo-todos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-demo-todos span {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(125,211,252,.16);
}

#page-admin-bills .platform-row-list,
#page-admin-pool .platform-row-list {
  max-width: none;
}

@media (max-width: 390px) {
  .container,
  .container-md {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 52px;
  }
  #page-login .login-topbar {
    position: relative;
    top: auto;
    z-index: 20;
    padding: 12px 14px;
  }
  #page-login .login-shell {
    padding: 18px 12px 24px;
    gap: 16px;
  }
  #page-login .login-topbar-tabs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #page-login .login-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  #page-login .login-design-link {
    width: auto;
    margin-left: 2px;
  }
  .lender-pending-actions {
    width: 100%;
    justify-content: stretch;
  }
  .lender-pending-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tabs .tab {
    flex: 0 0 auto;
    min-width: 132px;
    white-space: nowrap;
  }
  .product-architecture,
  .product-role-grid,
  .product-design-kpis {
    grid-template-columns: 1fr;
  }
  .product-arch-core {
    grid-column: auto;
  }
  .product-lane {
    grid-template-columns: 1fr;
  }
  .product-role-flow-grid {
    grid-template-columns: 1fr;
  }
  .product-loop-panorama {
    min-height: auto;
    display: grid;
    gap: 10px;
    padding: 14px;
  }
  .product-loop-orbit {
    display: none;
  }
  .product-loop-core,
  .product-loop-node {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    transform: none;
  }
  .product-loop-node::after {
    content: '↓';
    right: 16px;
    bottom: -20px;
    top: auto;
    left: auto;
    transform: none;
    font-size: 18px;
  }
  .product-loop-node:last-child::after {
    content: '';
  }
  .product-clean-hero,
  .product-arch-band,
  .product-arch-core,
  .product-swimlane-row,
  .product-loop-clean,
  .product-loop-clean-core {
    grid-template-columns: 1fr;
  }
  .product-loop-clean-core {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-loop-clean-node:not(:last-child)::after {
    content: '↓';
    right: 16px;
    top: auto;
    bottom: -13px;
    transform: none;
  }
  .product-swimlane-table {
    grid-template-columns: 1fr;
  }
  .product-swimlane-table > div,
  .product-swimlane-table > div:nth-child(8n),
  .product-swimlane-table > div:nth-last-child(-n + 8) {
    border-right: 0;
    border-bottom: 1px solid rgba(148,163,184,.12);
  }
}

/* ── Visual unify pass (layout rhythm + hierarchy) ───────────── */
.container,
.container-md,
.container-sm {
  padding-top: 28px;
}

.page-title {
  margin-bottom: 6px;
  line-height: 1.25;
}

.page-subtitle {
  margin-bottom: 18px;
}

.card {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.stat-grid {
  gap: 14px;
}

.kpi-top-grid .stat-card,
.page-section-kpi .stat-card,
.stat-grid .stat-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.35px;
}

.stat-value {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.15;
}

.stat-sub {
  font-size: 11px;
  line-height: 1.4;
}

.tabs {
  margin-bottom: 14px;
}

.tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  min-height: 34px;
  line-height: 1.2;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 10px;
}

.btn-lg {
  min-height: 42px;
}

.user-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.user-table th,
.user-table td {
  vertical-align: middle;
}

.nft-card {
  border-color: rgba(255,255,255,0.09);
}

.nft-body {
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .stat-grid,
  .kpi-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container,
  .container-md,
  .container-sm {
    padding-top: 18px;
  }
  .card {
    padding: 16px;
  }
  .stat-grid,
  .kpi-top-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dashboard-sop-steps {
    grid-template-columns: 1fr;
  }
  .borrow-path-grid {
    grid-template-columns: 1fr;
  }
  .borrow-path-next {
    align-items: flex-start;
    flex-direction: column;
  }
  .borrow-hero-card {
    grid-template-columns: 1fr;
  }
  .borrow-hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .credit-doc-list {
    grid-template-columns: 1fr;
  }
  .credit-attachment-uploader-head,
  .credit-attachment-item {
    align-items: stretch;
    flex-direction: column;
  }
  .credit-material-grid,
  .credit-pool-info-grid,
  .credit-bill-row {
    grid-template-columns: 1fr;
  }
  .borrow-hero-kpi {
    min-height: 72px;
    padding: 13px 14px;
  }
  .borrow-hero-kpi strong {
    font-size: 17px;
  }
  .borrow-hero-kpi span {
    font-size: 11px;
  }
  @media (max-width: 520px) {
    .borrow-hero-side {
      grid-template-columns: 1fr;
    }
  }
  .borrow-lender-select {
    width: 100%;
    min-width: 0;
  }
  .user-table {
    font-size: 11px;
  }
}

.stat-grid.lender-overview-kpis,
.stat-grid.admin-funds-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lender-overview-kpis .stat-card,
.admin-funds-kpis .stat-card {
  min-width: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.lender-overview-kpis .stat-label,
.lender-overview-kpis .stat-value,
.admin-funds-kpis .stat-label,
.admin-funds-kpis .stat-value {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .dashboard-sop-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid.lender-overview-kpis,
  .stat-grid.admin-funds-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-sop-steps {
    grid-template-columns: 1fr;
  }
  .borrower-sop-summary,
  .borrower-sop-stepper {
    grid-template-columns: 1fr;
  }
  .stat-grid.lender-overview-kpis,
  .stat-grid.admin-funds-kpis {
    grid-template-columns: 1fr;
  }
}

.hub-page-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compact-details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card2);
  padding: 8px 10px;
}

.compact-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  user-select: none;
}

.compact-details[open] summary {
  color: var(--text-primary);
}

.compact-details-body {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-bills-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-bills-toolbar .admin-filter-tabs {
  margin-bottom: 0;
}

.admin-bills-toolbar .admin-bills-add-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ── Global UI cleanup: shared page, toolbar, row and detail rhythm ── */
.page-toolbar,
.list-toolbar,
.list-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.page-toolbar {
  margin-bottom: 12px;
}

.batch-selection-bar {
  border-color: rgba(37,99,235,.18);
  background: linear-gradient(180deg, rgba(37,99,235,.055), rgba(255,255,255,.02));
}

.batch-selection-toolbar {
  align-items: center;
  justify-content: space-between;
}

.batch-selection-copy {
  flex: 1 1 280px;
  min-width: min(100%, 240px);
}

.batch-selection-toolbar .batch-selection-actions {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  gap: 10px;
  margin-left: auto;
  justify-content: flex-end;
}

.batch-selection-toolbar .batch-selection-actions .btn {
  flex: 0 1 auto;
  min-width: 96px;
  white-space: nowrap;
}

.batch-selection-toolbar .batch-selection-actions .btn-primary {
  min-width: 132px;
}

.batch-selection-toolbar .batch-selection-actions .btn-ghost {
  border-color: rgba(37,99,235,.32);
  background: rgba(37,99,235,.06);
  color: var(--accent);
  box-shadow: none;
}

.batch-selection-toolbar .batch-selection-actions .btn-ghost:hover {
  border-color: rgba(37,99,235,.48);
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}

.hierarchy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.015);
}

.detail-breadcrumb {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.content-align-frame.page-toolbar,
.content-align-frame.list-toolbar,
.content-align-frame.tabs,
.content-align-frame.bill-row-list,
.content-align-frame.nft-grid,
.content-align-frame.card {
  box-sizing: border-box;
}

.compact-filter-tabs.content-align-frame {
  display: inline-flex;
  width: max-content;
  max-width: min(100%, 1040px);
  margin-left: max(0px, calc((100% - 1040px) / 2));
  margin-right: auto;
}

.content-align-frame .list-pager {
  margin-left: 0;
  margin-right: 0;
}

.page-toolbar-flush {
  margin-bottom: 0;
}

.toolbar-actions,
.list-pager-actions,
.list-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-actions .btn,
.list-pager-actions .btn,
.list-row-actions .btn,
.bill-row-actions .btn {
  min-width: 86px;
}

.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.repay-list-row.bill-row-compact {
  grid-template-columns: minmax(170px, .82fr) minmax(360px, 2.2fr) minmax(132px, auto);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.borrower-loan-row.bill-row-compact {
  grid-template-columns: minmax(196px, 220px) minmax(0, 1fr) minmax(156px, max-content);
  align-items: stretch;
  gap: 18px;
  padding: 16px 18px;
}

.bill-row-main {
  align-self: center;
}

.bill-row-compact .bill-row-meta,
.admin-list-row .bill-row-meta,
.lender-list-row .bill-row-meta,
.repay-list-row .bill-row-meta {
  justify-content: flex-start;
  min-width: 0;
}

.borrower-loan-row .bill-row-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, max-content);
  align-items: center;
  gap: 14px 18px;
  min-width: 0;
  width: 100%;
}

.borrower-loan-row .bill-row-main {
  align-self: center;
}

.borrower-loan-row .bill-row-actions {
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  min-width: 156px;
}

.list-row-fields,
.borrower-loan-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.borrower-loan-fields {
  grid-template-columns: minmax(150px, 1.08fr) minmax(150px, 1.08fr) minmax(140px, .95fr) minmax(112px, .75fr) minmax(136px, .9fr);
  gap: 10px 18px;
  align-items: start;
}

.borrower-pending-loan-row .borrower-loan-fields {
  grid-template-columns: minmax(150px, 1.15fr) minmax(112px, .78fr) minmax(136px, .9fr) minmax(136px, .9fr) minmax(118px, .82fr);
}

.list-row-field,
.lender-row-field,
.borrower-loan-fields .list-row-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.list-row-field > span,
.lender-row-field > span,
.borrower-loan-fields .list-row-field > span {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.25;
}

.list-row-field > strong,
.lender-row-field > strong,
.borrower-loan-fields .list-row-field > strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.list-row-field-amount > strong,
.list-row-field-primary > strong {
  font-weight: 760;
}
.list-row-field-amount > strong {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  overflow-wrap: normal;
}
.list-row-field-date>strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}
.list-row-field-party > strong,
.list-row-field-id > strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.list-row-field-party {
  min-width: min(100%, 150px);
}
.list-row-field-date {
  min-width: min(100%, 156px);
}
.list-row-field-amount {
  min-width: 0;
}

.list-row-status,
.borrower-loan-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 120px;
  max-width: 190px;
}

.borrower-loan-status {
  align-self: center;
  min-width: 128px;
}

.list-row-status .badge,
.borrower-loan-status .badge,
.list-row-status .loan-meta-chip,
.borrower-loan-status .loan-meta-chip {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.list-row-note,
.loan-stage-hint {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-form-field {
  min-width: 220px;
  margin: 0;
}

.detail-section {
  margin-top: 16px;
}

.detail-section:first-child {
  margin-top: 0;
}

.detail-section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal-body > .detail-list + .detail-list,
.modal-body > .detail-list + .detail-section,
.detail-section + .detail-section {
  margin-top: 14px;
}

.repay-list-row .bill-row-meta {
  align-items: stretch;
}

.repay-detail-panel {
  width: 100%;
}

.repay-form {
  width: 100%;
  margin: 8px 0 0;
}

.borrower-repay-nft-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.borrower-repay-nft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.batch-upload-textarea {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.batch-upload-preview {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.modal .stat-grid {
  margin-bottom: 14px;
}

.modal .detail-row {
  gap: 12px;
}

.loan-review-nft-row {
  align-items: flex-start;
}

.loan-review-nft-row .detail-key {
  flex: 0 0 150px;
}

.loan-review-nft-id {
  margin: 0;
}

.loan-review-nft-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  text-align: right;
}

.admin-loan-terms {
  align-items: start;
  gap: 14px;
  margin-top: 2px;
}

.admin-loan-term-field {
  margin-bottom: 0;
  min-width: 0;
}

.loan-duration-field {
  display: flex;
  flex-direction: column;
}

.loan-duration-input-group {
  display: flex;
  align-items: center;
}

.loan-duration-input-group .loan-duration-input {
  min-height: 38px;
  padding-right: 58px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.loan-duration-input-group .input-unit {
  min-width: 34px;
  padding: 2px 8px;
  line-height: 1.25;
}

.loan-duration-input.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(248,81,73,.14);
}

.loan-duration-error:empty {
  display: none;
}

.admin-loan-review-footer {
  gap: 10px;
  padding-top: 14px;
}

.modal .detail-val,
.bill-row-main,
.list-id-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 1025px) {
  .stat-grid.stat-grid-4,
  .stat-grid.lender-overview-kpis,
  .stat-grid.admin-funds-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .borrower-loan-row.bill-row-compact {
    grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
  }

  .borrower-loan-row .bill-row-meta {
    grid-template-columns: 1fr;
  }

  .borrower-loan-fields,
  .borrower-pending-loan-row .borrower-loan-fields {
    grid-template-columns: repeat(3, minmax(132px, 1fr));
  }

  .borrower-loan-status {
    max-width: none;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .borrower-loan-row .bill-row-actions {
    grid-column: 2;
    justify-self: end;
    width: auto;
  }
}

@media (max-width: 1100px) {
  .bill-row-compact,
  .admin-list-row.bill-row-compact,
  .borrower-loan-row.bill-row-compact,
  .lender-list-row.bill-row-compact,
  .repay-list-row.bill-row-compact {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .bill-row-actions,
  .list-row-actions,
  .toolbar-actions {
    justify-content: flex-start;
  }

  .list-row-status,
  .borrower-loan-status {
    max-width: none;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .borrower-loan-row .bill-row-actions {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .list-row-fields,
  .borrower-loan-fields {
    grid-template-columns: repeat(2, minmax(108px, 1fr));
  }

  .admin-loan-terms {
    grid-template-columns: 1fr;
  }

  .admin-loan-review-footer {
    justify-content: stretch;
  }

  .borrower-pending-loan-row .borrower-loan-fields {
    grid-template-columns: repeat(2, minmax(108px, 1fr));
  }

  .toolbar-actions,
  .list-pager-actions,
  .list-row-actions,
  .bill-row-actions {
    width: 100%;
    justify-content: stretch;
  }

  .toolbar-actions .btn,
  .list-pager-actions .btn,
  .list-row-actions .btn,
  .bill-row-actions .btn {
    flex: 1 1 110px;
    min-width: 0;
  }

  .inline-form-field {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .admin-bills-toolbar {
    align-items: stretch;
  }

  .admin-bills-toolbar .admin-filter-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-bills-toolbar .admin-bills-add-btn {
    width: 100%;
  }
}

/* ── Product QA pass: long fields, status and modal stability ── */
.font-mono,
.detail-val,
.drawer-val,
.list-id-value,
.list-row-field > strong,
.borrower-loan-fields .list-row-field > strong,
.lender-row-field > strong {
  overflow-wrap: anywhere;
}

.badge {
  max-width: 100%;
  min-width: max-content;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.25;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.badge-green { background: rgba(63,185,80,.12); color: #8ff0a4; }
.badge-yellow { background: rgba(210,153,34,.13); color: #f5d76e; }
.badge-red { background: rgba(248,81,73,.12); color: #ffaaa5; }
.badge-orange { background: rgba(227,112,42,.13); color: #ffc08a; }
.badge-blue { background: rgba(96,165,250,.13); color: #afd5ff; }
.badge-purple { background: rgba(163,113,247,.13); color: #d3c4ff; }
.badge-gray,
.badge-muted { background: rgba(139,148,158,.12); color: #d0d7de; }

.list-row-status,
.borrower-loan-status,
.bill-row-actions,
.list-row-actions {
  position: relative;
  z-index: 1;
}

.list-row-status,
.borrower-loan-status {
  flex: 0 0 auto;
  min-width: 112px;
  max-width: 180px;
  align-items: flex-start;
}

.bill-row-meta > .list-row-status,
.loan-row-meta > .borrower-loan-status {
  justify-self: end;
}

.admin-list-row .bill-row-meta,
.lender-list-row .bill-row-meta,
.borrower-loan-row .bill-row-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, max-content);
  align-items: center;
  gap: 10px 16px;
  overflow: visible;
}

.lender-list-row .bill-row-meta {
  flex-wrap: wrap;
}

.admin-list-row .list-row-fields,
.lender-list-row .list-row-fields,
.borrower-loan-row .borrower-loan-fields {
  min-width: 0;
}

.user-table td .badge {
  vertical-align: middle;
}

.modal {
  max-width: min(100%, 760px);
}

.modal[style*="920px"] {
  max-width: min(100%, 920px) !important;
}

.modal-body {
  max-height: calc(90vh - 118px);
}

.modal-footer {
  flex-wrap: wrap;
}

.modal-footer .btn {
  min-width: 96px;
}

.borrower-pledged-meta {
  min-width: 0;
}

.borrower-pledged-meta span,
.borrower-pledged-meta .font-mono {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }

  .modal-body {
    max-height: calc(100vh - 140px);
  }

  .modal-footer .btn {
    flex: 1 1 120px;
  }

  .list-row-fields,
  .borrower-loan-fields {
    grid-template-columns: 1fr;
  }
}

/* ── Global UI cleanup final pass: unified density and no-overlap rows ── */
.stat-grid {
  align-items: stretch;
}

.stat-grid.stat-grid-4,
.stat-grid.lender-overview-kpis,
.stat-grid.admin-funds-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-width: 0;
}

.stat-label,
.stat-sub {
  line-height: 1.35;
}

.stat-value {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.btn {
  min-height: 36px;
  line-height: 1.2;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 12px;
}

.bill-row-list > .card + .card {
  margin-top: 0;
}

.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.repay-list-row.bill-row-compact {
  grid-template-columns: minmax(190px, .85fr) minmax(0, 1.85fr) minmax(128px, max-content);
  overflow: visible;
}

.admin-redeem-row-no-actions.bill-row-compact {
  grid-template-columns: minmax(190px, .85fr) minmax(0, 1.85fr);
}

.admin-list-row .bill-row-main,
.lender-list-row .bill-row-main,
.borrower-loan-row .bill-row-main {
  min-width: 0;
}

.admin-list-row .bill-row-actions:empty,
.lender-list-row .bill-row-actions:empty {
  display: none;
}

.admin-list-row .list-row-fields,
.lender-list-row .list-row-fields {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.borrower-loan-row.bill-row-compact {
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) minmax(132px, max-content);
  gap: 18px;
  padding: 18px 20px;
  border-color: rgba(148, 163, 184, .18);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, .18);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.borrower-loan-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(96, 165, 250, .045), var(--bg-card) 42%);
}

.borrower-loan-row:hover {
  border-color: rgba(96, 165, 250, .32);
  background: linear-gradient(90deg, rgba(96, 165, 250, .075), var(--bg-hover) 46%);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, .42);
}

.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.admin-redeem-row.bill-row-compact {
  border-color: rgba(148, 163, 184, .18);
  background: linear-gradient(90deg, rgba(96, 165, 250, .035), var(--bg-card) 44%);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, .14);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-list-row.bill-row-compact:hover,
.lender-list-row.bill-row-compact:hover,
.admin-redeem-row.bill-row-compact:hover {
  border-color: rgba(96, 165, 250, .3);
  background: linear-gradient(90deg, rgba(96, 165, 250, .07), var(--bg-hover) 48%);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, .36);
}

.admin-redeem-panel {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(13, 17, 23, .72);
}

.admin-list-row .list-id-label,
.lender-list-row .list-id-label,
.admin-redeem-row .list-id-label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.admin-list-row .list-id-value,
.lender-list-row .list-id-value,
.admin-redeem-row .list-id-value {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(96, 165, 250, .2);
  border-radius: 999px;
  background: rgba(96, 165, 250, .07);
  color: #bfdbfe;
  line-height: 1.2;
}

.borrower-loan-row .bill-row-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, max-content);
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
  overflow: hidden;
}

.borrower-funded-loan-row .bill-row-meta {
  grid-template-columns: minmax(0, 1fr);
}

.borrower-loan-fields {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 12px 18px;
  overflow: hidden;
}

.borrower-pending-loan-row .borrower-loan-fields {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.borrower-loan-row .loan-row-id {
  gap: 5px;
}

.borrower-loan-row .loan-row-id .list-id-label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.borrower-loan-row .loan-row-id .list-id-value {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 999px;
  background: rgba(96, 165, 250, .08);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .015em;
  line-height: 1.2;
}

.list-row-field > strong,
.borrower-loan-fields .list-row-field > strong {
  font-variant-numeric: tabular-nums;
}

.list-row-field-amount > strong {
  font-size: 14px;
  font-weight: 760;
  color: #e5f0ff;
}

.borrower-loan-fields .list-row-field {
  gap: 5px;
}

.borrower-loan-fields .list-row-field > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.admin-list-row .list-row-field > span,
.lender-list-row .list-row-field > span,
.admin-redeem-row .list-row-field > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.admin-list-row .list-row-field-date > strong,
.lender-list-row .list-row-field-date > strong,
.admin-redeem-row .list-row-field-date > strong {
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.borrower-loan-fields .list-row-field > strong {
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
}

.borrower-loan-fields .list-row-field-secondary > strong {
  color: var(--text-secondary);
  font-weight: 650;
}

.borrower-loan-fields .list-row-field-date > strong {
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.list-row-status,
.borrower-loan-status {
  justify-self: end;
  align-items: flex-start;
  overflow: visible;
}

.borrower-loan-status {
  align-self: center;
  gap: 7px;
  min-width: 118px;
  max-width: 160px;
}

.borrower-loan-status .badge {
  min-height: 24px;
  padding-inline: 10px;
}

.admin-list-row .list-row-status .badge,
.lender-list-row .list-row-status .badge,
.admin-redeem-row .list-row-status .badge {
  min-height: 24px;
  padding-inline: 10px;
}

.borrower-loan-row .bill-row-actions {
  align-self: center;
  justify-content: flex-end;
  min-width: 168px;
}

.borrower-loan-row .bill-row-actions .btn {
  min-width: 76px;
}

.loan-record-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

.loan-record-actions .btn {
  min-width: 72px;
}

.loan-record-actions .loan-operation-trigger {
  min-width: 88px;
}

.btn-action-danger {
  color: #ff938a;
  border-color: rgba(248, 81, 73, .32);
  background: rgba(248, 81, 73, .06);
}

.btn-action-danger:hover {
  color: #ffa198;
  border-color: rgba(248, 81, 73, .52);
  background: rgba(248, 81, 73, .12);
}

.loan-nft-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.loan-record-card .list-id-field {
  min-width: 0;
}

.borrower-loan-fields-drawer {
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 10px 14px;
}

.badge,
.logs-chip,
.loan-meta-chip {
  white-space: nowrap;
}

.logs-chip {
  min-height: 28px;
}

.logs-chip-group {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-toolbar,
.list-toolbar {
  min-width: 0;
}

.page-toolbar > *,
.list-toolbar > * {
  min-width: 0;
}

.nft-grid.nft-asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.borrower-unborrowed-nft-grid .nft-card {
  cursor: default;
}

.borrower-unborrowed-nft-grid .list-id-link {
  cursor: pointer;
}

.nft-meta-row {
  gap: 10px;
}

.nft-meta-value {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-row {
  gap: 14px;
  align-items: flex-start;
}

.detail-key {
  flex: 0 0 auto;
}

.detail-val {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.modal {
  max-width: min(100%, 760px);
}

.modal-header,
.modal-footer {
  flex: 0 0 auto;
}

.modal-footer {
  align-items: center;
}

.redeem-modal .modal-header {
  align-items: flex-start;
  gap: 16px;
}

.redeem-modal .modal-header > div,
.redeem-modal .modal-body,
.redeem-modal .alert > div,
.redeem-modal-note,
.redeem-guidance .text-xs {
  min-width: 0;
}

.redeem-modal-note,
.redeem-guidance .text-xs {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.redeem-modal .modal-body {
  overflow-x: hidden;
}

.redeem-choice-list {
  gap: 10px;
}

.redeem-choice-row.bill-row-compact {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.1fr) minmax(144px, max-content);
  align-items: center;
}

.redeem-choice-row .bill-row-actions {
  min-width: 0;
  justify-content: flex-end;
}

.redeem-choice-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.redeem-choice-actions .btn {
  white-space: nowrap;
}

.repay-form .toolbar-actions {
  flex-wrap: wrap;
}

.loan-repay-panel-row td {
  background: rgba(15, 23, 42, .36);
  padding: 0 12px 12px;
}

.loan-inline-repay-panel {
  width: 100%;
  margin: 4px 0 8px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(96, 165, 250, .08), rgba(15, 23, 42, .64));
}

.loan-inline-repay-panel-wrap {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.borrower-loan-row .loan-inline-repay-panel {
  margin-top: 8px;
}

.loan-record-card .loan-inline-repay-panel {
  margin-top: 12px;
}

.loan-inline-repay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.loan-inline-repay-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(96, 165, 250, .32);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, .18), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, .9), rgba(30, 58, 95, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 34px rgba(15, 23, 42, .22);
}

.loan-inline-repay-hero-label {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.loan-inline-repay-hero-amount {
  color: #f8fafc;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 820;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.loan-inline-repay-hero-amount .metric-unit {
  color: rgba(226, 232, 240, .76);
  font-size: .42em;
  letter-spacing: .08em;
  margin-left: 4px;
}

.loan-inline-repay-hero-note {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

.loan-inline-repay-summary {
  margin-bottom: 12px;
}

.loan-repay-summary-fields {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.loan-inline-repay-form {
  margin-top: 0;
}

.loan-repay-modal {
  overflow: hidden;
}

.loan-repay-modal .modal-body {
  padding-bottom: 18px;
}

.loan-repay-modal-hero {
  margin-top: 0;
}

.loan-cancel-modal .action-confirm-detail {
  margin: 0;
}

.loan-inline-alert {
  margin: 0;
  padding: 10px 12px;
}

@media (max-width: 1280px) {
  .borrower-loan-row.bill-row-compact {
    grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
  }

  .borrower-loan-row .bill-row-meta {
    grid-template-columns: 1fr;
  }

  .borrower-loan-status {
    justify-self: start;
    max-width: none;
  }

  .borrower-loan-row .bill-row-actions {
    grid-column: 2;
  }
}

@media (max-width: 1024px) {
  .stat-grid.stat-grid-4,
  .stat-grid.lender-overview-kpis,
  .stat-grid.admin-funds-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .bill-row-compact,
  .admin-list-row.bill-row-compact,
  .borrower-loan-row.bill-row-compact,
  .lender-list-row.bill-row-compact,
  .repay-list-row.bill-row-compact {
    grid-template-columns: 1fr;
  }

  .list-row-status,
  .borrower-loan-status,
  .bill-row-meta > .list-row-status,
  .loan-row-meta > .borrower-loan-status {
    justify-self: start;
  }

  .borrower-loan-row .bill-row-actions {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .stat-grid,
  .stat-grid.stat-grid-4,
  .stat-grid.lender-overview-kpis,
  .stat-grid.admin-funds-kpis {
    grid-template-columns: 1fr;
  }

  .nft-grid.nft-asset-grid {
    grid-template-columns: 1fr;
  }

  .detail-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-val {
    text-align: left;
  }

  .batch-redeem-grid,
  .redeem-choice-row.bill-row-compact {
    grid-template-columns: 1fr;
  }

  .pool-batch-redeem-fields {
    grid-template-columns: 1fr;
  }

  .pledge-nft-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pledge-nft-modal {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .pledge-nft-fixed-top {
    padding: 12px 14px 10px;
  }

  .pledge-nft-scroll {
    padding: 10px 14px;
  }

  .pledge-nft-fixed-bottom {
    padding: 10px 14px 12px;
  }

  .pledge-nft-target,
  .pledge-nft-target .form-select {
    width: 100%;
    min-width: 0;
  }

  .redeem-choice-row .bill-row-actions,
  .redeem-choice-actions {
    justify-content: stretch;
  }

  .redeem-choice-actions .btn,
  .redeem-modal-footer .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* 批量上传提单二级页：输入、预览与操作区企业风布局 */
.modal.batch-upload-modal {
  max-width: min(1120px, calc(100vw - 40px)) !important;
}

.batch-upload-modal .modal-header {
  align-items: flex-start;
  gap: 16px;
}

.batch-upload-subtitle {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 620px;
}

.bill-batch-upload-page {
  max-width: 1080px;
}

.batch-upload-workspace {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,255,.96)),
    var(--bg-card2);
}

.batch-upload-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(0,107,214,.14);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(20,32,51,.05);
}

.batch-upload-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.batch-upload-panel-head .detail-section-title {
  margin-bottom: 4px;
}

.batch-upload-panel-desc {
  max-width: 660px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.batch-upload-panel-note {
  flex: none;
  max-width: 260px;
  padding: 5px 10px;
  border: 1px solid rgba(0,107,214,.16);
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.batch-upload-editor-shell {
  min-width: 0;
  border: 1px solid rgba(0,107,214,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f6faff);
  overflow: hidden;
}

.batch-upload-editor-shell:focus-within {
  border-color: rgba(0,107,214,.48);
  box-shadow: 0 0 0 3px rgba(0,107,214,.10);
}

.batch-upload-textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
  resize: vertical;
}

.batch-upload-textarea:focus {
  box-shadow: none;
}

.batch-upload-input-tip {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.batch-upload-preview {
  max-height: min(460px, 46vh);
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.batch-upload-preview-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.batch-upload-preview-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216,226,239,.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.batch-upload-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.batch-upload-preview-index {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,107,214,.08);
  color: var(--accent);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
}

.batch-upload-preview-fields {
  display: grid;
  grid-template-columns: minmax(128px, .72fr) minmax(260px, 1.65fr) minmax(150px, .88fr) minmax(190px, 1fr);
  gap: 12px 18px;
  align-items: start;
}

.batch-upload-preview-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.batch-upload-preview-field > span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .02em;
}

.batch-upload-preview-field > strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-upload-preview-id > strong,
.batch-upload-preview-date > strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.batch-upload-preview-id > strong {
  font-size: 14px;
  font-weight: 760;
  color: #12345f;
}

.batch-upload-preview-wide > strong {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.batch-upload-preview-amount > strong {
  color: var(--accent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.batch-upload-preview-date > strong {
  color: var(--text-secondary);
  font-size: 12px;
}

.batch-upload-preview-summary {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.batch-upload-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.batch-upload-footer-support {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.batch-upload-footer-support .btn,
.batch-upload-footer-actions .btn {
  flex: none;
}

.batch-upload-footer-support span {
  min-width: 0;
}

.batch-upload-footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: none;
}

@media (max-width: 720px) {
  .modal.batch-upload-modal {
    max-width: calc(100vw - 24px) !important;
  }

  .batch-upload-workspace {
    padding: 12px;
  }

  .batch-upload-panel {
    padding: 14px;
  }

  .batch-upload-panel-head,
  .batch-upload-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .batch-upload-panel-note {
    max-width: none;
    text-align: left;
  }

  .batch-upload-footer-support,
  .batch-upload-footer-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .batch-upload-footer-support .btn,
  .batch-upload-footer-actions .btn {
    width: 100%;
  }

  .batch-upload-footer-support span {
    order: -1;
  }

  .batch-upload-textarea {
    min-height: 180px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .batch-upload-preview-list {
    min-width: 0;
  }

  .batch-upload-preview-fields {
    grid-template-columns: 1fr;
  }

  .batch-upload-preview-field > strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ── Conservative UI/UX optimization pass ── */
.empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
}

.empty-state-compact {
  padding: 16px;
}

.empty-state-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(139,148,158,.22);
  color: var(--text-secondary);
  background: rgba(139,148,158,.08);
  font-size: 18px;
  line-height: 1;
}

.empty-state-copy {
  min-width: 0;
}

.empty-state-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.empty-state-subtitle {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 3px;
}

.empty-state-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state-actions .btn {
  min-width: 96px;
}

.btn:disabled {
  pointer-events: auto;
}

.btn:disabled:hover {
  transform: none;
}

.modal-footer .btn-primary,
.modal-footer .btn-danger {
  order: 2;
}

.modal-footer .btn-ghost {
  order: 1;
}

.drawer-body .card {
  border-color: rgba(148,163,184,.16);
}

.loan-stage-hint {
  display: block;
  line-height: 1.45;
}

.batch-upload-preview .empty-state {
  min-width: 0;
}

@media (max-width: 720px) {
  .empty-state {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .empty-state-mark {
    display: none;
  }

  .empty-state-actions,
  .empty-state-actions .btn {
    width: 100%;
  }
}

/* ── Final UI/UX polish pass: typography, density, actions, responsive ── */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  letter-spacing: .005em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-title,
.modal-title {
  font-weight: 720;
  letter-spacing: .005em;
}

.page-title {
  font-size: clamp(20px, 2vw, 24px);
}

h3,
.detail-section-title,
.admin-dash-panel-head h3,
.admin-focus-card-head h3 {
  font-size: 15px;
  font-weight: 680;
}

h4,
.drawer-section-title,
.stat-label,
.list-row-field > span,
.lender-row-field > span,
.borrower-loan-fields .list-row-field > span,
.form-label {
  font-weight: 620;
}

.text-xs,
.form-hint,
.stat-sub,
.list-row-note,
.loan-stage-hint,
.page-subtitle {
  line-height: 1.45;
}

.font-mono,
.stat-value,
.detail-val.font-mono,
.list-id-value,
.list-row-field-date > strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.card {
  padding: 18px;
}

.card-sm {
  padding: 14px 16px;
}

.card + .card,
.bill-row-list > .card + .card,
.platform-row-list > .card + .card {
  margin-top: 0;
}

.stat-grid {
  gap: 12px;
}

.stat-card {
  padding: 14px 16px;
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-value {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 780;
}

.btn {
  min-height: 36px;
  padding-inline: 14px;
  font-weight: 640;
  letter-spacing: .005em;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 12px;
}

.btn-lg {
  min-height: 44px;
}

.btn-secondary,
.btn-ghost {
  box-shadow: none;
}

.btn-danger {
  background: rgba(248,81,73,.12);
  border: 1px solid rgba(248,81,73,.48);
  color: #ffaaa5;
}

.btn-danger:hover {
  background: rgba(248,81,73,.18);
  border-color: rgba(248,81,73,.68);
}

.toolbar-actions,
.list-row-actions,
.bill-row-actions,
.modal-footer {
  gap: 8px;
}

.badge,
.loan-meta-chip,
.logs-chip {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 12px;
}

.form-input,
.form-select {
  min-height: 40px;
}

.form-textarea {
  min-height: 96px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(139,148,158,.72);
}

.quick-btn,
.op-page .quick-btn,
.toolbar-actions .btn.btn-ghost.btn-sm {
  min-width: 56px;
}

.modal-overlay {
  padding: 18px;
}

.modal {
  overflow: hidden;
}

.modal-header {
  align-items: flex-start;
  gap: 14px;
}

.modal-header > div {
  min-width: 0;
}

.modal-body {
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.modal-footer {
  align-items: center;
}

.modal-footer .btn:first-child.btn-ghost {
  margin-right: auto;
}

.drawer {
  width: min(440px, 100vw);
  right: min(-440px, -100vw);
}

.drawer-body {
  padding: 18px;
}

.drawer-row {
  gap: 14px;
}

.drawer-val {
  max-width: 68%;
}

.table-wrap {
  max-width: 100%;
}

table {
  font-size: 12px;
}

thead th {
  font-weight: 650;
}

tbody td {
  vertical-align: middle;
}

.bill-row-list,
.platform-row-list,
.group-loan-list {
  gap: 10px;
}

.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.repay-list-row.bill-row-compact {
  padding: 14px 16px;
  border-color: rgba(148,163,184,.16);
}

.list-id-label,
.detail-key,
.nft-meta-label {
  color: var(--text-muted);
}

.list-id-value,
.detail-val,
.nft-meta-value,
.lender-row-field > strong,
.list-row-field > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.borrow-hero-card {
  gap: 20px;
  padding: 22px;
}

.borrow-hero-actions .btn {
  min-width: 112px;
}

.borrow-limit-focus-row {
  align-items: flex-start;
}

.borrow-limit-focus-actions .btn {
  min-width: 88px;
}

.pool-nft-sections,
.loan-nft-detail-list,
.batch-redeem-grid,
.nft-grid {
  min-width: 0;
}

.loan-record-actions,
.lender-pending-actions {
  justify-content: flex-end;
}

#borrower-group-detail-modal .modal-body > .detail-list {
  margin-bottom: 18px;
}

#borrower-group-detail-modal .modal-footer {
  justify-content: flex-end;
}

#borrower-group-detail-modal .modal-footer .btn:first-child {
  margin-right: 0;
}

#page-borrow .pool-credit-focus-card {
  padding: 16px 18px;
}

.borrow-quota-card {
  overflow: hidden;
  border-color: rgba(96,165,250,.18);
  background:
    linear-gradient(135deg, rgba(96,165,250,.07), rgba(13,17,23,.28) 48%, rgba(255,255,255,.015)),
    var(--bg-card2);
}

.borrow-quota-layout {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.borrow-quota-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: var(--radius-lg);
  background: rgba(13,17,23,.22);
}

.borrow-quota-chart {
  --borrow-used-color: #5b7fa8;
  --borrow-available-color: #58c783;
  width: min(188px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(13,17,23,.98) 0 60%, transparent 61%),
    conic-gradient(var(--borrow-used-color) 0deg var(--borrow-used-deg), var(--borrow-available-color) var(--borrow-used-deg) 360deg);
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 12px 24px rgba(0,0,0,.18);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.borrow-quota-chart:hover {
  border-color: rgba(88,199,131,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 14px 28px rgba(0,0,0,.22);
  transform: translateY(-1px);
}

.borrow-quota-chart:focus-visible,
.borrow-quota-legend-item:focus-visible,
.borrow-quota-metric:focus-visible {
  outline: 2px solid rgba(96,165,250,.62);
  outline-offset: 3px;
}

.borrow-quota-chart.is-empty {
  background:
    radial-gradient(circle at center, rgba(13,17,23,.98) 0 60%, transparent 61%),
    conic-gradient(rgba(148,163,184,.18) 0deg 360deg);
}

.borrow-quota-chart-center {
  width: 60%;
  min-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  transform: translateY(1px);
}

.borrow-quota-chart-center span {
  display: block;
  color: rgba(148,163,184,.82);
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.borrow-quota-chart-center strong {
  display: block;
  color: #7ddf9b;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 850;
  line-height: 1.05;
  max-width: 100%;
  overflow-wrap: normal;
}

.borrow-quota-chart-center strong .metric-text {
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  white-space: normal;
}

.borrow-quota-chart-center strong .metric-number {
  font-size: 1em;
  letter-spacing: -.035em;
}

.borrow-quota-chart-center strong .metric-unit {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .04em;
}

.borrow-quota-scope[data-quota-selected="used"] .borrow-quota-chart-center strong {
  color: #8db4df;
}

.borrow-quota-scope[data-quota-selected="total"] .borrow-quota-chart-center strong {
  color: #cbd5e1;
}

.borrow-hero-chart {
  width: min(190px, 100%);
}

.borrow-hero-chart .borrow-quota-chart-center {
  width: 62%;
}

.borrow-hero-chart .borrow-quota-chart-center strong {
  font-size: clamp(18px, 1.85vw, 21px);
}

.borrow-quota-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 10.5px;
  line-height: 1.2;
}

.borrow-quota-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--text-secondary);
  line-height: 1.15;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}

.borrow-quota-legend-item:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(148,163,184,.18);
  color: var(--text-primary);
}

.borrow-quota-legend-item.is-selected {
  color: var(--text-primary);
  background: rgba(255,255,255,.065);
}

.borrow-quota-legend-item.is-available.is-selected {
  border-color: rgba(88,199,131,.42);
  box-shadow: inset 0 0 0 1px rgba(88,199,131,.08);
}

.borrow-quota-legend-item.is-used.is-selected {
  border-color: rgba(91,127,168,.48);
  box-shadow: inset 0 0 0 1px rgba(91,127,168,.1);
}

.borrow-quota-legend-item.is-total.is-selected {
  border-color: rgba(148,163,184,.42);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.08);
}

.borrow-quota-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 7px;
}

.borrow-quota-dot.is-available {
  background: #58c783;
  box-shadow: 0 0 0 2px rgba(88,199,131,.1);
}

.borrow-quota-dot.is-used {
  background: #5b7fa8;
  box-shadow: 0 0 0 2px rgba(91,127,168,.11);
}

.borrow-quota-dot.is-total {
  background: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148,163,184,.1);
}

.borrow-quota-main {
  min-width: 0;
}

.borrow-hero-side.borrow-quota-main--hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.borrow-quota-metrics.borrow-quota-metrics--hero {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.borrow-quota-metrics.borrow-quota-metrics--hero > div {
  min-height: 68px;
  background: rgba(13,17,23,.28);
}

.borrow-hero-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  color: var(--text-muted);
  font-size: 11px;
}

.borrow-hero-context strong {
  color: var(--text-secondary);
  font-weight: 650;
}

.borrow-hero-context .metric-number {
  color: var(--text-secondary);
  font-size: 1.16em;
  font-weight: 800;
}

.borrow-hero-context .metric-unit {
  font-size: .72em;
}

.borrow-quota-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.borrow-quota-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(63,185,80,.22);
  border-radius: var(--radius);
  background: rgba(63,185,80,.07);
}

.borrow-quota-available strong {
  display: block;
  color: #7ee787;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.borrow-quota-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.borrow-quota-metrics > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(13,17,23,.3);
  transition: border-color .15s, background .15s, transform .15s;
}

.borrow-quota-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.borrow-quota-metric:hover {
  background: rgba(255,255,255,.035);
  transform: translateY(-1px);
}

.borrow-quota-metric.is-available:hover {
  border-color: rgba(88,199,131,.36);
}

.borrow-quota-metric.is-used:hover {
  border-color: rgba(91,127,168,.42);
}

.borrow-quota-metric.is-total:hover {
  border-color: rgba(148,163,184,.32);
}

.borrow-quota-metric.is-selected {
  background: rgba(255,255,255,.045);
  transform: translateY(-1px);
}

.borrow-quota-metric.is-available.is-selected {
  border-color: rgba(88,199,131,.48);
  box-shadow: inset 0 0 0 1px rgba(88,199,131,.08);
}

.borrow-quota-metric.is-used.is-selected {
  border-color: rgba(91,127,168,.52);
  box-shadow: inset 0 0 0 1px rgba(91,127,168,.1);
}

.borrow-quota-metric.is-total.is-selected {
  border-color: rgba(148,163,184,.42);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.08);
}

.borrow-quota-metrics span,
.borrow-quota-metrics small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.borrow-quota-metrics .borrow-quota-metric > span {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.borrow-quota-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.borrow-quota-chart-center .metric-text,
.borrow-quota-metrics .metric-text {
  display: inline-flex;
  align-items: baseline;
  gap: .24em;
  color: inherit;
  font-size: inherit;
  line-height: 1;
  white-space: nowrap;
}

.borrow-quota-chart-center .metric-text span,
.borrow-quota-metrics .metric-text span {
  display: inline;
  margin: 0;
  line-height: 1;
}

.borrow-quota-chart-center .metric-unit,
.borrow-quota-metrics .metric-unit {
  color: var(--text-secondary);
}

.borrow-quota-metrics small {
  margin-top: 3px;
}

#page-borrow .form-input[type="number"] {
  font-variant-numeric: tabular-nums;
}

.btn:not(:disabled):not(.disabled):active {
  transform: translateY(1px);
}

.form-input.is-invalid {
  border-color: rgba(248,81,73,.82);
  box-shadow: 0 0 0 3px rgba(248,81,73,.12);
}

.modal-overlay.open .modal,
.drawer.open {
  animation: surface-pop .18s ease;
}

@keyframes surface-pop {
  from { opacity: .72; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.borrow-quota-scope .borrow-quota-chart,
.borrow-quota-scope .borrow-quota-metric,
.borrow-quota-scope .borrow-quota-legend-item {
  cursor: pointer;
}

.borrow-quota-scope .borrow-quota-chart {
  transition: transform .18s ease, box-shadow .18s ease;
}

.borrow-quota-scope[data-quota-focus] .borrow-quota-chart {
  transform: translateY(-1px) scale(1.015);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 14px 32px rgba(0,0,0,.24);
}

.borrow-quota-scope[data-quota-focus="available"] .borrow-quota-chart {
  --borrow-available-color: #7ee787;
}

.borrow-quota-scope[data-quota-focus="used"] .borrow-quota-chart {
  --borrow-used-color: #8ab4f8;
}

.borrow-quota-scope[data-quota-focus="total"] .borrow-quota-chart {
  box-shadow: inset 0 0 0 2px rgba(148,163,184,.26), 0 14px 32px rgba(0,0,0,.24);
}

.borrow-quota-scope[data-quota-focus="available"] .borrow-quota-metric.is-available,
.borrow-quota-scope[data-quota-focus="used"] .borrow-quota-metric.is-used,
.borrow-quota-scope[data-quota-focus="total"] .borrow-quota-metric.is-total,
.borrow-quota-scope[data-quota-focus="available"] .borrow-quota-legend-item.is-available,
.borrow-quota-scope[data-quota-focus="used"] .borrow-quota-legend-item.is-used,
.borrow-quota-scope[data-quota-focus="total"] .borrow-quota-legend-item.is-total {
  border-color: rgba(96,165,250,.45);
  background: rgba(37,99,235,.14);
  color: var(--text-primary);
}

.borrow-hero-primary {
  box-shadow: 0 0 0 1px rgba(126,231,135,.18), 0 12px 24px rgba(63,185,80,.12);
}

#jnft-grid-dashboard .dashboard-pool-row {
  cursor: default;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

#jnft-grid-dashboard .dashboard-pool-row:hover {
  border-color: rgba(96,165,250,.32);
  background:
    radial-gradient(circle at 48% 20%, rgba(88,199,131,.045), transparent 34%),
    rgba(37,99,235,.035);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transform: translateY(-1px);
}

#jnft-grid-dashboard .dashboard-pool-row:hover .dashboard-pool-available strong,
#jnft-grid-dashboard .dashboard-pool-row[data-quota-focus="available"] .dashboard-pool-available strong {
  text-shadow: 0 0 16px rgba(126,231,135,.22);
}

.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact {
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.bill-row-compact:hover,
.admin-list-row.bill-row-compact:hover,
.lender-list-row.bill-row-compact:hover {
  border-color: rgba(96,165,250,.34);
  background: rgba(37,99,235,.045);
}

.borrow-amount-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  color: var(--text-secondary);
  font-size: 12px;
}

.borrow-amount-live strong {
  color: var(--text-primary);
  font-weight: 720;
}

.borrow-amount-live.is-ok {
  border-color: rgba(63,185,80,.3);
  background: rgba(63,185,80,.08);
}

.borrow-amount-live.is-ok strong {
  color: #7ee787;
}

.borrow-limit-boost-card {
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.borrow-limit-boost-card:hover {
  border-color: rgba(96,165,250,.5);
  transform: translateY(-2px);
}

.borrow-limit-boost-card.selected {
  border-color: rgba(96,165,250,.9);
  box-shadow: 0 0 0 2px rgba(96,165,250,.2);
}

.loan-ledger-row.is-expanded {
  background: rgba(37,99,235,.07);
}

.loan-expand-btn::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  margin-left: 6px;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .16s ease;
}

.loan-expand-btn.open::after {
  transform: rotate(225deg) translateY(-1px);
}

.loan-nft-detail-row.open td {
  border-top-color: rgba(96,165,250,.2);
  background: rgba(13,17,23,.4);
}

@media (min-width: 1025px) {
  .stat-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  .modal-lg,
  .modal[style*="920px"],
  .modal[style*="860px"],
  .modal[style*="760px"] {
    max-width: calc(100vw - 28px) !important;
  }

  .borrow-limit-focus-row,
  .fund-pool-head,
  .lender-records-head {
    flex-direction: column;
  }

  .pool-credit-focus-amount,
  .borrow-limit-focus-amount,
  .fund-pool-total {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .borrow-quota-layout {
    grid-template-columns: 1fr;
  }

  .borrow-quota-chart {
    width: min(188px, 68vw);
  }
}

@media (max-width: 720px) {
  .container,
  .container-md,
  .container-sm {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-title {
    font-size: 20px;
  }

  .card,
  .card-sm {
    padding: 14px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal {
    border-radius: 12px;
    max-height: calc(100vh - 20px);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .modal-footer {
    align-items: stretch;
  }

  .modal-footer .btn,
  .modal-footer .btn:first-child.btn-ghost {
    width: 100%;
    margin-right: 0;
  }

  .drawer {
    width: 100vw;
    right: -100vw;
  }

  .drawer-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .drawer-val {
    max-width: none;
    text-align: left;
  }

  .borrow-hero-actions,
  .toolbar-actions,
  .list-row-actions,
  .bill-row-actions,
  .loan-record-actions,
  .lender-pending-actions {
    width: 100%;
    justify-content: stretch;
  }

  .borrow-hero-actions .btn,
  .toolbar-actions .btn,
  .list-row-actions .btn,
  .bill-row-actions .btn,
  .loan-record-actions .btn,
  .lender-pending-actions .btn {
    flex: 1 1 120px;
    min-width: 0;
  }

  .borrow-quota-available {
    align-items: flex-start;
    flex-direction: column;
  }

  .borrow-quota-available .btn {
    width: 100%;
  }

  .borrow-quota-metrics {
    grid-template-columns: 1fr;
  }

  .form-input,
  .form-select {
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .borrow-hero-actions .btn,
  .toolbar-actions .btn,
  .list-row-actions .btn,
  .bill-row-actions .btn,
  .loan-record-actions .btn,
  .lender-pending-actions .btn {
    flex-basis: 100%;
  }
}

/* Borrower dashboard · bolder fintech surface */
.dashboard-page {
  position: relative;
  overflow: hidden;
}

.dashboard-page::before,
.dashboard-page::after {
  content: '';
  position: fixed;
  inset: 56px 0 0;
  pointer-events: none;
  z-index: 0;
}

.dashboard-page::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(34,197,94,.16), transparent 28%),
    radial-gradient(circle at 78% 6%, rgba(37,99,235,.18), transparent 30%),
    radial-gradient(circle at 50% 58%, rgba(124,58,237,.08), transparent 38%);
}

.dashboard-page::after {
  opacity: .24;
  background-image:
    linear-gradient(rgba(148,163,184,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 76%);
}

.borrower-dashboard-shell {
  position: relative;
  z-index: 1;
}

.dashboard-topbar {
  padding: 2px 2px 0;
}

.dashboard-topbar .page-title {
  letter-spacing: .02em;
}

.dashboard-topbar .btn-ghost {
  background: rgba(15,23,42,.54);
  border-color: rgba(148,163,184,.18);
  backdrop-filter: blur(12px);
}

.borrow-hero {
  position: relative;
}

.borrow-hero-card {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.16fr) minmax(220px, 280px) minmax(260px, .82fr);
  gap: 22px;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
  border-color: rgba(96,165,250,.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.72), rgba(22,27,34,.92) 44%, rgba(9,14,24,.92)),
    radial-gradient(circle at 88% 14%, rgba(37,99,235,.24), transparent 34%);
  box-shadow:
    0 24px 70px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.borrow-hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 32%, rgba(126,231,135,.24), transparent 30%),
    radial-gradient(circle at 66% 16%, rgba(96,165,250,.22), transparent 28%);
  opacity: .8;
}

.borrow-hero-card::after {
  content: '';
  position: absolute;
  right: -96px;
  top: -126px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(96,165,250,.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 42px rgba(96,165,250,.025),
    inset 0 0 0 86px rgba(126,231,135,.02);
  opacity: .9;
}

.borrow-hero-card.is-ready {
  border-color: rgba(126,231,135,.34);
  background:
    linear-gradient(135deg, rgba(10,27,22,.72), rgba(22,27,34,.94) 46%, rgba(8,14,24,.94)),
    radial-gradient(circle at 82% 10%, rgba(34,197,94,.22), transparent 32%);
}

.borrow-hero-main {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.borrow-hero-title {
  max-width: 520px;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: -.01em;
}

.borrow-hero-amount {
  margin-top: 10px;
  font-size: clamp(32px, 4.2vw, 46px);
  letter-spacing: -.035em;
  text-shadow: 0 0 28px rgba(126,231,135,.2);
}

.borrow-hero-amount .metric-text {
  gap: .34em;
}

.borrow-hero-amount .metric-unit {
  letter-spacing: .06em;
  margin-left: 0;
}

.borrow-hero-actions {
  margin-top: 20px;
  gap: 10px;
}

.borrow-hero-actions .btn {
  min-height: 40px;
  border-radius: 999px;
  padding-inline: 18px;
}

.borrow-hero-primary {
  background: linear-gradient(135deg, #16a34a, #2563eb);
  border: 1px solid rgba(126,231,135,.22);
  box-shadow: 0 0 0 1px rgba(126,231,135,.18), 0 18px 34px rgba(22,163,74,.22);
}

.borrow-hero-primary:hover,
.borrow-hero-primary:focus-visible {
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  box-shadow: 0 0 0 3px rgba(34,197,94,.14), 0 20px 40px rgba(37,99,235,.26);
}

.borrow-hero-amount .metric-number {
  font-size: 1.06em;
}

.borrow-hero-amount .metric-unit {
  font-size: .52em;
  letter-spacing: .06em;
  margin-left: 0;
}

.borrow-hero-actions {
  margin-top: 20px;
  gap: 10px;
}

.borrow-hero-actions .btn {
  min-height: 40px;
  border-radius: 999px;
  padding-inline: 18px;
}

.borrow-hero-primary {
  background: linear-gradient(135deg, #16a34a, #2563eb);
  border: 1px solid rgba(126,231,135,.22);
  box-shadow: 0 0 0 1px rgba(126,231,135,.18), 0 18px 34px rgba(22,163,74,.22);
}

.borrow-hero-primary:hover,
.borrow-hero-primary:focus-visible {
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  box-shadow: 0 0 0 3px rgba(34,197,94,.14), 0 20px 40px rgba(37,99,235,.26);
}

.borrow-hero-chart-panel {
  position: relative;
  z-index: 1;
  padding: 16px;
  border-color: rgba(96,165,250,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(96,165,250,.16), transparent 42%),
    rgba(2,6,23,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(14px);
}

.borrow-hero-chart {
  width: min(210px, 100%);
  border-color: rgba(126,231,135,.18);
  filter: drop-shadow(0 0 24px rgba(88,199,131,.12));
}

.borrow-hero-chart .borrow-quota-chart-center strong {
  font-size: var(--amount-ring);
}

.loan-summary-value .metric-number,
.pool-borrow-available-badge strong .metric-number,
.loan-inline-repay-hero-amount .metric-number {
  font-size: 1em;
}

.loan-summary-value .metric-unit,
.pool-borrow-available-badge strong .metric-unit,
.loan-inline-repay-hero-amount .metric-unit {
  font-size: .5em;
  backdrop-filter: blur(12px);
}

.dashboard-section-head {
  position: relative;
  margin-top: 22px;
  padding: 0 2px 2px;
}

.dashboard-section-head h3 {
  font-size: 16px;
  letter-spacing: .01em;
}

.dashboard-nft-btn {
  border-radius: 999px;
  background: rgba(15,23,42,.46);
  backdrop-filter: blur(12px);
}

#jnft-grid-dashboard {
  gap: 12px;
}

#jnft-grid-dashboard .dashboard-pool-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.05fr) minmax(360px, 1.25fr);
  min-height: 148px;
  padding: 20px 22px;
  border-color: rgba(148,163,184,.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(15,23,42,.52)),
    rgba(22,27,34,.86);
  box-shadow: 0 14px 36px rgba(0,0,0,.2);
}

#jnft-grid-dashboard .dashboard-pool-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #7ee787, #60a5fa);
  opacity: .7;
}

#jnft-grid-dashboard .dashboard-pool-row::after {
  content: '';
  position: absolute;
  inset: -40% -12% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.13), transparent 64%);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

#jnft-grid-dashboard .dashboard-pool-row:hover {
  border-color: rgba(96,165,250,.42);
  background:
    radial-gradient(circle at 44% 20%, rgba(88,199,131,.07), transparent 34%),
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(15,23,42,.5)),
    rgba(22,27,34,.9);
  box-shadow: 0 20px 46px rgba(0,0,0,.3), 0 0 0 1px rgba(96,165,250,.08);
  transform: translateY(-2px);
}

#jnft-grid-dashboard .dashboard-pool-row:hover::after {
  opacity: 1;
  transform: translate(-8px, 8px);
}

#jnft-grid-dashboard .dashboard-pool-lender {
  color: rgba(203,213,225,.82);
  letter-spacing: .02em;
}

#jnft-grid-dashboard .dashboard-pool-main .loan-row-id {
  padding: 6px 0;
}

#jnft-grid-dashboard .dashboard-pool-main .list-id-label {
  color: rgba(148,163,184,.58);
}

#jnft-grid-dashboard .dashboard-pool-main .list-id-value {
  color: #dbeafe;
}

#jnft-grid-dashboard .dashboard-pool-brief-row .badge {
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(126,231,135,.08);
}

#jnft-grid-dashboard .dashboard-pool-available {
  border-color: rgba(126,231,135,.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 76% 20%, rgba(126,231,135,.2), transparent 36%),
    linear-gradient(135deg, rgba(63,185,80,.13), rgba(15,23,42,.46));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 16px 30px rgba(0,0,0,.18);
}

#jnft-grid-dashboard .dashboard-pool-util {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 999px;
  background: rgba(15,23,42,.62);
}

#jnft-grid-dashboard .dashboard-pool-util i {
  display: block;
  width: var(--pool-used-pct, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #8ab4f8);
  box-shadow: 0 0 12px rgba(96,165,250,.34);
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field {
  min-height: 42px;
  padding-left: 12px;
  border-left-color: rgba(96,165,250,.16);
}

#jnft-grid-dashboard .dashboard-pool-flow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(96,165,250,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.32);
}

#jnft-grid-dashboard .dashboard-pool-flow-label {
  color: rgba(148,163,184,.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

#jnft-grid-dashboard .dashboard-pool-flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

#jnft-grid-dashboard .dashboard-pool-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  background: rgba(15,23,42,.36);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

#jnft-grid-dashboard .dashboard-pool-flow-step b {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(148,163,184,.12);
  color: inherit;
  font-size: 10px;
  font-weight: 800;
}

#jnft-grid-dashboard .dashboard-pool-flow-step.is-active {
  border-color: rgba(96,165,250,.48);
  background: rgba(37,99,235,.16);
  color: #bfdbfe;
  box-shadow: 0 0 0 1px rgba(96,165,250,.06) inset;
}

#jnft-grid-dashboard .dashboard-pool-flow-step.is-active b {
  background: #3b82f6;
  color: #fff;
}

#jnft-grid-dashboard .dashboard-pool-flow-step.is-done {
  border-color: rgba(126,231,135,.2);
  background: rgba(34,197,94,.08);
  color: rgba(126,231,135,.86);
}

#jnft-grid-dashboard .dashboard-pool-flow-step.is-done b {
  background: rgba(34,197,94,.18);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn {
  border-radius: 999px;
  background: rgba(15,23,42,.48);
  backdrop-filter: blur(10px);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary {
  border-color: rgba(96,165,250,.72);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37,99,235,.26);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-secondary {
  border-color: rgba(148,163,184,.24);
  background: rgba(30,41,59,.62);
  color: var(--text-primary);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-ghost {
  border-color: rgba(148,163,184,.16);
  background: rgba(15,23,42,.34);
  color: var(--text-secondary);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn:focus-visible {
  border-color: rgba(126,231,135,.58);
  background: rgba(34,197,94,.13);
  box-shadow: 0 0 0 3px rgba(34,197,94,.12), 0 12px 22px rgba(0,0,0,.2);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary:focus-visible {
  border-color: rgba(147,197,253,.9);
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18), 0 14px 26px rgba(37,99,235,.3);
}

.pool-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pool-detail-section {
  padding: 16px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.025);
}

.pool-detail-section-quota {
  padding: 0;
  border: 0;
  background: transparent;
}

.pool-detail-section .pool-nft-section,
.pool-detail-section .pool-borrow-application {
  margin: 0;
}

.pool-nft-section {
  padding: 16px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.025);
}

.pool-borrow-application {
  border-color: rgba(96,165,250,.22);
  background:
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(15,23,42,.48)),
    rgba(255,255,255,.025);
}

.loan-inline-repay-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.loan-inline-repay-input-row .btn {
  min-height: 38px;
}

.loan-inline-repay-quick {
  justify-content: flex-start;
}

.dashboard-empty-card {
  border-color: rgba(96,165,250,.2);
  background:
    radial-gradient(circle at 50% 0, rgba(96,165,250,.12), transparent 38%),
    rgba(22,27,34,.88);
}

.borrow-hero-card.borrow-hero-card-onboarding {
  border-color: rgba(96,165,250,.34);
  background:
    radial-gradient(circle at 16% 18%, rgba(96,165,250,.2), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(126,231,135,.1), transparent 28%),
    linear-gradient(135deg, rgba(15,23,42,.74), rgba(22,27,34,.95) 48%, rgba(9,14,24,.94));
}

.borrow-hero-card-onboarding .borrow-hero-chart-panel {
  align-items: center;
}

#jnft-grid-dashboard .dashboard-pool-row.dashboard-pool-row-empty {
  border-color: rgba(96,165,250,.22);
  background:
    radial-gradient(circle at 18% 12%, rgba(96,165,250,.1), transparent 32%),
    radial-gradient(circle at 74% 78%, rgba(126,231,135,.06), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(15,23,42,.52)),
    rgba(22,27,34,.86);
}

#jnft-grid-dashboard .dashboard-pool-row.dashboard-pool-row-empty::before {
  background: linear-gradient(180deg, #60a5fa, #7ee787);
  opacity: .58;
}

@media (max-width: 1100px) {
  .borrow-hero-card {
    grid-template-columns: 1fr;
  }

  .borrow-hero-chart-panel {
    align-items: flex-start;
  }
}

@media (max-width: 1200px) {
  #jnft-grid-dashboard .dashboard-pool-row {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .95fr);
    align-items: stretch;
    gap: 16px 20px;
  }

  #jnft-grid-dashboard .dashboard-pool-side {
    grid-column: 1 / -1;
  }

  #jnft-grid-dashboard .dashboard-pool-credit-entry {
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  #jnft-grid-dashboard .dashboard-pool-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
  }

  #jnft-grid-dashboard .dashboard-pool-quota {
    justify-self: stretch;
    max-width: none;
  }

  #jnft-grid-dashboard .dashboard-pool-credit-entry {
    flex-direction: column;
  }

  #jnft-grid-dashboard .dashboard-pool-credit-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .loan-inline-repay-input-row {
    grid-template-columns: 1fr;
  }

  .pool-detail-section,
  .pool-nft-section {
    padding: 12px;
  }
}

@media (max-width: 720px) {
  .dashboard-page::before,
  .dashboard-page::after {
    top: 52px;
  }

  .borrow-hero-card {
    min-height: 0;
    padding: 20px;
  }

  .borrow-hero-amount {
    font-size: clamp(30px, 10vw, 40px);
  }

  .borrow-hero-chart {
    width: min(190px, 70vw);
  }

  .borrow-hero-chart .borrow-quota-chart-center strong {
    font-size: clamp(16px, 5vw, 20px);
  }

  #jnft-grid-dashboard .dashboard-pool-row {
    padding: 18px;
  }

  #jnft-grid-dashboard .dashboard-pool-available strong {
    font-size: clamp(23px, 7vw, 29px);
  }
  :root {
    --amount-hero: clamp(30px, 10vw, 40px);
    --amount-card: clamp(23px, 7vw, 29px);
    --amount-ring: clamp(16px, 5vw, 20px);
    --amount-inline: clamp(24px, 8vw, 29px);
  }

  .dashboard-page::before,
  .dashboard-page::after {
    top: 52px;
  }

  .borrow-hero-card {
    min-height: 0;
    padding: 20px;
  }

  .borrow-hero-amount {
    font-size: var(--amount-hero);
  }

  .borrow-hero-chart {
    width: min(190px, 70vw);
  }

  .borrow-hero-chart .borrow-quota-chart-center strong {
    font-size: var(--amount-ring);
  }

  #jnft-grid-dashboard .dashboard-pool-row {
    padding: 18px;
  }

  #jnft-grid-dashboard .dashboard-pool-available strong {
    font-size: var(--amount-card);
    justify-content: flex-end;
  }
}

.drawer-body,
.modal-body,
.loan-record-card,
.my-bill-record-card,
.admin-redeem-panel {
  overflow-x: hidden;
}

.empty-state {
  align-items: center;
  gap: 12px;
}

.empty-state-copy {
  min-width: 0;
}

.empty-state-title,
.empty-state-subtitle {
  overflow-wrap: anywhere;
}

.admin-filter-tabs,
.account-mgr-tabs,
.logs-chip-group {
  scrollbar-gutter: stable;
}

.dashboard-guide-actions,
.dashboard-section-head > .flex,
.page-toolbar,
.lender-records-head {
  min-width: 0;
}

.dashboard-guide-actions .btn,
.dashboard-section-head .btn,
.page-toolbar .btn {
  max-width: 100%;
}

.metric-text,
.stat-value,
.dashboard-pool-available strong,
.loan-inline-repay-hero-amount {
  min-width: 0;
}

@media (max-width: 1100px) {
  .admin-list-row .bill-row-actions,
  .lender-list-row .bill-row-actions,
  .borrower-loan-row .bill-row-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .admin-list-row .list-row-fields,
  .lender-list-row .list-row-fields,
  .borrower-loan-fields {
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  }
}

@media (max-width: 720px) {
  .page-toolbar,
  .dashboard-section-head,
  .dashboard-guide,
  .lender-records-head {
    align-items: stretch;
  }

  .dashboard-guide-actions,
  .dashboard-section-head > .flex,
  .page-toolbar > .flex,
  .admin-list-row .bill-row-actions,
  .lender-list-row .bill-row-actions,
  .borrower-loan-row .bill-row-actions,
  .loan-record-actions {
    width: 100%;
    justify-content: stretch;
  }

  .dashboard-guide-actions .btn,
  .dashboard-section-head .btn,
  .admin-list-row .bill-row-actions .btn,
  .lender-list-row .bill-row-actions .btn,
  .borrower-loan-row .bill-row-actions .btn,
  .loan-record-actions .btn {
    flex: 1 1 128px;
    min-width: 0;
  }

  .list-row-status,
  .borrower-loan-status {
    max-width: none;
  }
}

/* 出借概览 · fixed-width table-like grid alignment */
#page-admin-pool .container > .flex:first-child,
.lender-overview-frame {
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.lender-overview-frame .content-align-frame,
.lender-overview-frame .list-pager {
  max-width: none;
}

.admin-pool-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-pool-lead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 107, 214, .12);
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(240, 246, 255, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

.admin-pool-lead-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-pool-lead-kicker,
.admin-pool-section-kicker {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.admin-pool-lead-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-pool-top-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 4px;
  border: 1px solid rgba(0, 107, 214, .12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, .98), rgba(238, 245, 255, .95));
}

.admin-pool-top-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #40546c;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.admin-pool-top-tab:hover {
  border-color: rgba(0, 107, 214, .16);
  background: rgba(255, 255, 255, .72);
  color: #0057b8;
}

.admin-pool-top-tab.active {
  border-color: rgba(0, 107, 214, .22);
  background: #fff;
  color: #0057b8;
  box-shadow: 0 8px 18px rgba(0, 107, 214, .10);
}

.admin-pool-top-tab-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.admin-pool-top-tab-label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 760;
  color: currentColor;
}

.admin-pool-top-tab-subtitle {
  display: none;
}

.admin-pool-top-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(232, 241, 255, .96);
  color: #4c6784;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-pool-top-tab-count .metric-text {
  align-items: center;
  justify-content: center;
  gap: .08em .24em;
}

.admin-pool-top-tab-count .metric-number {
  line-height: 1;
}

.admin-pool-top-tab-count .metric-unit {
  font-size: .88em;
  line-height: 1;
  letter-spacing: .04em;
}

.admin-pool-top-tab.active .admin-pool-top-tab-count {
  background: rgba(0, 107, 214, .10);
  color: #0057b8;
}

.admin-pool-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(136, 160, 187, .22);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .97));
  box-shadow: 0 10px 26px rgba(16, 54, 94, .06);
}

.admin-pool-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.admin-pool-section-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-pool-section-title {
  color: #102033;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: -.02em;
}

.admin-pool-section-subtitle {
  color: #52657d;
  font-size: 13px;
  line-height: 1.55;
}

.admin-pool-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 12px;
  align-items: stretch;
}

.admin-pool-focus-grid > * {
  min-width: 0;
}

.admin-pool-list-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-pool-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

.admin-pool-record-head .logs-chip-group {
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid #dbe8f5;
  border-radius: 999px;
  background: #eef5ff;
  box-shadow: none;
}

.admin-pool-record-head .logs-chip {
  min-height: 30px;
  border: 1px solid transparent;
  background: transparent;
  color: #5c7188;
  font-weight: 680;
}

.admin-pool-record-head .logs-chip:hover {
  background: #fff;
  border-color: rgba(0, 107, 214, .18);
  color: #0057b8;
}

.admin-pool-record-head .logs-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 107, 214, .18);
}

.admin-pool-object-summary,
.admin-pool-section .admin-borrower-nft-metrics-summary {
  height: 100%;
  min-height: 0;
}

.admin-pool-object-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 107, 214, .12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(239, 246, 255, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.admin-pool-object-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-pool-object-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-pool-object-summary-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(0, 107, 214, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
}

.admin-pool-object-summary-stat span {
  display: block;
  color: #52657d;
  font-size: 11px;
  line-height: 1.35;
}

.admin-pool-object-summary-stat strong {
  display: block;
  margin-top: 6px;
  color: #102033;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 780;
}

.admin-pool-object-summary-note {
  color: #52657d;
  font-size: 12px;
  line-height: 1.55;
}

.admin-pool-borrower-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 107, 214, .12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(239, 246, 255, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.admin-pool-borrower-overview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pool-borrower-overview-primary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-pool-borrower-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-pool-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(0, 107, 214, .12);
  border-radius: 16px;
  background: #f8fbff;
}

.admin-pool-quick-actions-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-pool-quick-actions-copy strong {
  color: #102033;
  font-size: 14px;
  line-height: 1.25;
}

.admin-pool-quick-actions-copy span {
  color: #52657d;
  font-size: 12px;
  line-height: 1.55;
}

.admin-pool-quick-actions-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pool-overview-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-pool-overview-nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .16);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, .08), transparent 34%),
    linear-gradient(180deg, rgba(20, 31, 52, .86), rgba(15, 23, 42, .82));
}

.admin-pool-overview-nav-kicker {
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-pool-overview-nav-title {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 760;
}

.admin-pool-overview-nav-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.admin-pool-overview-nav-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-pool-overview-nav-stats span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(148, 163, 184, .14);
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-pool-overview-nav-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.admin-pool-overview-note {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.admin-pool-borrower-summary-wrap {
  display: flex;
  flex-direction: column;
}

.admin-pool-record-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-pool-record-kpis .stat-card {
  min-height: 88px;
  justify-content: center;
}

.lender-overview-kpi-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lender-overview-kpi-grid .stat-card {
  min-height: 92px;
  padding: 18px 20px;
  justify-content: center;
}

.lender-overview-kpi-grid .stat-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-secondary);
}

.lender-overview-kpi-grid .stat-value {
  margin-top: 6px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
}

.lender-overview-filter {
  width: 100%;
  padding: 12px 16px;
  border-color: rgba(148, 163, 184, .16);
  background: rgba(22, 27, 34, .78);
}

.lender-overview-borrower-nft-summary {
  width: 100%;
}

#page-admin-pool .page-title {
  font-size: clamp(23px, 2.15vw, 27px);
}

.lender-overview-section-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: .01em;
  line-height: 1.3;
}

.lender-overview-filter .list-toolbar,
.lender-overview-filter .logs-filter-group {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
}

.lender-overview-table {
  width: 100%;
}

.lender-overview-grid {
  --lender-overview-columns: 176px minmax(156px, 1fr) minmax(162px, .98fr) minmax(132px, .74fr) 116px minmax(172px, 1.08fr);
  display: grid;
  grid-template-columns: var(--lender-overview-columns);
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.lender-overview-grid-head {
  padding: 0 18px 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.lender-overview-grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lender-overview-row {
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(96, 165, 250, .045), rgba(22, 27, 34, .96) 42%),
    var(--bg-card);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, .16), 0 10px 22px rgba(0, 0, 0, .16);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.lender-overview-row:hover {
  border-color: rgba(96, 165, 250, .34);
  background:
    linear-gradient(90deg, rgba(96, 165, 250, .075), rgba(33, 38, 45, .98) 46%),
    var(--bg-hover);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, .38), 0 12px 24px rgba(0, 0, 0, .2);
}

.lender-overview-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}

.lender-overview-cell-id .list-id-field {
  gap: 7px;
}

.lender-overview-cell-id .list-id-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.lender-overview-cell-id .list-id-value {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 760;
}

.lender-overview-label,
.lender-overview-sub-label {
  display: block;
  line-height: 1.2;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.lender-overview-sub-label {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

.lender-overview-value,
.lender-overview-sub-value,
.lender-overview-company strong {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lender-overview-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.lender-overview-amount {
  color: #e5f0ff;
  font-size: 15px;
}

.lender-overview-sub-value {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.lender-overview-status {
  align-items: flex-start;
}

.lender-overview-status .badge {
  min-height: 26px;
  padding: 5px 11px;
  white-space: nowrap;
  text-align: left;
}

.lender-overview-company {
  align-items: flex-start;
}

.lender-overview-company strong {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.admin-borrower-grid {
  --lender-overview-columns: minmax(220px, 1.35fr) minmax(128px, .78fr) minmax(128px, .78fr) minmax(128px, .78fr) minmax(220px, 1.22fr) 132px;
}

.admin-borrower-row .lender-overview-cell:last-child {
  align-items: flex-start;
}

.admin-borrower-action-cell .btn {
  min-width: 88px;
}

.admin-borrower-detail-summary {
  margin-bottom: 16px;
  align-items: center;
}

.admin-borrower-detail-summary .detail-summary-side {
  justify-content: center;
}

.admin-borrower-detail-summary .detail-summary-actions {
  align-items: center;
}

.admin-borrower-detail-summary .detail-summary-actions .btn {
  min-width: 124px;
  white-space: nowrap;
}

.admin-borrower-summary-grid {
  margin-bottom: 16px;
}

.admin-borrower-record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-borrower-record-row .ulist-col-actions .btn {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .admin-pool-top-tabs,
  .admin-pool-overview-nav-grid,
  .admin-pool-record-kpis {
    grid-template-columns: 1fr;
  }

  .admin-pool-focus-grid {
    grid-template-columns: 1fr;
  }

  .admin-pool-borrower-overview-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-pool-object-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lender-overview-grid {
    --lender-overview-columns: 160px minmax(140px, 1fr) minmax(150px, .96fr) minmax(118px, .72fr) 106px minmax(148px, 1fr);
    gap: 14px;
  }

  .admin-borrower-grid {
    --lender-overview-columns: minmax(188px, 1.1fr) minmax(116px, .74fr) minmax(116px, .74fr) minmax(116px, .74fr) minmax(180px, 1fr) 120px;
  }
}

@media (max-width: 980px) {
  .lender-overview-grid-head {
    display: none;
  }

  .lender-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }

  .lender-overview-row {
    align-items: start;
  }

  .lender-overview-cell-id,
  .lender-overview-company {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin-pool-record-kpis {
    grid-template-columns: 1fr;
  }

  .admin-pool-section,
  .admin-pool-list-head,
  .admin-pool-object-summary-head,
  .admin-pool-top-tab,
  .admin-pool-quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-pool-object-summary-grid,
  .admin-pool-borrower-overview-primary,
  .admin-pool-borrower-status-grid,
  .admin-pool-lead-meta {
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .lender-overview-kpi-grid {
    grid-template-columns: 1fr;
  }

  .lender-overview-filter .list-toolbar,
  .lender-overview-filter .logs-filter-group {
    align-items: stretch;
    flex-direction: column;
  }

  .lender-overview-filter .logs-chip-group {
    width: 100%;
  }

  .admin-pool-top-tab {
    min-height: 40px;
  }

  .lender-overview-grid {
    grid-template-columns: 1fr;
  }

  .lender-overview-row {
    min-height: 0;
    padding: 14px;
  }
}

/* ============================================================
   Investor demo visual upgrade: fintech visual
============================================================ */
:root {
  --bg: #07101f;
  --bg-base: #07101f;
  --bg-card: rgba(13, 21, 36, .86);
  --bg-card2: rgba(20, 31, 52, .82);
  --bg-hover: rgba(38, 57, 92, .62);
  --border: rgba(125, 211, 252, .16);
  --border-light: rgba(148, 163, 184, .12);
  --text-primary: #eef6ff;
  --text-secondary: #a8b8d5;
  --text-muted: #71809d;
  --accent: #38bdf8;
  --accent-hover: #60a5fa;
  --accent-light: rgba(56, 189, 248, .13);
  --green: #34d399;
  --green-bg: rgba(16, 185, 129, .12);
  --yellow: #facc15;
  --yellow-bg: rgba(250, 204, 21, .12);
  --red: #fb7185;
  --red-bg: rgba(251, 113, 133, .12);
  --orange: #fb923c;
  --orange-bg: rgba(251, 146, 60, .12);
  --purple: #a78bfa;
  --purple-bg: rgba(167, 139, 250, .13);
  --blue: #38bdf8;
  --text: var(--text-primary);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 24px 70px rgba(2, 6, 23, .42);
  --shadow-glow: 0 0 0 1px rgba(125, 211, 252, .10), 0 18px 44px rgba(8, 145, 178, .12), 0 24px 70px rgba(2, 6, 23, .44);
  --glass-bg: linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .58));
  --glass-border: rgba(148, 163, 184, .18);
  --gradient-fintech: linear-gradient(135deg, #38bdf8 0%, #6366f1 48%, #a855f7 100%);
  --gradient-digital: linear-gradient(135deg, rgba(45, 212, 191, .20), rgba(56, 189, 248, .14) 44%, rgba(168, 85, 247, .16));
  --grid-line: rgba(125, 211, 252, .055);
}

html {
  background: #07101f;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% -8%, rgba(56, 189, 248, .20), transparent 34vw),
    radial-gradient(circle at 94% 10%, rgba(168, 85, 247, .16), transparent 32vw),
    radial-gradient(circle at 52% 118%, rgba(20, 184, 166, .12), transparent 34vw),
    linear-gradient(180deg, #07101f 0%, #08111f 44%, #050a14 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  opacity: .72;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 8%, rgba(0, 0, 0, .85), transparent 70%);
}

body::after {
  opacity: .42;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(56, 189, 248, .12) 46%, transparent 54% 100%),
    linear-gradient(245deg, transparent 0 42%, rgba(168, 85, 247, .10) 48%, transparent 56% 100%);
  filter: blur(.2px);
}

.page:not(#page-login) {
  background:
    radial-gradient(circle at 14% 2%, rgba(56, 189, 248, .075), transparent 30vw),
    radial-gradient(circle at 90% 8%, rgba(168, 85, 247, .07), transparent 28vw);
}

.navbar {
  background: rgba(5, 10, 20, .72);
  border-bottom-color: rgba(125, 211, 252, .16);
  box-shadow: 0 12px 36px rgba(2, 6, 23, .34);
  backdrop-filter: blur(20px) saturate(132%);
}

.nav-logo .logo-icon,
.login-logo-icon {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .42), transparent 28%),
    var(--gradient-fintech);
  box-shadow: 0 0 26px rgba(56, 189, 248, .34), inset 0 1px 0 rgba(255, 255, 255, .30);
}

.nav-chain,
.wallet-btn,
.nav-badge {
  background: rgba(15, 23, 42, .70);
  border-color: rgba(125, 211, 252, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.nav-chain .dot,
.wallet-dot,
.footer-chain .dot {
  box-shadow: 0 0 14px rgba(52, 211, 153, .85);
}

.nav-link {
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, .14), rgba(99, 102, 241, .11));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .13);
}

.page-title {
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #f8fbff, #bfdbfe 54%, #99f6e4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-subtitle,
.text-muted {
  color: var(--text-secondary);
}

.card,
.stat-card,
.admin-dash-panel,
.jnft-unit-card,
.policy-card,
.platform-row,
.pool-nft-section,
.lending-provider-card,
.fund-pool-overview,
.login-card-clean,
.drawer,
.modal,
.app-toast {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(18px) saturate(125%);
}

.card,
.stat-card,
.nft-card,
.platform-row,
.admin-dash-panel,
.lender-overview-row,
.login-feature,
.pool-nft-section,
.credit-nft-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.card:hover,
.stat-card:hover,
.admin-dash-panel:hover,
.pool-nft-section:hover,
.platform-row:hover,
.lender-overview-row:hover {
  border-color: rgba(125, 211, 252, .30);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .10), 0 20px 54px rgba(8, 145, 178, .15), 0 28px 78px rgba(2, 6, 23, .42);
}

.stat-card,
.risk-metric,
.admin-metric-tile,
.fund-pool-metric,
.pledge-borrow-stat {
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.risk-metric::before,
.admin-metric-tile::before,
.fund-pool-metric::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .075), transparent 38%);
  opacity: .75;
}

.stat-label,
.risk-metric-label,
.platform-row-fields span,
.lender-row-field > span,
.list-id-label,
thead th,
.logs-table th {
  color: #8ea5c8;
  font-weight: 700;
  letter-spacing: .05em;
}

.stat-value,
.risk-metric-value,
.fund-pool-total-num,
.fund-pool-metric .val,
.lender-row-field > strong,
.platform-row-fields strong,
.metric-number,
.nft-token-id,
.lender-overview-value,
.lender-overview-sub-value {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(56, 189, 248, .10);
}

.stat-value,
.fund-pool-total-num,
.borrow-hero-amount,
.pool-credit-focus-amount,
.borrow-limit-focus-amount,
.dashboard-pool-available strong {
  color: #eaf6ff;
}

.btn {
  border: 1px solid rgba(148, 163, 184, .16);
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: rgba(125, 211, 252, .38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 34%),
    var(--gradient-fintech);
  color: #f8fbff;
  box-shadow: 0 10px 26px rgba(56, 189, 248, .24), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.btn-primary:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 32%),
    linear-gradient(135deg, #67e8f9 0%, #60a5fa 46%, #c084fc 100%);
  box-shadow: 0 14px 34px rgba(56, 189, 248, .30), 0 0 22px rgba(168, 85, 247, .18);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(30, 41, 59, .86), rgba(15, 23, 42, .74));
  border-color: rgba(125, 211, 252, .22);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: rgba(125, 211, 252, .34);
  background: linear-gradient(135deg, rgba(56, 189, 248, .12), rgba(168, 85, 247, .09));
}

.badge {
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.badge-blue,
.badge-purple {
  background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(168, 85, 247, .14));
}

.badge-green {
  background: rgba(16, 185, 129, .16);
}

.form-input,
.form-select,
.form-textarea,
.input-unit,
.tabs,
.jnft-action-tabs-row,
.logs-chip,
.radio-btn {
  background: rgba(5, 12, 24, .72);
  border-color: rgba(148, 163, 184, .16);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(56, 189, 248, .68);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .14), 0 0 22px rgba(56, 189, 248, .10);
}

.tabs,
.login-topbar-tabs,
.login-role-tabs {
  border: 1px solid rgba(125, 211, 252, .16);
  background: rgba(5, 12, 24, .64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.tab.active,
.login-topbar-tab.active,
.login-role-tab.active,
.jnft-action-tab.active,
.logs-chip.active,
.radio-btn.selected {
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(99, 102, 241, .17));
  color: #f8fbff;
  border-color: rgba(125, 211, 252, .28);
  box-shadow: 0 10px 24px rgba(8, 145, 178, .14), inset 0 1px 0 rgba(255, 255, 255, .08);
}

thead th,
.logs-table th {
  background: rgba(7, 16, 31, .84);
  border-bottom-color: rgba(125, 211, 252, .16);
}

tbody td,
.logs-table td {
  border-bottom-color: rgba(148, 163, 184, .10);
}

tbody tr:hover,
.logs-table tbody tr:hover {
  background: rgba(56, 189, 248, .055);
}

.progress-bar,
.fund-util-bar,
.ltv-track,
.admin-risk-bar-track {
  background: rgba(5, 12, 24, .76);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .08);
}

.progress-blue,
.fund-util-fill,
.fund-pool-seg-deployed {
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a78bfa);
  box-shadow: 0 0 18px rgba(56, 189, 248, .26);
}

.alert {
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}

.alert-info {
  background: linear-gradient(135deg, rgba(56, 189, 248, .13), rgba(99, 102, 241, .08));
  border-color: rgba(56, 189, 248, .26);
  color: #93c5fd;
}

.alert-success {
  background: linear-gradient(135deg, rgba(52, 211, 153, .13), rgba(20, 184, 166, .07));
}

.alert-warning {
  background: linear-gradient(135deg, rgba(250, 204, 21, .13), rgba(251, 146, 60, .07));
}

.modal-overlay,
.drawer-overlay {
  background: rgba(1, 6, 15, .72);
  backdrop-filter: blur(10px);
}

.modal-header,
.modal-footer,
.drawer-header {
  border-color: rgba(125, 211, 252, .14);
  background: rgba(5, 12, 24, .36);
}

/* Login landing */
#page-login .login-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, .24), transparent 30vw),
    radial-gradient(circle at 78% 18%, rgba(168, 85, 247, .20), transparent 30vw),
    radial-gradient(circle at 46% 94%, rgba(20, 184, 166, .14), transparent 26vw),
    linear-gradient(135deg, #07101f 0%, #0b1020 46%, #050814 100%);
}

#page-login .login-page::before,
#page-login .login-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

#page-login .login-page::before {
  inset: 0;
  opacity: .72;
  background-image:
    linear-gradient(rgba(125, 211, 252, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .18));
}

#page-login .login-page::after {
  width: 72vw;
  height: 72vw;
  right: -34vw;
  top: -30vw;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .12);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(56, 189, 248, .08) 43% 44%, transparent 45%),
    conic-gradient(from 120deg, transparent, rgba(56, 189, 248, .18), transparent, rgba(168, 85, 247, .16), transparent);
  filter: blur(.15px);
}

.login-topbar {
  background: rgba(5, 12, 24, .64);
  border-bottom-color: rgba(125, 211, 252, .14);
  backdrop-filter: blur(22px) saturate(128%);
}

.login-borrower-landing {
  isolation: isolate;
}

.login-borrower-landing::before {
  width: 320px;
  height: 320px;
  inset: -80px -48px auto auto;
  background:
    radial-gradient(circle, rgba(56, 189, 248, .28), transparent 62%),
    radial-gradient(circle at 65% 65%, rgba(168, 85, 247, .18), transparent 58%);
  filter: blur(2px);
  z-index: -1;
}

.login-hero-kicker {
  border-color: rgba(125, 211, 252, .28);
  background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(168, 85, 247, .10));
  box-shadow: 0 0 24px rgba(56, 189, 248, .12);
}

.login-hero-tagline {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.055em;
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 36%, #c4b5fd 68%, #99f6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 24px 70px rgba(56, 189, 248, .12);
}

.login-hero-sub {
  max-width: 560px;
  color: #b9c7dd;
  font-size: 15px;
}

.login-pool-visual {
  position: relative;
  max-width: 520px;
  height: 192px;
  margin: 6px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 22%, rgba(45, 212, 191, .22), transparent 26%),
    radial-gradient(circle at 78% 28%, rgba(168, 85, 247, .20), transparent 30%),
    linear-gradient(rgba(125, 211, 252, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .045) 1px, transparent 1px),
    linear-gradient(145deg, rgba(5, 12, 24, .76), rgba(15, 23, 42, .44));
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 22px 60px rgba(8, 145, 178, .12);
}

.login-pool-visual::before,
.login-pool-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-pool-visual::before {
  inset: 18px 28px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .14);
  transform: rotate(-7deg);
}

.login-pool-visual::after {
  width: 180px;
  height: 180px;
  right: -72px;
  bottom: -92px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(56, 189, 248, .22), transparent, rgba(168, 85, 247, .20), transparent);
  opacity: .72;
}

.login-orbit-ring {
  position: absolute;
  left: 38%;
  top: 50%;
  width: 132px;
  height: 132px;
  border: 1px dashed rgba(125, 211, 252, .24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.login-chain-node {
  position: absolute;
  z-index: 2;
  min-width: 94px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 211, 252, .25);
  border-radius: 16px;
  background: rgba(5, 12, 24, .76);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .035) inset, 0 16px 34px rgba(2, 6, 23, .34);
  backdrop-filter: blur(14px) saturate(130%);
}

.login-chain-node strong,
.login-chain-node span {
  display: block;
  line-height: 1.15;
}

.login-chain-node strong {
  color: #ecfeff;
  font-size: 12px;
  letter-spacing: .04em;
}

.login-chain-node span {
  margin-top: 4px;
  color: #8fe7ff;
  font-size: 11px;
}

.node-credit { left: 22px; top: 34px; }
.node-nft { left: 168px; top: 66px; }
.node-borrow { left: 302px; top: 38px; }
.node-release { right: 18px; top: 112px; min-width: 122px; }

.login-flow-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .72), rgba(56, 189, 248, .60), transparent);
  transform-origin: left center;
  box-shadow: 0 0 14px rgba(56, 189, 248, .45);
}

.line-a { left: 112px; top: 76px; width: 94px; transform: rotate(12deg); }
.line-b { left: 258px; top: 88px; width: 86px; transform: rotate(-17deg); }
.line-c { left: 390px; top: 84px; width: 78px; transform: rotate(38deg); }

.login-feature {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .76), rgba(15, 23, 42, .48)),
    var(--gradient-digital);
  border-color: rgba(125, 211, 252, .18);
  min-height: 74px;
}

.login-feature:hover {
  border-color: rgba(125, 211, 252, .42);
  box-shadow: 0 18px 42px rgba(8, 145, 178, .16);
}

.login-feature-icon {
  color: #dff8ff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(135deg, rgba(56, 189, 248, .26), rgba(168, 85, 247, .22));
  box-shadow: 0 0 24px rgba(56, 189, 248, .18);
}

.login-card-clean {
  position: relative;
  overflow: hidden;
  padding: 32px 30px 26px;
  border-color: rgba(125, 211, 252, .24);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(7, 16, 31, .76)),
    var(--gradient-digital);
}

.login-card-clean::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient-fintech);
  box-shadow: 0 0 18px rgba(56, 189, 248, .5);
}

.login-card-clean h3 {
  font-size: 18px;
}

.login-card-clean .btn-ghost {
  background: rgba(15, 23, 42, .56);
}

.login-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.login-card-head h3 {
  margin: 2px 0 0;
}

.login-card-eyebrow {
  color: #67e8f9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-card-badge {
  flex-shrink: 0;
  padding: 5px 9px;
  border: 1px solid rgba(52, 211, 153, .28);
  border-radius: 999px;
  background: rgba(6, 78, 59, .22);
  color: #a7f3d0;
  font-size: 11px;
  box-shadow: 0 0 18px rgba(52, 211, 153, .10);
}

/* Borrower overview and pool detail */
.borrower-dashboard-shell,
#page-pool .container,
#page-borrow .container-md,
#page-repay .container-md {
  position: relative;
}

.borrow-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .22);
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 189, 248, .20), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(168, 85, 247, .16), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(8, 16, 31, .72));
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .08), 0 30px 90px rgba(2, 6, 23, .50), 0 0 56px rgba(56, 189, 248, .10);
}

.borrow-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 211, 252, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .56), transparent 78%);
}

.borrow-hero-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .16);
  background: conic-gradient(from 120deg, rgba(56, 189, 248, .22), transparent, rgba(168, 85, 247, .18), transparent);
  opacity: .85;
  pointer-events: none;
}

.borrow-hero-main,
.borrow-hero-chart-panel,
.borrow-hero-side {
  position: relative;
  z-index: 1;
}

.borrow-hero-title,
.borrow-lender-head .borrow-hero-title {
  color: #f8fbff;
  letter-spacing: -.03em;
}

.borrow-hero-amount {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -.045em;
}

.borrow-hero-chart-panel,
.borrow-quota-chart-wrap,
.borrow-quota-metric,
.pool-action-panel,
.pool-credit-focus,
.borrow-limit-focus,
.loan-summary-card,
.pool-batch-redeem-summary {
  border: 1px solid rgba(125, 211, 252, .16);
  background: linear-gradient(145deg, rgba(15, 23, 42, .74), rgba(15, 23, 42, .46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.borrow-quota-chart,
.borrow-quota-chart-center,
.borrow-hero-chart {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, .14));
}

#jnft-grid-dashboard .nft-card,
#borrower-bills-grid .nft-card,
.nft-asset-grid .nft-card,
.nft-collateral-grid .nft-card,
.batch-redeem-card {
  font-size: var(--amount-hero);
  font-weight: 850;
  letter-spacing: -.045em;
}

.borrow-hero-chart-panel,
.borrow-quota-chart-wrap,
.borrow-quota-metric,
.pool-action-panel,
.pool-credit-focus,
.borrow-limit-focus,
.loan-summary-card,
.pool-batch-redeem-summary {
  border: 1px solid rgba(125, 211, 252, .16);
  background: linear-gradient(145deg, rgba(15, 23, 42, .74), rgba(15, 23, 42, .46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.borrow-quota-chart,
.borrow-quota-chart-center,
.borrow-hero-chart {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, .14));
}

#jnft-grid-dashboard .nft-card,
#borrower-bills-grid .nft-card,
.nft-asset-grid .nft-card,
.nft-collateral-grid .nft-card,
.batch-redeem-card {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .86), rgba(15, 23, 42, .58)),
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, .12), transparent 36%);
  border-color: rgba(125, 211, 252, .16);
  box-shadow: 0 16px 44px rgba(2, 6, 23, .32);
}

.nft-card:hover,
#jnft-grid-dashboard .nft-card:hover {
  border-color: rgba(125, 211, 252, .40);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .12), 0 22px 58px rgba(8, 145, 178, .17);
}

.nft-cover,
.stake-bl-cover,
.credit-nft-cover {
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, .24), transparent 32%),
    radial-gradient(circle at 80% 72%, rgba(168, 85, 247, .20), transparent 34%),
    linear-gradient(145deg, #061827 0%, #0a1a34 50%, #080d1a 100%);
}

.nft-cover-token,
.nft-cover-bundle-tag,
.pool-borrow-selected-badge,
.chain-badge,
.tx-hash {
  border: 1px solid rgba(125, 211, 252, .22);
  background: rgba(5, 12, 24, .68);
  box-shadow: 0 0 18px rgba(56, 189, 248, .10);
}

.pool-detail-body .stat-grid-5 .stat-card,
.pool-detail-section,
.pool-detail-credit-section,
.pool-detail-loan-ledger,
.pool-nft-section {
  border-color: rgba(125, 211, 252, .16);
}

.credit-nft-card {
  border-color: rgba(45, 212, 191, .22);
  background:
    radial-gradient(circle at 22% 10%, rgba(45, 212, 191, .14), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, .84), rgba(6, 24, 42, .70));
}

.credit-nft-card:hover {
  border-color: rgba(45, 212, 191, .38);
  box-shadow: 0 22px 58px rgba(13, 148, 136, .14);
}

.bill-row,
.borrower-loan-row,
.borrower-unminted-row,
.group-loan-row,
.admin-list-row,
.lender-list-row,
.platform-row,
.lender-overview-row {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, .052), rgba(15, 23, 42, .78) 38%),
    rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .15);
  box-shadow: inset 3px 0 0 rgba(56, 189, 248, .15), 0 12px 30px rgba(2, 6, 23, .22);
}

.bill-row:hover,
.borrower-loan-row:hover,
.borrower-unminted-row:hover,
.group-loan-row:hover,
.admin-list-row:hover,
.lender-list-row:hover,
.platform-row:hover,
.lender-overview-row:hover {
  border-color: rgba(125, 211, 252, .32);
  box-shadow: inset 3px 0 0 rgba(56, 189, 248, .34), 0 16px 40px rgba(8, 145, 178, .13);
}

/* Lender and operations polish without changing list geometry */
.lender-overview-kpi-grid .stat-card,
.platform-kpi-row .stat-card,
.admin-dash-kpi,
.admin-dash-hero,
.lender-overview-filter {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .54)),
    var(--gradient-digital);
  border-color: rgba(125, 211, 252, .17);
  box-shadow: var(--shadow-glow);
}

.admin-dash-hero,
.fund-pool-overview {
  position: relative;
  overflow: hidden;
}

.admin-dash-hero::after,
.fund-pool-overview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, .07) 49%, transparent 55%),
    radial-gradient(circle at 88% 0%, rgba(168, 85, 247, .14), transparent 34%);
}

.admin-dash-hero > *,
.fund-pool-overview > * {
  position: relative;
  z-index: 1;
}

.lender-overview-row {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, .07), rgba(15, 23, 42, .88) 42%),
    var(--bg-card);
}

@media (prefers-reduced-motion: no-preference) {
  .borrow-hero-card,
  .login-card-clean {
    animation: tg-soft-glow 7s ease-in-out infinite;
  }

  .login-feature {
    animation: tg-enter-soft .34s ease both;
  }
}

@keyframes tg-soft-glow {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(56, 189, 248, .18), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  }
  50% {
    box-shadow: 0 14px 34px rgba(56, 189, 248, .27), 0 0 30px rgba(168, 85, 247, .16);
  }
}

@keyframes tg-enter-soft {
  from {
    opacity: .92;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .login-hero-tagline {
    font-size: clamp(28px, 8vw, 42px);
  }
}

@media (max-width: 720px) {
  body::before {
    background-size: 34px 34px;
  }

  .borrow-hero-amount {
    font-size: var(--amount-hero);
  }
}

/* Final smoke visual hardening: narrow screens, long amounts, and empty states */
.metric-text,
.metric-number,
.stat-value,
.detail-val,
.list-id-field,
.bill-row-title,
.list-row-field,
.list-row-field strong,
.borrower-loan-fields strong,
.platform-row-fields strong,
.lender-overview-row strong,
.dashboard-pool-fields .list-row-field > strong {
  min-width: 0;
  max-width: 100%;
}

.metric-number,
.detail-val,
.bill-row-title,
.list-row-field strong,
.borrower-loan-fields strong,
.platform-row-fields strong,
.lender-overview-row strong,
.dashboard-pool-fields .list-row-field > strong {
  overflow-wrap: anywhere;
}

.admin-list-row .list-row-fields,
.lender-list-row .list-row-fields {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.list-row-field-amount > strong,
.list-row-field-date > strong,
.list-row-field-party > strong,
.list-row-field-id > strong {
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.list-row-field-amount > strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.list-row-field-date > strong {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.list-row-field-party > strong,
.list-row-field-id > strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.empty-state,
.pool-nft-empty,
.dashboard-empty-card,
.my-txs-empty {
  width: 100%;
  justify-items: center;
  text-align: center;
}

.empty-state-mark {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    gap: 8px;
    height: auto;
    min-height: 56px;
    padding: 8px 12px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-chain,
  .wallet-btn .font-mono {
    display: none;
  }

  .nav-user-email {
    max-width: 120px;
    flex-basis: 120px;
  }

  .container,
  .container-md,
  .container-sm {
    padding-left: 12px;
    padding-right: 12px;
  }

  .login-shell,
  #page-login .login-shell[data-role="borrower"] {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }

  .login-card-clean,
  .login-borrower-landing,
  .borrow-hero-card,
  .card,
  .stat-card,
  .nft-card {
    min-width: 0;
  }

  .stat-grid,
  .stat-grid-4,
  .stat-grid-5,
  .stat-grid-2x2,
  .jnft-card-summary,
  .lender-overview-kpi-grid,
  .platform-kpi-row,
  .pool-detail-body .stat-grid-5 {
    grid-template-columns: 1fr;
  }

  .bill-row,
  .borrower-loan-row,
  .borrower-unminted-row,
  .admin-list-row,
  .lender-list-row,
  .platform-row,
  .lender-overview-row {
    grid-template-columns: 1fr !important;
    min-width: 0;
    width: 100%;
  }

  .admin-workbench-summary,
  .admin-bills-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-workbench-metrics,
  .admin-bills-toolbar-actions,
  .admin-list-row .list-row-status {
    justify-content: flex-start;
  }

  .admin-filter-tabs {
    width: 100%;
  }

  .bill-row-actions,
  .platform-row-actions,
  .group-loan-actions,
  .empty-state-actions {
    width: 100%;
  }

  .bill-row-actions .btn,
  .platform-row-actions .btn,
  .group-loan-actions .btn,
  .empty-state-actions .btn {
    flex: 1 1 120px;
  }

  .modal {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .modal-body {
    padding: 14px;
  }

  .drawer,
  .drawer-wide,
  .loan-nft-detail-list-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }
}

/* Borrower loan list: compact record rows for scan-heavy pages */
.pool-loan-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.borrower-loan-row.bill-row-compact {
  grid-template-columns: minmax(164px, 200px) minmax(0, 1fr) minmax(172px, max-content);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.borrower-loan-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.borrower-loan-row .loan-row-id .list-id-value {
  display: inline-flex;
  width: max-content;
  max-width: none;
  min-width: max-content;
  flex-shrink: 0;
  word-break: normal;
  white-space: nowrap;
  overflow-wrap: normal;
}

.borrower-loan-party {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.borrower-loan-party span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 620;
}

.borrower-loan-party strong {
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.3;
}

.borrower-loan-party small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.borrower-loan-row .borrower-loan-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  overflow: visible;
}

.borrower-loan-detail-fields {
  grid-template-columns: minmax(132px, .9fr) minmax(156px, .9fr) minmax(128px, .8fr);
  gap: 6px 14px;
  align-items: center;
  overflow: visible;
}

.borrower-loan-detail-fields .list-row-field {
  min-width: 0;
}

.borrower-loan-detail-fields .list-row-field > strong {
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
}

.borrower-loan-detail-fields .list-row-field-date > strong,
.borrower-loan-detail-fields .list-row-field-amount > strong,
.borrower-loan-detail-fields .borrower-loan-apy-field > strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.loan-time-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.loan-time-pair > span,
.loan-date-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.loan-time-pair em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 10px;
  font-family: var(--font-sans);
}

.loan-date-stack span {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.borrower-loan-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  justify-self: end;
  gap: 8px;
  min-width: 172px;
  width: min(100%, 172px);
}

.borrower-loan-side .borrower-loan-status {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  max-width: 172px;
  width: 100%;
  gap: 4px;
}

.borrower-loan-side .loan-stage-hint {
  text-align: right;
  overflow: visible;
  text-overflow: clip;
}

.borrower-loan-actions {
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

.borrower-loan-actions .btn {
  flex: 0 0 86px;
  min-width: 86px;
  min-height: 32px;
  padding: 5px 10px;
  white-space: nowrap;
}

.borrower-loan-compact-fields .list-row-field > span,
.borrower-bill-record-fields .list-row-field > span {
  font-size: 10px;
}

.borrower-loan-compact-fields .list-row-field > strong,
.borrower-bill-record-fields .list-row-field > strong {
  font-size: 12px;
  line-height: 1.25;
}

.borrower-loan-compact-fields .list-row-field-amount > strong,
.borrower-bill-record-fields .list-row-field-amount > strong {
  font-size: 13px;
}

.borrower-loan-list-pool-field > strong,
.my-bill-record-content .list-row-field-party > strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.my-bill-record-card.bill-row-compact {
  grid-template-columns: minmax(164px, 210px) minmax(0, 1fr) minmax(126px, max-content);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.my-bill-record-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.my-bill-record-main .badge {
  width: max-content;
  max-width: 100%;
}

.my-bill-record-content {
  min-width: 0;
}

.my-bill-record-card .borrower-bill-record-fields {
  grid-template-columns: minmax(132px, .85fr) minmax(156px, .9fr) minmax(150px, 1fr);
  gap: 6px 14px;
  width: 100%;
}

.my-bill-record-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.my-bill-record-actions .btn {
  min-width: 64px;
  min-height: 30px;
  padding: 5px 10px;
}

@media (max-width: 760px) {
  .borrower-loan-row.bill-row-compact {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  .borrower-loan-side {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }

  .borrower-loan-side .borrower-loan-status {
    align-items: flex-start;
    max-width: none;
  }

  .borrower-loan-side .loan-stage-hint {
    text-align: left;
  }

  .borrower-loan-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .my-bill-record-card.bill-row-compact {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  .my-bill-record-card .borrower-bill-record-fields {
    grid-template-columns: 1fr;
  }

  .my-bill-record-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .borrower-loan-row.bill-row-compact {
    padding: 14px;
    gap: 14px;
  }

  .borrower-loan-row .borrower-loan-content,
  .borrower-loan-detail-fields,
  .loan-time-pair {
    grid-template-columns: 1fr;
  }

  .borrower-loan-actions .btn {
    flex: 1 1 128px;
  }
}

.credit-nft-field-value,
.credit-nft-id-link {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}


.credit-nft-cover-main em,
.credit-nft-cover-main strong {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}


.credit-nft-cover-foot span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

/* ============================================================
   TRADEGO OFFICIAL STYLE REFRESH
   Conservative first pass based on TradeGo's blue-white corporate
   finance visual direction: clean surfaces, restrained shadows,
   clear actions, and reduced neon/glass effects.
============================================================ */
body {
  background:
    linear-gradient(180deg, #f7fbff 0%, #f3f7fc 46%, #eef4fb 100%);
  color: var(--text-primary);
}

.container,
.container-md,
.container-sm {
  padding-top: 36px;
  padding-bottom: 44px;
}

.page-title {
  color: var(--text-primary);
  font-size: 24px;
  letter-spacing: 0;
}

.page-subtitle,
.text-muted {
  color: var(--text-secondary);
}

.navbar {
  height: 64px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 6px 20px rgba(30, 72, 120, .08);
  backdrop-filter: saturate(140%) blur(10px);
}

.nav-logo,
.login-topbar-brand .login-topbar-name {
  color: #0d2c52;
  font-weight: 700;
}

.nav-logo .logo-icon,
.login-logo-icon {
  background: linear-gradient(135deg, #0074d9 0%, #004c9a 100%);
  box-shadow: none;
}

.nav-link {
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-link.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 107, 214, .18);
}

.nav-chain,
.wallet-btn,
.nav-badge {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(15, 50, 90, .05);
}

.nav-chain:hover,
.wallet-btn:hover,
.nav-badge:hover {
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .35);
  color: var(--accent);
}

.card,
.policy-card,
.guide-index-card,
.jnft-unit-card,
.profile-section,
.notif-panel {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.card:hover,
.guide-index-card:hover,
.nft-card:hover,
.bundle-select-card:hover {
  border-color: rgba(0, 107, 214, .32);
  box-shadow: 0 14px 34px rgba(15, 50, 90, .12);
}

.stat-card,
.policy-rule,
.isolation-node,
.cargo-value-compare-inline,
.jnft-card-summary,
.md-hint,
.form-collapsible,
.balance-card,
.onchain-card {
  background: var(--bg-card2);
  border-color: var(--border-light);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 107, 214, .22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 10px 22px rgba(0, 87, 184, .24);
}

.btn-secondary,
.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .35);
  color: var(--accent);
}

.btn-success {
  background: var(--green-bg);
  border-color: rgba(18, 147, 95, .28);
  color: var(--green);
}

.btn-danger {
  background: var(--red-bg);
  border-color: rgba(217, 45, 32, .28);
  color: var(--red);
}

.btn-warning {
  background: var(--yellow-bg);
  border-color: rgba(185, 129, 5, .30);
  color: var(--yellow);
}

.form-input,
.form-select,
.form-textarea,
.otp-input {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(20, 32, 51, .02);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #a1afbf;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.otp-input:focus,
*:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 107, 214, .14);
}

.tabs,
.compact-filter-tabs,
.pool-filter-tabs,
.login-topbar-tabs,
.login-role-tabs {
  background: #edf4fc;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.tab,
.login-topbar-tab,
.login-role-tab {
  color: var(--text-secondary);
}

.tab:hover,
.login-topbar-tab:not(.active):hover,
.login-role-tab:not(.active):hover {
  color: var(--accent);
  background: rgba(255, 255, 255, .72);
}

.tab.active,
.login-topbar-tab.active,
.login-role-tab.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(15, 50, 90, .10);
}

table,
.bill-row,
.bill-row-compact,
.list-row,
.my-bill-record-card,
.borrower-loan-row,
.admin-nft-mint-row-compact {
  color: var(--text-primary);
}

.table-wrap {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

thead th {
  background: #f5f8fc;
  color: var(--text-secondary);
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody tr:hover,
.bill-row:hover,
.bill-row-compact:hover,
.list-row:hover {
  background: var(--bg-hover);
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-blue { background: var(--accent-light); color: var(--accent); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-gray,
.badge-muted { background: #eef2f7; color: var(--text-secondary); }

.modal-overlay {
  background: rgba(12, 28, 48, .42);
  backdrop-filter: blur(3px);
}

.modal {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: 0 24px 70px rgba(15, 50, 90, .22);
}

.modal-header,
.modal-footer {
  background: #f8fbff;
  border-color: var(--border-light);
}

.modal-close:hover {
  background: var(--accent-light);
  color: var(--accent);
}

#page-login .login-page {
  background:
    radial-gradient(700px 340px at 12% 8%, rgba(0, 107, 214, .12), transparent 64%),
    linear-gradient(135deg, #f7fbff 0%, #edf5ff 52%, #f9fbff 100%);
}

.login-topbar {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--border-light);
  box-shadow: 0 6px 20px rgba(30, 72, 120, .07);
  backdrop-filter: saturate(140%) blur(10px);
}

.login-hero-kicker {
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .22);
  color: var(--accent);
}

.login-hero-tagline {
  color: #0d2c52;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.login-hero-sub,
.login-feature-desc {
  color: var(--text-secondary);
}

.login-borrower-landing::before {
  background: radial-gradient(circle, rgba(0, 107, 214, .10), transparent 68%);
}

.login-feature {
  background: rgba(255, 255, 255, .82);
  border-color: var(--border-light);
  box-shadow: 0 8px 24px rgba(15, 50, 90, .08);
  backdrop-filter: none;
}

.login-feature:hover {
  background: #fff;
  border-color: rgba(0, 107, 214, .28);
}

.login-feature-icon {
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .22);
  color: var(--accent);
}

.login-card-clean,
.login-admin-card {
  background: #fff;
  border-color: var(--border-light);
}

.login-admin-card {
  border-style: solid;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.login-pool-visual,
.borrow-hero,
.admin-dash-hero,
.fund-pool-overview-card {
  background:
    linear-gradient(135deg, rgba(0, 107, 214, .08), rgba(255, 255, 255, .86)),
    #fff;
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.nft-card,
.bundle-select-card {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: 0 8px 22px rgba(15, 50, 90, .08);
}

.nft-card.selected,
.bundle-select-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 107, 214, .12), 0 12px 28px rgba(15, 50, 90, .12);
}

.nft-cover,
.jnft-cover {
  background: linear-gradient(135deg, #e8f2ff 0%, #d5e8fb 48%, #f8fbff 100%);
}

.nft-cover-token {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(0, 107, 214, .18);
  color: var(--accent);
  backdrop-filter: blur(4px);
  text-shadow: none;
}

.row-new-highlight {
  animation: rowHighlightFade 2.2s ease;
}

@keyframes rowHighlightFade {
  0% { background: rgba(0, 107, 214, .14); }
  100% { background: transparent; }
}

/* ============================================================
   TRADEGO OFFICIAL STYLE REFRESH · PHASE 2
   Light-touch refinements after browser review: stronger corporate
   blue-white hierarchy, quieter cards, consistent controls, and
   readable standalone docs without touching business behavior.
============================================================ */
:root {
  --bg-base: #f4f8fd;
  --bg-card: #ffffff;
  --bg-card2: #f6f9fd;
  --bg-hover: #edf5ff;
  --border: #d7e3f0;
  --border-light: #e6eef7;
  --text-primary: #10243f;
  --text-secondary: #52677f;
  --text-muted: #8a9bae;
  --accent: #006bd6;
  --accent-hover: #0057b8;
  --accent-light: #e8f3ff;
  --green: #12935f;
  --green-bg: #e8f7f0;
  --yellow: #b98105;
  --yellow-bg: #fff7df;
  --red: #d92d20;
  --red-bg: #fff1f0;
  --orange: #df6b16;
  --orange-bg: #fff4e8;
  --purple: #4f6fdc;
  --purple-bg: #eef3ff;
  --shadow: 0 10px 26px rgba(18, 56, 98, .08);
}

html {
  background: var(--bg-base);
}

body,
.page:not(#page-login),
.dashboard-page {
  background:
    radial-gradient(720px 320px at 8% 0%, rgba(0, 107, 214, .08), transparent 68%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg-base) 42%, #eef4fb 100%);
}

body::before,
body::after,
.dashboard-page::before,
.dashboard-page::after,
.borrow-hero-card::before,
.borrow-hero-card::after,
#page-login .login-page::before,
#page-login .login-page::after {
  display: none;
}

.navbar {
  height: 62px;
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--border-light);
  box-shadow: 0 4px 18px rgba(16, 45, 82, .08);
}

.nav-links {
  gap: 6px;
}

.nav-link {
  padding: 7px 13px;
  color: #4f647c;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: none;
  transform: none;
}

.nav-link.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 107, 214, .18);
  transform: none;
}

.nav-chain,
.wallet-btn,
.nav-badge,
.footer-chain {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(16, 45, 82, .05);
}

.card,
.stat-card,
.admin-dash-panel,
.jnft-unit-card,
.policy-card,
.platform-row,
.pool-nft-section,
.lending-provider-card,
.fund-pool-overview,
.login-card-clean,
.drawer,
.modal,
.app-toast,
.lender-overview-row,
.bill-row,
.borrower-loan-row,
.borrower-unminted-row,
.group-loan-row,
.admin-list-row,
.lender-list-row,
.batch-redeem-card,
.nft-card,
.credit-nft-card,
.bundle-select-card {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.card:hover,
.stat-card:hover,
.admin-dash-panel:hover,
.pool-nft-section:hover,
.platform-row:hover,
.lender-overview-row:hover,
.bill-row:hover,
.borrower-loan-row:hover,
.admin-list-row:hover,
.lender-list-row:hover,
.nft-card:hover,
.bundle-select-card:hover {
  border-color: rgba(0, 107, 214, .28);
  box-shadow: 0 14px 34px rgba(18, 56, 98, .11);
  transform: none;
}

.stat-card,
.risk-metric,
.admin-metric-tile,
.fund-pool-metric,
.pledge-borrow-stat,
.jnft-card-summary,
.risk-formula,
.credit-acquire-card,
.borrow-lender-panel,
.borrow-quota-chart-wrap,
.borrow-quota-metric,
.pool-action-panel,
.pool-credit-focus,
.borrow-limit-focus,
.loan-summary-card,
.pool-batch-redeem-summary,
.pool-nft-section,
.credit-material-card,
.credit-pool-info-card,
.credit-bill-row,
.dashboard-onboarding-step,
.credit-attachment-uploader,
.credit-attachment-item,
.my-txs-filter-panel,
.detail-page-section {
  background: var(--bg-card2);
  border-color: var(--border-light);
  box-shadow: none;
}

.stat-card::before,
.risk-metric::before,
.admin-metric-tile::before,
.fund-pool-metric::before,
.admin-dash-hero::after,
.fund-pool-overview::after {
  display: none;
}

.page-title,
.borrow-hero-title,
.borrow-lender-head .borrow-hero-title {
  color: #10243f;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  letter-spacing: 0;
}

.page-title {
  font-size: clamp(22px, 2vw, 25px);
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 7px 16px rgba(0, 107, 214, .20);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 9px 20px rgba(0, 87, 184, .22);
}

.btn-secondary,
.btn-ghost,
.admin-mint-subtab {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover,
.btn-ghost:hover,
.admin-mint-subtab:hover {
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .34);
  color: var(--accent);
}

.btn-success:hover {
  background: #dff3eb;
}

.btn-danger:hover {
  background: #ffe6e3;
  border-color: rgba(217, 45, 32, .38);
}

.btn-warning:hover {
  background: #fff0c7;
  border-color: rgba(185, 129, 5, .40);
}

.tabs,
.compact-filter-tabs,
.pool-filter-tabs,
.login-topbar-tabs,
.login-role-tabs,
.admin-mint-subtabs,
.logs-chip-group,
.my-txs-status-tabs,
.bill-library-main-tabs,
.bill-library-status-tabs,
.borrower-hub-header-tabs {
  background: #edf4fc;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.tab,
.login-topbar-tab,
.login-role-tab,
.logs-chip,
.admin-mint-subtab {
  border-radius: 999px;
  color: var(--text-secondary);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.tab:hover,
.login-topbar-tab:not(.active):hover,
.login-role-tab:not(.active):hover,
.logs-chip:hover,
.admin-mint-subtab:hover {
  background: rgba(255, 255, 255, .82);
  color: var(--accent);
}

.tab.active,
.login-topbar-tab.active,
.login-role-tab.active,
.logs-chip.active,
.admin-mint-subtab.active {
  background: #fff;
  color: var(--accent);
  border-color: rgba(0, 107, 214, .24);
  box-shadow: 0 4px 12px rgba(18, 56, 98, .09);
}

.admin-mint-subtab-count,
.tab-count {
  background: var(--accent-light);
  color: var(--accent);
}

.form-input,
.form-select,
.form-textarea,
.otp-input,
.input-unit {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

.modal-overlay,
.drawer-overlay {
  background: rgba(15, 38, 68, .40);
  backdrop-filter: blur(4px);
}

.modal-header,
.modal-footer,
.drawer-header {
  background: #f8fbff;
  border-color: var(--border-light);
}

#page-login .login-page {
  background:
    radial-gradient(760px 340px at 12% 5%, rgba(0, 107, 214, .12), transparent 65%),
    radial-gradient(640px 260px at 88% 0%, rgba(0, 107, 214, .06), transparent 70%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 54%, #fbfdff 100%);
}

.login-topbar {
  background: rgba(255, 255, 255, .94);
}

.login-shell {
  padding-top: 52px;
}

#page-login .login-shell[data-role="borrower"] {
  gap: 48px;
}

.login-borrower-landing {
  padding-top: 18px;
}

.login-hero-kicker {
  color: var(--accent);
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .22);
  box-shadow: none;
}

.login-hero-tagline {
  max-width: 690px;
  color: #0d2c52;
  font-size: clamp(36px, 4.1vw, 56px);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-shadow: none;
}

.login-hero-sub {
  max-width: 620px;
  color: #4f647c;
  font-size: 15px;
}

.login-pool-visual {
  height: 184px;
  border-color: #d9e7f5;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 107, 214, .10), transparent 30%),
    linear-gradient(135deg, rgba(232, 243, 255, .96), rgba(255, 255, 255, .88));
  box-shadow: 0 14px 34px rgba(18, 56, 98, .10);
}

.login-orbit-ring,
.login-pool-visual::before,
.login-pool-visual::after {
  display: none;
}

.login-chain-node {
  background: #fff;
  border-color: #cfdeee;
  box-shadow: 0 8px 18px rgba(18, 56, 98, .10);
}

.login-chain-node strong {
  color: #12365f;
  letter-spacing: 0;
}

.login-chain-node span {
  color: var(--text-secondary);
}

.login-flow-line {
  background: linear-gradient(90deg, rgba(0, 107, 214, .12), rgba(0, 107, 214, .48), rgba(18, 147, 95, .34));
  box-shadow: none;
}

.login-feature {
  background: rgba(255, 255, 255, .88);
  border-color: #e1ebf5;
  box-shadow: 0 8px 22px rgba(18, 56, 98, .07);
}

.login-feature-icon {
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: none;
}

.login-card-clean {
  padding: 30px 28px 24px;
}

.login-card-clean::before {
  background: var(--accent);
  box-shadow: none;
}

.login-card-clean .btn-ghost {
  background: #fff;
}

.login-card-eyebrow {
  color: var(--accent);
}

.borrow-hero-card,
.borrow-hero-card.is-ready,
.borrow-hero-card.borrow-hero-card-onboarding,
.borrow-quota-card,
.pool-borrow-application,
.loan-inline-repay-panel,
.loan-inline-repay-hero,
.admin-dash-hero,
.fund-pool-overview,
.dashboard-empty-card,
#jnft-grid-dashboard .dashboard-pool-row.dashboard-pool-row-empty {
  background:
    linear-gradient(135deg, rgba(0, 107, 214, .07), rgba(255, 255, 255, .92)),
    #fff;
  border-color: #d9e7f5;
  box-shadow: 0 14px 34px rgba(18, 56, 98, .10);
}

.borrow-hero-amount,
.borrow-quota-available strong,
.borrow-quota-chart-center strong,
.loan-inline-repay-hero-amount {
  color: var(--green);
}

.borrow-hero-kicker,
.borrow-path-badge,
.loan-inline-repay-hero-label,
.risk-formula code,
.nft-token-id,
.stat-value-oracle,
.oracle-tag {
  color: var(--accent);
}

.borrow-hero-chart-panel,
.borrow-quota-chart-wrap {
  background: #f8fbff;
}

.borrow-quota-chart {
  --borrow-used-color: #88a6c6;
  --borrow-available-color: #2ca16c;
  background:
    radial-gradient(circle at center, #fff 0 60%, transparent 61%),
    conic-gradient(var(--borrow-used-color) 0deg var(--borrow-used-deg), var(--borrow-available-color) var(--borrow-used-deg) 360deg);
  box-shadow: inset 0 0 0 1px rgba(16, 45, 82, .08);
  filter: none;
}

.borrow-path-card {
  background: #fff;
  border-color: var(--border-light);
}

.borrow-path-card:hover:not(:disabled),
.borrow-path-card.active {
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .34);
  box-shadow: 0 0 0 2px rgba(0, 107, 214, .10);
}

.bill-row,
.bill-row-compact,
.borrower-loan-row,
.borrower-unminted-row,
.group-loan-row,
.admin-list-row,
.lender-list-row,
.platform-row,
.lender-overview-row {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .12), 0 8px 20px rgba(18, 56, 98, .07);
}

.bill-row:hover,
.bill-row-compact:hover,
.borrower-loan-row:hover,
.borrower-unminted-row:hover,
.group-loan-row:hover,
.admin-list-row:hover,
.lender-list-row:hover,
.platform-row:hover,
.lender-overview-row:hover {
  background: #fbfdff;
  border-color: rgba(0, 107, 214, .28);
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .28), 0 12px 28px rgba(18, 56, 98, .10);
}

.list-row-fields,
.borrower-loan-fields,
.borrower-bill-record-fields,
.platform-row-fields,
.lender-overview-grid {
  row-gap: 8px;
}

.list-row-field,
.borrower-loan-fields .list-row-field,
.borrower-bill-record-fields .list-row-field {
  padding: 2px 0;
}

.nft-card,
#jnft-grid-dashboard .nft-card,
#borrower-bills-grid .nft-card,
.nft-asset-grid .nft-card,
.nft-collateral-grid .nft-card,
.batch-redeem-card {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: 0 8px 22px rgba(18, 56, 98, .08);
}

.nft-cover,
.jnft-cover,
.credit-nft-cover {
  background:
    linear-gradient(135deg, #e8f3ff 0%, #d8eafb 48%, #f9fcff 100%);
  color: #12365f;
}

.nft-cover-shade {
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(13, 44, 82, .10) 72%, rgba(13, 44, 82, .22) 100%);
}

.nft-cover-route,
.credit-nft-cover-title,
.credit-nft-cover-head,
.credit-nft-cover-foot,
.credit-nft-cover-main em,
.credit-nft-cover-main strong {
  color: #12365f;
  text-shadow: none;
}

.nft-cover-token,
.nft-cover-bundle-tag,
.nft-cover-share-tag,
.pool-borrow-selected-badge,
.chain-badge,
.tx-hash {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(0, 107, 214, .20);
  color: var(--accent);
  box-shadow: none;
}

.borrow-nft-selected {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(0, 107, 214, .13), 0 14px 30px rgba(18, 56, 98, .12);
}

.borrow-nft-overlay {
  background: linear-gradient(180deg, rgba(0, 107, 214, .10), rgba(255, 255, 255, .02));
}

.borrow-nft-overlay span {
  background: #fff;
  border-color: rgba(0, 107, 214, .28);
  color: var(--accent);
}

.jnft-card-toggle {
  background: #fff;
}

.jnft-card-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.table-wrap,
.admin-redeem-panel,
.batch-upload-preview-card {
  background: #fff;
  border-color: var(--border-light);
}

thead th,
.logs-table th {
  background: #f4f8fd;
  color: #5b6f85;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody tr:hover,
.logs-table tbody tr:hover {
  background: var(--bg-hover);
}

.alert-info {
  background: #e8f3ff;
  border-color: #cde3fb;
  color: #125da8;
}

.alert-success {
  background: var(--green-bg);
}

.alert-warning {
  background: var(--yellow-bg);
}

.batch-upload-preview-amount > strong,
.batch-upload-preview-date > strong,
.lender-overview-amount {
  color: var(--text-primary);
}

.drawer-body .card {
  border-color: var(--border-light);
}

.product-standalone-body {
  background:
    radial-gradient(720px 340px at 12% 0%, rgba(0, 107, 214, .10), transparent 66%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%) !important;
}

.product-standalone {
  color: var(--text-primary);
}

.product-clean-hero,
.product-design-hero-v2,
.product-clean-section,
.product-design-section,
.product-standalone .detail-page-section {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.product-clean-hero h2,
.product-design-hero-v2 h2,
.product-clean-section h4,
.product-design-section h4 {
  color: #10243f;
}

.product-clean-hero p,
.product-section-desc,
.product-standalone-flow span,
.product-scenario-clean em {
  color: var(--text-secondary);
}

.product-standalone-note span,
.product-standalone-flow span,
.product-architecture-clean,
.product-arch-band,
.product-arch-core,
.product-swimlane-table > div,
.product-loop-clean,
.product-scenario-clean > div {
  background: var(--bg-card2);
  border-color: var(--border-light);
}

.product-arch-core strong,
.product-loop-clean-core strong,
.product-scenario-clean strong,
.product-standalone-flow b {
  color: #10243f;
}

.product-loop-clean-node span,
.product-scenario-clean span {
  background: var(--accent);
  color: #fff;
}

.lender-overview-kpi-grid .stat-card,
.platform-kpi-row .stat-card,
.admin-dash-kpi,
.admin-dash-hero,
.lender-overview-filter,
.admin-funds-kpis .stat-card,
#lender-page-body .stat-card,
#lender-report-body .stat-card {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.admin-nft-mint-row-compact.bill-row-compact,
.borrower-loan-row.bill-row-compact,
.my-bill-record-card.bill-row-compact,
.bill-library-card.bill-row-compact,
.bill-operation-card.bill-row-compact,
.lender-overview-row,
.lender-record-row,
.loan-record-card {
  background: #fff !important;
  border-color: var(--border-light) !important;
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .12), 0 8px 20px rgba(18, 56, 98, .07) !important;
}

.admin-list-row.bill-row-compact:hover,
.lender-list-row.bill-row-compact:hover,
.admin-nft-mint-row-compact.bill-row-compact:hover,
.borrower-loan-row.bill-row-compact:hover,
.my-bill-record-card.bill-row-compact:hover,
.bill-library-card.bill-row-compact:hover,
.bill-operation-card.bill-row-compact:hover,
.lender-overview-row:hover,
.lender-record-row:hover,
.loan-record-card:hover {
  background: #fbfdff !important;
  border-color: rgba(0, 107, 214, .28) !important;
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .28), 0 12px 28px rgba(18, 56, 98, .10) !important;
}

.lender-overview-filter,
.my-txs-filter-panel,
.admin-redeem-panel,
.batch-upload-modal .card {
  background: #fff;
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

/* Phase 3 visual cleanup: keep operational pages in the blue-white enterprise theme. */
.borrower-hub-tabs-wrap {
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(248, 251, 255, .90));
  border-bottom: 1px solid rgba(216, 226, 239, .68);
  backdrop-filter: blur(10px);
}

.tabs,
.compact-filter-tabs,
.pool-filter-tabs,
.logs-chip-group,
.my-txs-status-tabs,
.bill-library-main-tabs,
.bill-library-status-tabs,
.borrower-hub-header-tabs,
.borrower-nft-status-tabs,
.admin-mint-subtabs,
.jnft-action-tabs-row {
  gap: 6px;
  padding: 4px;
  background: #f3f8fe;
  border: 1px solid #dbe8f5;
  border-radius: 999px;
  box-shadow: none;
}

.tab,
.logs-chip,
.admin-mint-subtab,
.jnft-action-tab {
  min-height: 30px;
  border: 1px solid transparent;
  background: transparent;
  color: #5c7188;
  font-weight: 650;
}

.tab:hover,
.logs-chip:hover,
.admin-mint-subtab:hover,
.jnft-action-tab:hover {
  background: #fff;
  border-color: rgba(0, 107, 214, .18);
  color: var(--accent);
}

.tab.active,
.logs-chip.active,
.admin-mint-subtab.active,
.jnft-action-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 107, 214, .18);
}

.tab.active .tab-count,
.borrower-hub-header-tabs .tab.active .tab-count {
  background: rgba(255, 255, 255, .20);
  color: #fff;
}

#jnft-grid-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#jnft-grid-dashboard .dashboard-pool-row {
  grid-template-columns: minmax(210px, .9fr) minmax(240px, .82fr) minmax(250px, .86fr);
  gap: 18px;
  min-height: 126px;
  padding: 16px 18px;
  background: #fff !important;
  border: 1px solid #dbe8f5 !important;
  box-shadow: 0 8px 22px rgba(18, 56, 98, .08) !important;
}

#jnft-grid-dashboard .dashboard-pool-row:hover {
  background: #fbfdff !important;
  border-color: rgba(0, 107, 214, .28) !important;
  box-shadow: 0 12px 28px rgba(18, 56, 98, .10) !important;
}

#jnft-grid-dashboard .dashboard-pool-available {
  min-height: 76px;
  padding: 14px 18px;
  background:
    radial-gradient(circle at 82% 12%, rgba(18, 147, 95, .12), transparent 38%),
    linear-gradient(135deg, #f2fbf7, #f8fbff);
  border-color: rgba(18, 147, 95, .20);
  box-shadow: none;
}

#jnft-grid-dashboard .dashboard-pool-available span {
  color: var(--green);
  letter-spacing: .04em;
}

#jnft-grid-dashboard .dashboard-pool-available strong {
  color: var(--green);
  text-shadow: none !important;
}

#jnft-grid-dashboard .dashboard-pool-used,
#jnft-grid-dashboard .dashboard-pool-fields .list-row-field > span {
  color: var(--text-muted);
}

#jnft-grid-dashboard .dashboard-pool-util {
  background: #e8f1fb;
  border-color: #d6e5f4;
}

#jnft-grid-dashboard .dashboard-pool-util i {
  background: linear-gradient(90deg, #5aa7f2, var(--accent));
  box-shadow: none;
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e4edf7;
  border-radius: 10px;
  background: #f8fbff;
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field > strong {
  color: #284461;
}

#jnft-grid-dashboard .dashboard-pool-detail-btn {
  border-color: #cfdff0;
}

#jnft-grid-dashboard .dashboard-pool-detail-btn:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn:focus-visible {
  background: var(--accent-light);
  border-color: rgba(0, 107, 214, .34);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 107, 214, .08);
}

.borrow-hero-card,
.borrow-hero-card.is-ready,
.borrow-hero-card.is-blocked {
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 107, 214, .10), transparent 34%),
    linear-gradient(135deg, #fff, #f6fbff);
  border-color: #dbe8f5;
  box-shadow: 0 12px 30px rgba(18, 56, 98, .09);
}

.borrow-hero-chart-panel,
.borrow-quota-chart-wrap {
  background: #fff;
  border-color: #e1ebf5;
}

.borrow-quota-chart {
  --borrow-used-color: #82a6c9;
  --borrow-available-color: #35b779;
  background:
    radial-gradient(circle at center, #fff 0 60%, transparent 61%),
    conic-gradient(var(--borrow-used-color) 0deg var(--borrow-used-deg), var(--borrow-available-color) var(--borrow-used-deg) 360deg);
  border-color: #d9e7f5;
  box-shadow: inset 0 0 0 1px rgba(16, 45, 82, .06);
}

.borrow-quota-chart:hover,
.borrow-quota-scope[data-quota-focus] .borrow-quota-chart {
  box-shadow: inset 0 0 0 1px rgba(0, 107, 214, .10), 0 10px 22px rgba(18, 56, 98, .08);
}

.borrow-quota-chart-center span {
  color: var(--text-muted);
}

.borrow-quota-chart-center strong,
.borrow-hero-amount {
  color: var(--green);
  text-shadow: none;
}

.borrow-quota-metrics.borrow-quota-metrics--hero > div,
.borrow-quota-metrics > div,
.borrow-hero-context {
  background: #f8fbff;
  border-color: #dfeaf5;
  box-shadow: none;
}

.borrow-quota-metric.is-selected,
.borrow-quota-scope[data-quota-focus="available"] .borrow-quota-metric.is-available,
.borrow-quota-scope[data-quota-focus="used"] .borrow-quota-metric.is-used,
.borrow-quota-scope[data-quota-focus="total"] .borrow-quota-metric.is-total {
  background: #fff;
  border-color: rgba(0, 107, 214, .28);
}

.borrow-quota-metric:hover {
  background: #fff;
}

.borrow-quota-legend-item,
.borrow-quota-legend-item.is-selected,
.borrow-quota-scope[data-quota-focus="available"] .borrow-quota-legend-item.is-available,
.borrow-quota-scope[data-quota-focus="used"] .borrow-quota-legend-item.is-used,
.borrow-quota-scope[data-quota-focus="total"] .borrow-quota-legend-item.is-total {
  background: #fff;
}

.borrower-unborrowed-nft-grid,
.pledge-nft-grid,
.nft-asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(238px, 268px));
  justify-content: start;
  gap: 16px;
}

.pool-nft-section {
  background: #fff;
  border-color: #dbe8f5;
  box-shadow: 0 8px 22px rgba(18, 56, 98, .07);
}

.nft-card,
#borrower-bills-grid .nft-card,
.borrower-unborrowed-nft-grid .nft-card,
.pledge-nft-grid .nft-card,
.batch-redeem-card {
  background: #fff;
  border: 1px solid #dbe8f5;
  box-shadow: 0 8px 20px rgba(18, 56, 98, .07);
}

.nft-card:hover,
.borrower-unborrowed-nft-grid .nft-card:hover,
.pledge-nft-grid .nft-card:hover {
  border-color: rgba(0, 107, 214, .30);
  box-shadow: 0 12px 26px rgba(18, 56, 98, .10);
}

/* Hotfix: force alignment baseline for borrower pool NFT list area only. */
#borrower-hub-unborrowed-nfts > .borrower-nft-status-tabs.compact-filter-tabs.content-align-frame,
#borrower-hub-unborrowed-nfts > .borrower-nft-status-actions.page-toolbar.content-align-frame,
#borrower-hub-unborrowed-nfts > .borrower-unborrowed-nft-grid.nft-grid.content-align-frame {
  width: 100% !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

#borrower-hub-unborrowed-nfts > .borrower-nft-status-tabs.compact-filter-tabs.content-align-frame {
  display: flex !important;
  justify-content: flex-start;
}

.nft-cover,
.jnft-cover {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(232, 243, 255, .96), rgba(248, 252, 255, .98));
}

.nft-template-bg {
  object-fit: contain;
  padding: 8px;
  filter: saturate(.88) contrast(.96);
}

.nft-cover-shade {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(13, 44, 82, .08));
}

.nft-body {
  padding: 13px 14px 14px;
  background: #fff;
}

.nft-status-head {
  gap: 8px;
}

.nft-card-status,
.badge {
  border: 1px solid transparent;
}

.nft-action-row {
  border-top-color: #e7eff8;
}

.credit-nft-card,
.credit-nft-card:hover {
  background: #fff;
  border-color: #dbe8f5;
  box-shadow: 0 8px 22px rgba(18, 56, 98, .08);
}

.credit-nft-cover {
  background:
    radial-gradient(circle at 24% 18%, rgba(0, 107, 214, .12), transparent 34%),
    linear-gradient(135deg, #edf7ff, #f8fcff);
  border-color: #d6e6f5;
  box-shadow: none;
}

.credit-nft-field {
  background: #f8fbff;
  border-color: #e4edf7;
}

.lender-overview-kpi-grid .stat-card,
.platform-kpi-row .stat-card,
.admin-funds-kpis .stat-card,
#lender-page-body .stat-card,
#lender-report-body .stat-card,
.admin-dash-kpi,
.admin-dash-panel {
  background: #fff;
  border-color: #dbe8f5;
  box-shadow: 0 8px 22px rgba(18, 56, 98, .07);
}

.loan-nft-detail-row.open td,
.loan-repay-panel-row td {
  background: #f8fbff;
}

@media (max-width: 1200px) {
  #jnft-grid-dashboard .dashboard-pool-row {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr);
  }

  #jnft-grid-dashboard .dashboard-pool-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #jnft-grid-dashboard .dashboard-pool-row {
    grid-template-columns: 1fr;
  }

  .borrower-unborrowed-nft-grid,
  .pledge-nft-grid,
  .nft-asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .borrow-hero-card,
  .login-card-clean,
  .login-feature {
    animation: none;
  }
}

@media (max-width: 720px) {
  .navbar {
    height: auto;
  }

  .login-shell {
    padding-top: 32px;
  }

  .login-pool-visual {
    height: auto;
    min-height: 260px;
  }

  .login-chain-node {
    position: relative;
    inset: auto !important;
    display: block;
    margin: 10px 12px;
  }

  .login-flow-line {
    display: none;
  }
}

/* ============================================================
   TRADEGO OFFICIAL ALIGNMENT PASS
   Final light-theme consolidation after comparing the public site:
   white surfaces, clear blue CTAs, readable data, and stable rows.
============================================================ */
:root {
  --tg-blue-strong: #0057b8;
  --tg-blue: #006bd6;
  --tg-blue-soft: #e8f3ff;
  --tg-text-strong: #10243f;
  --tg-text-body: #2c435d;
  --tg-text-muted: #657892;
  --tg-border: #d7e5f3;
  --tg-border-soft: #e6eef7;
  --tg-shadow-card: 0 8px 22px rgba(18, 56, 98, .07);
}

.container {
  max-width: 1180px;
}

.container,
.container-md,
.container-sm {
  padding-top: 30px;
  padding-bottom: 34px;
}

.page-title,
.product-clean-hero h2,
.product-design-hero-v2 h2 {
  color: var(--tg-text-strong);
  letter-spacing: -.01em;
}

.page-subtitle,
.text-muted,
.stat-sub,
.form-hint,
.loan-stage-hint {
  color: var(--tg-text-muted);
}

.card,
.card-sm,
.detail-page-section,
.modal-content,
.drawer,
.table-wrap,
.my-txs-filter-panel,
.lender-overview-filter,
.admin-redeem-panel,
.product-clean-section,
.product-design-section {
  border-color: var(--tg-border-soft);
}

.stat-card,
.loan-detail-kpi-card,
.admin-dash-kpi,
.nft-cert-kpis > div,
.bill-library-kpi-grid .stat-card,
.detail-list-kpi-grid .stat-card,
.lender-overview-kpi-grid .stat-card,
.platform-kpi-row .stat-card,
.admin-funds-kpis .stat-card {
  min-height: 92px;
  background: #fff;
  border-color: var(--tg-border);
  box-shadow: var(--tg-shadow-card);
}

.stat-label,
.admin-dash-kpi .kpi-lbl,
.nft-cert-kpi-lbl {
  color: #536a84;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .025em;
}

.stat-value,
.admin-dash-kpi .kpi-val,
.nft-cert-kpi-val,
.loan-summary-value,
.borrow-hero-kpi strong {
  color: var(--tg-text-strong);
  font-weight: 820;
  text-shadow: none;
}

.stat-value .metric-number,
.admin-dash-kpi .metric-number,
.nft-cert-kpi-val .metric-number,
.loan-summary-value .metric-number,
.metric-count .metric-number {
  color: var(--tg-text-strong);
}

.stat-value.text-green,
.stat-value .text-green,
.text-green .metric-number,
.borrow-hero-amount,
.dashboard-pool-available strong,
.pool-borrow-available strong {
  color: var(--green);
}

.stat-value.text-yellow,
.text-yellow .metric-number {
  color: var(--yellow);
}

.stat-value.text-red,
.text-red .metric-number {
  color: var(--red);
}

.metric-unit,
.stat-value .metric-unit,
.metric-count .metric-unit,
.admin-dash-kpi .metric-unit,
.nft-cert-kpi-val .metric-unit {
  color: #60758d;
  opacity: 1;
  font-weight: 700;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 16px;
  font-weight: 700;
  box-shadow: none;
  transform: none;
}

.btn:hover {
  transform: none;
}

.btn-primary,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary {
  background: var(--tg-blue);
  border-color: var(--tg-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 107, 214, .18);
}

.btn-primary:hover,
.btn-primary:focus-visible,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary:focus-visible {
  background: var(--tg-blue-strong);
  border-color: var(--tg-blue-strong);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 107, 214, .13);
}

.btn-secondary,
.btn-ghost,
.dashboard-topbar .btn-ghost,
.login-card-clean .btn-ghost,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-secondary,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-ghost {
  background: #fff;
  border-color: #c9d9ea;
  color: var(--tg-blue-strong);
  box-shadow: none;
  backdrop-filter: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible,
.dashboard-topbar .btn-ghost:hover,
.dashboard-topbar .btn-ghost:focus-visible,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-secondary:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-secondary:focus-visible,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-ghost:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-ghost:focus-visible {
  background: var(--tg-blue-soft);
  border-color: rgba(0, 107, 214, .42);
  color: var(--tg-blue-strong);
  box-shadow: 0 0 0 3px rgba(0, 107, 214, .08);
}

.btn:disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
  background: #eef3f8;
  border-color: #d8e2ec;
  color: #8b9bb0;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 12px;
}

.tabs,
.compact-filter-tabs,
.pool-filter-tabs,
.logs-chip-group,
.my-txs-status-tabs,
.bill-library-main-tabs,
.bill-library-status-tabs,
.borrower-hub-header-tabs,
.borrower-nft-status-tabs,
.admin-mint-subtabs,
.jnft-action-tabs-row {
  background: #f3f8fe;
  border-color: var(--tg-border);
  box-shadow: none;
}

.tab,
.logs-chip,
.admin-mint-subtab,
.jnft-action-tab {
  color: var(--tg-text-muted);
}

.tab.active,
.logs-chip.active,
.admin-mint-subtab.active,
.jnft-action-tab.active {
  background: var(--tg-blue);
  border-color: var(--tg-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 107, 214, .16);
}

.form-input,
.form-select,
.form-textarea {
  min-height: 38px;
  background: #fff;
  border-color: #ccdcec;
  color: var(--tg-text-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--tg-blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 214, .12);
}

.modal-body,
.drawer-body {
  padding: 18px 20px;
}

.modal-header,
.modal-footer,
.drawer-header {
  background: #f8fbff;
  border-color: var(--tg-border-soft);
}

.bill-row,
.bill-row-compact,
.loan-record-card,
.admin-list-row,
.lender-list-row,
.borrower-loan-row,
.borrower-unminted-row,
.bill-library-card,
.bill-operation-card {
  border-color: var(--tg-border-soft) !important;
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .10), var(--tg-shadow-card) !important;
}

.bill-row:hover,
.bill-row-compact:hover,
.loan-record-card:hover,
.admin-list-row:hover,
.lender-list-row:hover,
.borrower-loan-row:hover,
.borrower-unminted-row:hover,
.bill-library-card:hover,
.bill-operation-card:hover {
  border-color: rgba(0, 107, 214, .28) !important;
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .24), 0 12px 28px rgba(18, 56, 98, .10) !important;
}

.my-bill-record-card.bill-row-compact {
  display: grid;
  grid-template-columns:
    minmax(154px, 190px)
    minmax(108px, .58fr)
    minmax(88px, .44fr)
    minmax(174px, .76fr)
    minmax(140px, .72fr)
    minmax(238px, max-content);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 12px 14px;
}

.my-bill-record-content,
.my-bill-record-card .borrower-bill-record-fields {
  display: contents;
}

.my-bill-record-main {
  grid-column: 1;
  min-width: 0;
  align-self: center;
}

.my-bill-record-card .list-row-field {
  min-width: 0;
  align-self: center;
}

.my-bill-record-card .list-row-field-amount {
  grid-column: 2;
}

.my-bill-record-card .list-row-field-id {
  grid-column: 3;
}

.my-bill-record-card .my-bill-record-time-field {
  grid-column: 4;
}

.my-bill-record-card .list-row-field-party {
  grid-column: 5;
}

.my-bill-record-actions {
  grid-column: 6;
  justify-self: end;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.my-bill-record-actions .btn {
  min-width: 72px;
  min-height: 32px;
  padding: 6px 12px;
}

.my-bill-record-card .list-row-field > span {
  color: #60758d;
}

.my-bill-record-card .list-row-field > strong {
  color: var(--tg-text-strong);
  line-height: 1.28;
}

.my-bill-time-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.my-bill-time-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.my-bill-time-line em {
  color: #70839a;
  font-size: 10px;
  font-style: normal;
  font-family: inherit;
  font-weight: 700;
}

.my-bill-time-line span {
  color: var(--tg-text-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.product-standalone {
  width: min(1120px, calc(100% - 40px));
}

.product-standalone-note span,
.product-standalone-flow span,
.product-architecture-clean,
.product-arch-band,
.product-arch-core,
.product-swimlane-table > div,
.product-loop-clean,
.product-scenario-clean > div {
  border-color: var(--tg-border-soft);
}

@media (max-width: 1180px) {
  .my-bill-record-card.bill-row-compact {
    grid-template-columns: minmax(164px, 220px) repeat(3, minmax(118px, 1fr));
  }

  .my-bill-record-main {
    grid-column: 1;
  }

  .my-bill-record-card .list-row-field-amount {
    grid-column: 2;
  }

  .my-bill-record-card .list-row-field-id {
    grid-column: 3;
  }

  .my-bill-record-card .my-bill-record-time-field {
    grid-column: 4;
  }

  .my-bill-record-card .list-row-field-party {
    grid-column: 2 / 4;
  }

  .my-bill-record-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .container,
  .container-md,
  .container-sm {
    padding: 20px 16px 28px;
  }

  .my-bill-record-card.bill-row-compact {
    grid-template-columns: 1fr;
  }

  .my-bill-record-main,
  .my-bill-record-card .list-row-field-amount,
  .my-bill-record-card .list-row-field-id,
  .my-bill-record-card .my-bill-record-time-field,
  .my-bill-record-card .list-row-field-party,
  .my-bill-record-actions {
    grid-column: auto;
  }

  .my-bill-record-content,
  .my-bill-record-card .borrower-bill-record-fields {
    display: grid;
  }

  .my-bill-record-actions {
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .my-bill-record-actions .btn {
    flex: 1 1 128px;
  }

  .product-standalone {
    width: min(100% - 24px, 1120px);
  }
}

/* Bill records page stabilization: avoid field/action overlap and vertical text collapse. */
[data-detail-view="bill-records"] .my-bill-record-card.bill-row-compact {
  grid-template-columns:
    minmax(154px, 190px)
    minmax(108px, .58fr)
    minmax(88px, .44fr)
    minmax(174px, .76fr)
    minmax(140px, .72fr)
    minmax(238px, max-content);
  align-items: center;
}

[data-detail-view="bill-records"] .my-bill-record-card .list-row-field-party > strong {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.32;
}

[data-detail-view="bill-records"] .my-bill-record-card .my-bill-record-time-field > strong,
[data-detail-view="bill-records"] .my-bill-record-card .my-bill-time-line span {
  white-space: nowrap;
}

[data-detail-view="bill-records"] .my-bill-record-actions {
  min-width: 0;
}

@media (max-width: 1180px) {
  [data-detail-view="bill-records"] .my-bill-record-card.bill-row-compact {
    grid-template-columns: minmax(164px, 220px) repeat(3, minmax(118px, 1fr));
  }

  [data-detail-view="bill-records"] .my-bill-record-main {
    grid-column: 1;
  }

  [data-detail-view="bill-records"] .my-bill-record-card .list-row-field-amount {
    grid-column: 2;
  }

  [data-detail-view="bill-records"] .my-bill-record-card .list-row-field-id {
    grid-column: 3;
  }

  [data-detail-view="bill-records"] .my-bill-record-card .my-bill-record-time-field {
    grid-column: 4;
  }

  [data-detail-view="bill-records"] .my-bill-record-card .list-row-field-party {
    grid-column: 2 / 5;
  }

  [data-detail-view="bill-records"] .my-bill-record-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* ============================================================
   TradeGo FinTech polish: blue-white clarity + restrained Web3 texture
   ============================================================ */
:root {
  --bg-base: #f3f7fc;
  --bg-card: #ffffff;
  --bg-card2: #f7fbff;
  --bg-hover: #eaf4ff;
  --border: #cbd9ea;
  --border-light: #e2ebf6;
  --text-primary: #0b1f3a;
  --text-secondary: #334a66;
  --text-muted: #5f7188;
  --accent: #006bd6;
  --accent-hover: #0052b8;
  --accent-light: #e7f2ff;
  --blue: #006bd6;
  --green: #078651;
  --green-bg: #e8f7ef;
  --yellow: #9a6600;
  --yellow-bg: #fff4cf;
  --orange: #c75a0a;
  --orange-bg: #fff1e4;
  --red: #c6281d;
  --red-bg: #fff0ef;
  --purple: #4f5fd5;
  --purple-bg: #eef1ff;
  --shadow: 0 16px 42px rgba(26, 73, 125, .12);
  --shadow-soft: 0 8px 24px rgba(31, 78, 130, .08);
  --tech-line: rgba(0, 107, 214, .10);
}

body {
  background:
    radial-gradient(circle at 12% 0, rgba(0, 107, 214, .08), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(36, 139, 255, .08), transparent 28%),
    linear-gradient(rgba(0, 107, 214, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 107, 214, .028) 1px, transparent 1px),
    var(--bg-base);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

.navbar {
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(0, 107, 214, .14);
  box-shadow: 0 8px 24px rgba(24, 67, 118, .08);
}

.nav-logo,
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-light);
}

.nav-powered,
.nav-badge,
.wallet-btn,
.nav-chain {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
}

.page-title {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-subtitle,
.text-muted,
.stat-sub,
.form-hint,
.loan-stage-hint,
.list-row-note {
  color: var(--text-secondary);
}

.card,
.stat-card,
.nft-card,
.platform-row,
.bill-row-compact,
.modal,
.drawer,
.compact-details,
.hierarchy-header {
  background: rgba(255,255,255,.96);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.card,
.stat-card,
.nft-card,
.platform-row,
.bill-row-compact {
  position: relative;
}

.card::before,
.stat-card::before,
.nft-card::before,
.platform-row::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,107,214,.08), transparent 32%, rgba(10,132,255,.045));
  opacity: .7;
}

.card > *,
.stat-card > *,
.nft-card > *,
.platform-row > * {
  position: relative;
  z-index: 1;
}

.stat-card {
  border-top: 3px solid rgba(0,107,214,.45);
}

.stat-label,
.list-row-field > span,
.lender-row-field > span,
.borrower-loan-fields .list-row-field > span,
.platform-row-fields span,
.platform-row-controls label > span,
.nft-meta-label,
.bill-info-table .bit-k,
.kyc-field-key,
.detail-key,
.drawer-key {
  color: var(--text-secondary);
  font-weight: 650;
}

.stat-value,
.list-row-field > strong,
.lender-row-field > strong,
.borrower-loan-fields .list-row-field > strong,
.platform-row-fields strong,
.nft-meta-value,
.bill-info-table .bit-v,
.kyc-field-val,
.detail-val,
.drawer-val,
.list-id-value {
  color: var(--text-primary);
  font-weight: 750;
}

.metric-number {
  color: inherit;
}

.metric-unit,
.input-unit {
  color: var(--text-secondary);
}

.btn {
  font-weight: 700;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #006bd6, #1686ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,107,214,.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #0052b8, #0078e8);
  box-shadow: 0 0 0 3px rgba(0,107,214,.14), 0 12px 24px rgba(0,107,214,.26);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(0,107,214,.32);
  box-shadow: 0 4px 12px rgba(0,107,214,.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn-ghost {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--bg-hover);
  border-color: rgba(0,107,214,.42);
  color: var(--accent-hover);
}

.btn-success {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(7,134,81,.38);
}

.btn-success:hover,
.btn-success:focus-visible {
  background: #d8f1e5;
  color: #05673f;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: #ffe0de;
  color: #a51f16;
}

.btn-warning:hover,
.btn-warning:focus-visible {
  background: #ffe8ad;
  color: #7b5100;
}

.btn:disabled,
.btn.disabled {
  opacity: .48;
  filter: grayscale(.18);
}

.btn:focus-visible,
.nav-link:focus-visible,
.wallet-btn:focus-visible,
.nav-chain:focus-visible,
.tab:focus-visible,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,107,214,.16);
}

.form-input,
.form-select,
.form-textarea {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
  font-weight: 550;
}

.form-label,
.modal-title {
  color: var(--text-primary);
  font-weight: 750;
}

.badge {
  border: 1px solid currentColor;
  font-weight: 750;
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-blue { background: var(--accent-light); color: var(--accent); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-gray,
.badge-muted { background: #eef3f8; color: var(--text-secondary); }

thead th {
  color: var(--text-primary);
  background: #f2f7fd;
  font-weight: 750;
}

tbody td {
  color: var(--text-primary);
}

tbody tr:hover {
  background: #f3f9ff;
}

.tabs,
.compact-filter-tabs,
.pool-filter-tabs,
.admin-mint-subtabs {
  background: #e9f2fd;
  border: 1px solid var(--border-light);
}

.tab {
  color: var(--text-secondary);
  font-weight: 650;
}

.tab.active,
.admin-mint-subtab.active {
  background: #fff;
  color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(0,107,214,.12);
}

.alert-info {
  color: var(--accent-hover);
}

.modal-overlay {
  background: rgba(11,31,58,.36);
}

.modal-header,
.modal-footer,
.drawer-header {
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.nft-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.nft-card {
  border-radius: 16px;
  overflow: hidden;
}

.nft-card:hover {
  border-color: rgba(0,107,214,.42);
  box-shadow: 0 18px 36px rgba(0,107,214,.14);
}

.nft-cover {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 22% 20%, rgba(0,107,214,.30), transparent 34%),
    linear-gradient(135deg, #eaf5ff 0%, #f8fbff 46%, #dfeeff 100%);
}

.nft-cover-shade {
  background: linear-gradient(180deg, rgba(11,31,58,.02), rgba(11,31,58,.16) 72%, rgba(11,31,58,.34));
}

.nft-cover-token,
.nft-cover-bundle-tag,
.borrow-nft-overlay span {
  background: rgba(0,83,184,.88);
  color: #fff;
}

.nft-id,
.credit-nft-eyebrow,
.nft-cert-sub {
  color: var(--text-secondary);
}

.nft-title,
.nft-token-id,
.nft-bill-link,
.list-id-link {
  color: var(--accent-hover);
}

.nft-action-row {
  border-top-color: var(--border-light);
}

.credit-nft-card {
  border-color: rgba(0,107,214,.18);
  background:
    linear-gradient(135deg, rgba(0,107,214,.08), rgba(255,255,255,.96) 48%, rgba(7,134,81,.05)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.credit-nft-field {
  background: #f7fbff;
  border-color: var(--border-light);
}

.credit-nft-field span {
  color: var(--text-secondary);
}

.platform-row {
  box-shadow: var(--shadow-soft);
}

.platform-row:hover,
.bill-row-compact:hover,
.admin-list-row.bill-row-compact:hover,
.lender-list-row.bill-row-compact:hover {
  border-color: rgba(0,107,214,.34);
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(0,107,214,.10);
}

.admin-workbench-summary,
.admin-nft-mint-panel,
.admin-redeem-panel,
.pool-nft-section,
.pool-detail-section,
.pool-borrow-application {
  background: rgba(255,255,255,.96);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.borrower-dashboard-shell {
  max-width: 1240px;
}

.dashboard-page::before,
.dashboard-page::after {
  opacity: .55;
  filter: none;
}

.dashboard-topbar .btn-ghost,
.dashboard-nft-btn {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
  backdrop-filter: none;
}

.borrow-hero-card,
.borrow-hero-card.is-ready,
.borrow-hero-card.borrow-hero-card-onboarding {
  color: var(--text-primary);
  border-color: rgba(0,107,214,.22);
  background:
    radial-gradient(circle at 86% 14%, rgba(0,107,214,.13), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,249,255,.96));
  box-shadow: var(--shadow);
}

.borrow-hero-card::before {
  background:
    linear-gradient(90deg, rgba(0,107,214,.08) 1px, transparent 1px),
    linear-gradient(rgba(0,107,214,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .42;
}

.borrow-hero-card::after {
  border-color: rgba(0,107,214,.16);
  box-shadow:
    inset 0 0 0 42px rgba(0,107,214,.035),
    inset 0 0 0 86px rgba(7,134,81,.025);
}

.borrow-hero-title {
  color: var(--text-primary);
  font-weight: 850;
}

.borrow-hero-kicker,
.dashboard-pool-lender {
  color: var(--text-secondary);
  font-weight: 750;
}

.borrow-hero-amount {
  color: var(--accent-hover);
  text-shadow: none;
}

.borrow-hero-primary {
  background: linear-gradient(135deg, #006bd6, #0d8bff);
  border-color: rgba(0,107,214,.36);
  box-shadow: 0 14px 28px rgba(0,107,214,.22);
}

.borrow-hero-primary:hover,
.borrow-hero-primary:focus-visible {
  background: linear-gradient(135deg, #0052b8, #0078e8);
  box-shadow: 0 0 0 3px rgba(0,107,214,.16), 0 16px 32px rgba(0,107,214,.28);
}

.borrow-hero-chart-panel,
.borrow-quota-chart-wrap,
.borrow-quota-metrics.borrow-quota-metrics--hero > div,
.borrow-quota-metrics > div,
.borrow-hero-context {
  background: rgba(255,255,255,.78);
  border-color: rgba(0,107,214,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}

.borrow-quota-card {
  border-color: rgba(0,107,214,.18);
  background:
    linear-gradient(135deg, rgba(0,107,214,.07), rgba(255,255,255,.92) 48%, rgba(7,134,81,.05)),
    #fff;
}

.borrow-quota-chart {
  --borrow-used-color: #78a8dc;
  --borrow-available-color: #0aa866;
  background:
    radial-gradient(circle at center, #fff 0 60%, transparent 61%),
    conic-gradient(var(--borrow-used-color) 0deg var(--borrow-used-deg), var(--borrow-available-color) var(--borrow-used-deg) 360deg);
  border-color: rgba(0,107,214,.18);
  box-shadow: inset 0 0 0 1px rgba(0,107,214,.06), 0 12px 24px rgba(0,107,214,.10);
}

.borrow-quota-chart.is-empty {
  background:
    radial-gradient(circle at center, #fff 0 60%, transparent 61%),
    conic-gradient(#d9e5f2 0deg 360deg);
}

.borrow-quota-chart-center span,
.borrow-quota-metrics span,
.borrow-quota-metrics small,
.borrow-quota-metrics .borrow-quota-metric > span,
.borrow-hero-context {
  color: var(--text-secondary);
}

.borrow-quota-chart-center strong,
.borrow-quota-available strong {
  color: var(--green);
}

.borrow-quota-scope[data-quota-selected="used"] .borrow-quota-chart-center strong {
  color: var(--accent);
}

.borrow-quota-scope[data-quota-selected="total"] .borrow-quota-chart-center strong {
  color: var(--text-primary);
}

.borrow-quota-legend-item {
  background: #fff;
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.borrow-quota-legend-item:hover,
.borrow-quota-legend-item.is-selected,
.borrow-quota-metric.is-selected {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.borrow-quota-scope[data-quota-focus] .borrow-quota-chart {
  box-shadow: inset 0 0 0 1px rgba(0,107,214,.08), 0 14px 28px rgba(0,107,214,.14);
}

.borrow-quota-scope[data-quota-focus="total"] .borrow-quota-chart {
  box-shadow: inset 0 0 0 2px rgba(0,107,214,.16), 0 14px 28px rgba(0,107,214,.14);
}

#jnft-grid-dashboard {
  gap: 14px;
}

#jnft-grid-dashboard .dashboard-pool-row,
#jnft-grid-dashboard .dashboard-pool-row.dashboard-pool-row-empty {
  grid-template-columns: minmax(0, .95fr) minmax(0, .95fr) minmax(0, 1.25fr);
  min-height: 142px;
  border-color: rgba(0,107,214,.16);
  background:
    linear-gradient(90deg, rgba(0,107,214,.045) 1px, transparent 1px),
    linear-gradient(rgba(0,107,214,.035) 1px, transparent 1px),
    linear-gradient(135deg, #fff, #f8fbff);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: var(--shadow-soft);
}

#jnft-grid-dashboard .dashboard-pool-row:hover {
  border-color: rgba(0,107,214,.36);
  background:
    radial-gradient(circle at 72% 10%, rgba(0,107,214,.10), transparent 30%),
    linear-gradient(90deg, rgba(0,107,214,.045) 1px, transparent 1px),
    linear-gradient(rgba(0,107,214,.035) 1px, transparent 1px),
    linear-gradient(135deg, #fff, #f4f9ff);
  background-size: auto, 22px 22px, 22px 22px, auto;
  box-shadow: 0 18px 38px rgba(0,107,214,.14);
}

#jnft-grid-dashboard .dashboard-pool-row::before {
  background: linear-gradient(180deg, #006bd6, #24a3ff);
  opacity: .9;
}

#jnft-grid-dashboard .dashboard-pool-row::after {
  inset: -40% 0 auto auto;
  max-width: 42%;
  background: radial-gradient(circle, rgba(0,107,214,.12), transparent 64%);
}

#jnft-grid-dashboard .dashboard-pool-main .list-id-label,
#jnft-grid-dashboard .dashboard-pool-lender,
#jnft-grid-dashboard .dashboard-pool-brief,
#jnft-grid-dashboard .dashboard-pool-used,
#jnft-grid-dashboard .dashboard-pool-flow-label,
#jnft-grid-dashboard .dashboard-pool-flow-step {
  color: var(--text-secondary);
  font-weight: 750;
}

#jnft-grid-dashboard .dashboard-pool-main .list-id-value {
  color: var(--accent-hover);
  font-weight: 850;
}

#jnft-grid-dashboard .dashboard-pool-available {
  background:
    radial-gradient(circle at 78% 20%, rgba(7,134,81,.10), transparent 36%),
    linear-gradient(135deg, #f3fff8, #ffffff);
  border-color: rgba(7,134,81,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(7,134,81,.08);
}

#jnft-grid-dashboard .dashboard-pool-available span,
#jnft-grid-dashboard .dashboard-pool-available-label {
  color: var(--text-secondary);
  font-weight: 750;
}

#jnft-grid-dashboard .dashboard-pool-available strong {
  color: var(--green);
  text-shadow: none;
}

#jnft-grid-dashboard .dashboard-pool-available em {
  color: var(--text-secondary);
}

#jnft-grid-dashboard .dashboard-pool-util {
  background: #e6eef7;
  border-color: #d5e2ef;
}

#jnft-grid-dashboard .dashboard-pool-util i {
  background: linear-gradient(90deg, #006bd6, #24a3ff);
  box-shadow: 0 0 10px rgba(0,107,214,.22);
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field {
  background: rgba(255,255,255,.72);
  border-left-color: rgba(0,107,214,.18);
}

#jnft-grid-dashboard .dashboard-pool-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#jnft-grid-dashboard .dashboard-pool-side,
#jnft-grid-dashboard .dashboard-pool-meta,
#jnft-grid-dashboard .dashboard-pool-actions {
  min-width: 0;
}

#jnft-grid-dashboard .dashboard-pool-flow {
  background: rgba(255,255,255,.74);
  border-color: rgba(0,107,214,.14);
}

#jnft-grid-dashboard .dashboard-pool-flow-step {
  background: #fff;
  border-color: var(--border-light);
}

#jnft-grid-dashboard .dashboard-pool-flow-step.is-active {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-color: rgba(0,107,214,.40);
}

#jnft-grid-dashboard .dashboard-pool-flow-step.is-done {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(7,134,81,.22);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-secondary,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-ghost {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border);
  backdrop-filter: none;
}

#jnft-grid-dashboard .dashboard-pool-detail-btn:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn:focus-visible {
  background: var(--bg-hover);
  border-color: rgba(0,107,214,.42);
  color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(0,107,214,.12), 0 10px 20px rgba(0,107,214,.12);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary {
  background: linear-gradient(135deg, #006bd6, #1686ff);
  border-color: rgba(0,107,214,.62);
  color: #fff;
}

.pool-borrow-available-badge {
  background: #f2fff8;
  border-color: rgba(7,134,81,.24);
  color: var(--text-secondary);
}

.pool-borrow-available-badge strong {
  color: var(--green);
}

@media (max-width: 1200px) {
  #jnft-grid-dashboard .dashboard-pool-row,
  #jnft-grid-dashboard .dashboard-pool-row.dashboard-pool-row-empty {
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  }
}

@media (max-width: 960px) {
  #jnft-grid-dashboard .dashboard-pool-row,
  #jnft-grid-dashboard .dashboard-pool-row.dashboard-pool-row-empty {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* TRADEGO VISUAL QA GUARDRAILS: keep detail, modal and NFT surfaces on official-blue-white. */
.navbar {
  background: rgba(255,255,255,.96);
}

.text-muted,
.page-subtitle,
.form-hint,
.stat-sub,
.list-id-label,
.nft-id,
.credit-nft-eyebrow,
.credit-nft-cover-head,
.credit-nft-cover-foot,
.credit-nft-cover-main em,
.credit-nft-cover-amount small,
.detail-breadcrumb,
.detail-page .detail-key,
.bill-info-table .bit-k,
.list-row-field > span,
.lender-row-field > span,
.borrower-loan-fields .list-row-field > span,
.loan-stage-hint,
.list-row-note,
.risk-formula,
.risk-legend,
.metric-unit {
  color: var(--text-secondary);
  opacity: 1;
}

.stat-value,
.metric-number,
.list-id-value,
.nft-title,
.nft-token-id,
.nft-meta-value,
.detail-page .detail-val,
.detail-page .font-mono,
.bill-info-table .bit-v,
.credit-nft-title,
.credit-nft-field strong,
.credit-nft-field-value {
  color: var(--text-primary);
  opacity: 1;
}

.detail-page-head,
.detail-status-card,
.detail-page-section,
.detail-summary-card,
.detail-action-bar,
.loan-detail-header,
.loan-detail-id-card,
.loan-detail-kpi-card,
.loan-detail-info-card,
.loan-detail-timeline-section,
.loan-detail-history-section,
.pool-detail-section,
.pool-nft-section,
.borrower-record-page-section,
.hierarchy-header,
.compact-details,
.bill-attachment-chip {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.detail-summary-card,
.loan-detail-header,
.loan-detail-id-card {
  background:
    radial-gradient(circle at 86% 12%, rgba(0, 107, 214, .08), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.detail-page-grid-media {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
}

.bill-nft-detail-shell.detail-page-grid-media {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.detail-page-media {
  max-width: 280px;
}

.bill-nft-detail-page .detail-page-media {
  max-width: 360px;
}

.detail-page-media .nft-cover,
.credit-nft-card .credit-nft-cover {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.modal {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(16, 54, 94, .22);
}

.modal-header,
.modal-footer,
.drawer-header,
.pledge-nft-modal .modal-footer,
.pledge-nft-fixed-top,
.pledge-nft-fixed-bottom {
  background: #fff;
  border-color: var(--border-light);
}

.modal-body {
  background: #fff;
}

.modal-title {
  color: var(--text-primary);
  font-weight: 800;
}

.pledge-nft-modal {
  height: auto;
  min-height: 0;
  max-height: min(760px, calc(100vh - 40px));
}

.pledge-nft-modal .modal-body.pledge-nft-body {
  background: #fff;
}

.pledge-nft-toolbar {
  background: #f7fbff;
  border-color: var(--border);
}

.pledge-nft-scroll {
  padding: 14px 20px 18px;
}

.pledge-nft-grid,
.batch-redeem-grid,
.detail-page-nft-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: start;
}

.pledge-nft-select-card,
.batch-redeem-card,
.nft-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.pledge-nft-select-card {
  position: relative;
  overflow: hidden;
}

.pledge-nft-select-card:hover,
.batch-redeem-card:hover,
.nft-card:hover {
  border-color: rgba(0, 107, 214, .42);
  box-shadow: 0 16px 34px rgba(0, 107, 214, .14);
}

.pledge-nft-check,
.batch-redeem-check {
  position: static;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.pledge-nft-select-card .nft-cover-token,
.batch-redeem-card .nft-cover-token {
  top: 12px;
  left: 50%;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  white-space: nowrap;
}

.pledge-nft-select-card .nft-selection-row,
.batch-redeem-card .nft-selection-row {
  background: linear-gradient(180deg, rgba(248,252,255,.96), rgba(232,243,255,.86));
  border-bottom-color: rgba(0,107,214,.14);
}

.nft-cover {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 107, 214, .22), transparent 34%),
    linear-gradient(135deg, #eaf5ff 0%, #ffffff 48%, #dcecff 100%);
}

.nft-cover-shade {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,107,214,.10));
}

.nft-cover-token,
.nft-cover-bundle-tag,
.nft-cover-share-tag,
.borrow-nft-overlay span {
  background: rgba(255,255,255,.92);
  color: var(--accent-hover);
  border: 1px solid rgba(0,107,214,.24);
  box-shadow: 0 6px 14px rgba(16, 54, 94, .12);
  text-shadow: none;
}

.nft-cover-route {
  color: var(--text-secondary);
  text-shadow: none;
}

.nft-body,
.credit-nft-body {
  background: #fff;
}

.nft-meta-label,
.credit-nft-field span {
  color: var(--text-secondary);
  opacity: 1;
}

.credit-nft-card {
  grid-template-columns: minmax(160px, 180px) minmax(0, 1fr);
  background: #fff;
  border-color: rgba(0, 107, 214, .22);
  box-shadow: var(--shadow-soft);
}

.credit-nft-cover {
  background:
    radial-gradient(circle at 24% 18%, rgba(0, 107, 214, .18), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(7, 134, 81, .12), transparent 36%),
    linear-gradient(145deg, #f4faff 0%, #ffffff 54%, #e7f2ff 100%);
  border-color: rgba(0, 107, 214, .22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
}

.credit-nft-cover-grid {
  opacity: .18;
  background-image:
    linear-gradient(rgba(0,107,214,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,107,214,.12) 1px, transparent 1px);
}

.credit-nft-cover-glow {
  background: radial-gradient(circle at 50% 48%, rgba(7, 134, 81, .10), transparent 36%);
}

.credit-nft-cover::after {
  border-color: rgba(0,107,214,.12);
}

.credit-nft-cover-title,
.credit-nft-cover-head .credit-nft-cover-label {
  color: var(--text-primary);
  text-shadow: none;
}

.credit-nft-cover-main strong {
  color: var(--accent-hover);
  text-shadow: none;
}

.credit-nft-field {
  background: #f7fbff;
  border-color: var(--border-light);
}

.borrower-hub-tabs-wrap {
  background: rgba(243,247,252,.96);
  backdrop-filter: blur(10px);
}

.borrow-nft-overlay {
  background: linear-gradient(180deg, rgba(0,107,214,.10), rgba(255,255,255,.02));
}

.batch-redeem-card.selected,
.borrow-nft-selected,
.pledge-nft-select-card:has(input:checked) {
  border-color: rgba(0,107,214,.78) !important;
  background: linear-gradient(180deg, rgba(0,107,214,.08), #fff 52%);
  box-shadow: 0 0 0 3px rgba(0,107,214,.14), 0 18px 36px rgba(0,107,214,.14);
}

.modal-footer .btn-primary:not(:disabled),
.pledge-nft-modal .modal-footer .btn-primary:not(:disabled) {
  background: linear-gradient(135deg, #006bd6, #1686ff);
  color: #fff;
  opacity: 1;
  filter: none;
}

.btn:disabled,
.btn.disabled {
  opacity: .62;
  filter: grayscale(.08);
}

/* TRADEGO LIST QA GUARDRAILS: unify borrower/admin/lender list rows on blue-white readable cards. */
.bill-row-list,
.bill-row-list-compact,
.pool-loan-ledger-list,
.group-loan-list {
  gap: 10px;
}

.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.borrower-loan-row.bill-row-compact,
.borrower-unminted-row.bill-row-compact,
.repay-list-row.bill-row-compact,
.bill-library-card.bill-row-compact,
.bill-operation-card.bill-row-compact,
.borrow-pool-picker-row.bill-row-compact,
.redeem-choice-row.bill-row-compact {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(136, 160, 187, .24);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(0, 107, 214, .045), rgba(255, 255, 255, .98) 38%),
    #fff;
  color: var(--text-primary);
  box-shadow: 0 10px 26px rgba(16, 54, 94, .08), inset 3px 0 0 rgba(0, 107, 214, .16);
}

.bill-row-compact:hover,
.admin-list-row.bill-row-compact:hover,
.lender-list-row.bill-row-compact:hover,
.borrower-loan-row.bill-row-compact:hover,
.borrower-unminted-row.bill-row-compact:hover,
.repay-list-row.bill-row-compact:hover,
.bill-library-card.bill-row-compact:hover,
.bill-operation-card.bill-row-compact:hover,
.borrow-pool-picker-row.bill-row-compact:hover,
.redeem-choice-row.bill-row-compact:hover {
  border-color: rgba(0, 107, 214, .36);
  background:
    linear-gradient(90deg, rgba(0, 107, 214, .075), #f8fcff 42%),
    #fff;
  box-shadow: 0 14px 30px rgba(0, 107, 214, .12), inset 3px 0 0 rgba(0, 107, 214, .36);
}

.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact {
  grid-template-columns: minmax(210px, .88fr) minmax(0, 1.8fr) minmax(148px, max-content);
  align-items: center;
  gap: 18px;
}

.borrower-loan-row.bill-row-compact {
  grid-template-columns: minmax(210px, 230px) minmax(0, 1fr) minmax(148px, max-content);
}

.bill-row-main,
.loan-row-main,
.bill-row-meta,
.loan-row-meta,
.bill-row-actions,
.list-row-actions {
  min-width: 0;
}

.admin-list-row .bill-row-meta,
.lender-list-row .bill-row-meta,
.borrower-loan-row .bill-row-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, max-content);
  align-items: center;
  gap: 12px 18px;
  overflow: visible;
}

.admin-list-row .list-row-fields,
.lender-list-row .list-row-fields,
.borrower-loan-fields,
.borrower-unminted-row .list-row-fields,
.repay-list-row .list-row-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  align-items: start;
  gap: 10px 18px;
  width: 100%;
  min-width: 0;
}

.admin-list-row-loan .list-row-fields,
.lender-list-row .list-row-fields {
  grid-template-columns: minmax(136px, 1.05fr) minmax(96px, .72fr) minmax(112px, .8fr) minmax(146px, 1fr) minmax(122px, .9fr);
}

.admin-list-row .bill-row-actions,
.lender-list-row .bill-row-actions,
.borrower-loan-row .bill-row-actions,
.repay-list-row .bill-row-actions,
.list-row-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.list-id-label,
.list-row-field > span,
.lender-row-field > span,
.borrower-loan-fields .list-row-field > span,
.loan-stage-hint,
.list-row-note,
.text-muted,
.text-xs.text-muted {
  color: #40546c;
  opacity: 1;
}

.list-id-label,
.list-row-field > span,
.borrower-loan-fields .list-row-field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}

.list-id-value,
.list-row-field > strong,
.lender-row-field > strong,
.borrower-loan-fields .list-row-field > strong,
.loan-date-stack span,
.bill-row-main .font-mono,
.bill-row-main strong {
  color: #102033;
  opacity: 1;
  font-weight: 760;
}

.admin-list-row .list-id-value,
.lender-list-row .list-id-value,
.borrower-loan-row .loan-row-id .list-id-value,
.borrower-unminted-row .list-id-value,
.repay-list-row .list-id-value {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(0, 107, 214, .24);
  border-radius: 999px;
  background: rgba(0, 107, 214, .08);
  color: #0057b8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: none;
}

.list-id-link:hover,
.list-id-link:focus-visible {
  color: var(--accent-hover);
  border-color: rgba(0, 107, 214, .42);
  background: rgba(0, 107, 214, .12);
}

.list-row-field-amount > strong,
.borrower-loan-fields .list-row-field-amount > strong {
  color: #0b2441;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.list-row-field-date > strong,
.borrower-loan-fields .list-row-field-date > strong,
.admin-list-row .list-row-field-date > strong,
.lender-list-row .list-row-field-date > strong,
.loan-date-stack {
  color: #17324d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 760;
  text-overflow: clip;
  white-space: normal;
}

.loan-date-stack {
  gap: 2px;
  line-height: 1.28;
}

.list-row-status,
.borrower-loan-status {
  align-items: flex-start;
  justify-content: center;
  min-width: 118px;
  max-width: 190px;
}

.list-row-status .badge,
.borrower-loan-status .badge,
.admin-workbench-metrics .badge {
  border-width: 1px;
  box-shadow: none;
  font-weight: 800;
  letter-spacing: 0;
}

.badge-yellow { background: #fff7db; color: #8a5b00; border-color: rgba(185, 129, 5, .36); }
.badge-blue { background: #e8f3ff; color: #0057b8; border-color: rgba(0, 107, 214, .32); }
.badge-green { background: #e7f7ef; color: #05673f; border-color: rgba(7, 134, 81, .30); }
.badge-red { background: #fff0ee; color: #a51f16; border-color: rgba(217, 45, 32, .30); }
.badge-purple { background: #f3edff; color: #6941c6; border-color: rgba(105, 65, 198, .28); }
.badge-gray,
.badge-muted { background: #eef3f8; color: #40546c; border-color: rgba(136, 160, 187, .30); }

.tabs,
.admin-filter-tabs,
.admin-list-tabs,
.compact-filter-tabs,
.pool-filter-tabs,
.borrower-hub-header-tabs,
.logs-chip-group,
.my-txs-status-tabs,
.bill-library-status-tabs,
.bill-library-main-tabs {
  background: #eaf3fe;
  border-color: #d6e5f5;
}

.tab,
.logs-chip {
  color: #40546c;
  font-weight: 750;
  opacity: 1;
}

.tab.active,
.logs-chip.active {
  background: #fff;
  color: #0057b8;
  border-color: rgba(0, 107, 214, .38);
  box-shadow: 0 4px 14px rgba(0, 107, 214, .13);
}

.logs-chip.active {
  background: var(--accent);
  color: #fff;
}

.btn-secondary,
.btn-ghost {
  background: #fff;
  color: #0057b8;
  border-color: rgba(0, 107, 214, .30);
  opacity: 1;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #eaf4ff;
  color: var(--accent-hover);
  border-color: rgba(0, 107, 214, .46);
}

.btn-action-danger {
  color: #a51f16;
  border-color: rgba(217, 45, 32, .32);
}

.btn-action-danger:hover,
.btn-action-danger:focus-visible {
  color: #7a1a12;
  border-color: rgba(217, 45, 32, .48);
  background: #fff0ee;
}

.btn:disabled,
.btn.disabled {
  opacity: .58;
  color: #6b7f95;
}

@media (max-width: 1180px) {
  .admin-list-row.bill-row-compact,
  .lender-list-row.bill-row-compact,
  .borrower-loan-row.bill-row-compact {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  }

  .admin-list-row .bill-row-actions,
  .lender-list-row .bill-row-actions,
  .borrower-loan-row .bill-row-actions {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .admin-list-row.bill-row-compact,
  .lender-list-row.bill-row-compact,
  .borrower-loan-row.bill-row-compact,
  .borrower-unminted-row.bill-row-compact,
  .repay-list-row.bill-row-compact {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admin-list-row .bill-row-meta,
  .lender-list-row .bill-row-meta,
  .borrower-loan-row .bill-row-meta {
    grid-template-columns: 1fr;
  }

  .admin-list-row-loan .list-row-fields,
  .lender-list-row .list-row-fields,
  .admin-list-row .list-row-fields,
  .borrower-loan-fields {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
  }

  .admin-list-row .bill-row-actions,
  .lender-list-row .bill-row-actions,
  .borrower-loan-row .bill-row-actions {
    grid-column: auto;
    justify-self: stretch;
    justify-content: stretch;
    width: 100%;
  }
}

/* TRADEGO LIST UX GUARDRAILS: fintech card rhythm for borrower, admin and lender lists. */
.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.borrower-loan-row.bill-row-compact,
.borrower-unminted-row.bill-row-compact,
.repay-list-row.bill-row-compact,
.bill-library-card.bill-row-compact,
.bill-operation-card.bill-row-compact,
.lender-overview-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.bill-row-compact::before,
.admin-list-row.bill-row-compact::before,
.lender-list-row.bill-row-compact::before,
.borrower-loan-row.bill-row-compact::before,
.borrower-unminted-row.bill-row-compact::before,
.repay-list-row.bill-row-compact::before,
.bill-library-card.bill-row-compact::before,
.bill-operation-card.bill-row-compact::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #1686ff, rgba(0, 107, 214, .18));
  opacity: .72;
  z-index: -1;
}

.bill-row-compact::after,
.admin-list-row.bill-row-compact::after,
.lender-list-row.bill-row-compact::after,
.borrower-loan-row.bill-row-compact::after,
.borrower-unminted-row.bill-row-compact::after,
.repay-list-row.bill-row-compact::after,
.bill-library-card.bill-row-compact::after,
.bill-operation-card.bill-row-compact::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -56px;
  width: 170px;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 107, 214, .085), transparent 66%);
  pointer-events: none;
  z-index: -1;
}

.bill-row-compact:hover,
.admin-list-row.bill-row-compact:hover,
.lender-list-row.bill-row-compact:hover,
.borrower-loan-row.bill-row-compact:hover,
.borrower-unminted-row.bill-row-compact:hover,
.repay-list-row.bill-row-compact:hover,
.bill-library-card.bill-row-compact:hover,
.bill-operation-card.bill-row-compact:hover,
.lender-overview-row:hover {
  transform: translateY(-2px);
}

.bill-row-main,
.loan-row-main {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
}

.admin-list-row .bill-row-main,
.lender-list-row .bill-row-main,
.borrower-loan-row .borrower-loan-identity,
.borrower-unminted-row .bill-row-main,
.repay-list-row .bill-row-main {
  padding-right: 18px;
  border-right: 1px solid rgba(136, 160, 187, .18);
}

.admin-list-row .bill-row-meta,
.lender-list-row .bill-row-meta,
.borrower-loan-row .bill-row-meta,
.repay-list-row .bill-row-meta {
  padding: 2px 0;
}

.admin-list-row .list-row-field,
.lender-list-row .list-row-field,
.borrower-loan-fields .list-row-field,
.borrower-unminted-row .list-row-field,
.repay-list-row .list-row-field {
  position: relative;
  min-height: 42px;
  padding: 2px 0 2px 10px;
  border-left: 1px solid rgba(136, 160, 187, .16);
}

.admin-list-row .list-row-field-amount,
.lender-list-row .list-row-field-amount,
.borrower-loan-fields .list-row-field-amount,
.repay-list-row .list-row-field-amount {
  padding: 8px 10px;
  border: 1px solid rgba(0, 107, 214, .16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(232, 243, 255, .88), rgba(255, 255, 255, .92));
}

.list-row-field-rate > strong,
.borrower-loan-fields .list-row-field-rate > strong {
  color: #0057b8;
  font-weight: 850;
}

.list-row-field-term > strong,
.borrower-loan-fields .list-row-field-term > strong {
  color: #17324d;
  font-weight: 780;
}

.list-row-actions .btn,
.bill-row-actions .btn {
  border-radius: 999px;
  font-weight: 760;
}

.list-row-actions .btn-primary,
.bill-row-actions .btn-primary {
  min-width: 98px;
  box-shadow: 0 8px 18px rgba(0, 107, 214, .20);
}

.list-row-actions .btn-ghost,
.bill-row-actions .btn-ghost,
.list-row-actions .btn-secondary,
.bill-row-actions .btn-secondary {
  box-shadow: 0 5px 14px rgba(16, 54, 94, .06);
}

.admin-workbench-summary,
.lender-records-head,
.lender-overview-filter {
  border-color: rgba(136, 160, 187, .20);
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 107, 214, .08), transparent 30%),
    linear-gradient(135deg, #fff, #f6fbff);
  box-shadow: 0 10px 24px rgba(16, 54, 94, .07);
}

.lender-overview-kpi-grid {
  gap: 14px;
}

.lender-overview-kpi-grid .stat-card {
  border-color: rgba(136, 160, 187, .22);
  background:
    radial-gradient(circle at 88% 16%, rgba(0, 107, 214, .08), transparent 34%),
    linear-gradient(135deg, #fff, #f8fcff);
  box-shadow: 0 12px 28px rgba(16, 54, 94, .08);
}

.lender-overview-filter {
  padding: 10px 12px;
  border-radius: 18px;
}

.lender-overview-filter .logs-chip-group,
.lender-records-head .logs-chip-group {
  background: rgba(232, 243, 255, .86);
  border-color: rgba(0, 107, 214, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.lender-overview-grid-head {
  padding: 2px 18px 10px;
  color: #40546c;
  font-weight: 800;
}

.lender-overview-row {
  min-height: 96px;
  padding: 18px 20px;
  border-color: rgba(136, 160, 187, .24);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(0, 107, 214, .052), #fff 34%),
    #fff;
  box-shadow: 0 10px 26px rgba(16, 54, 94, .08), inset 3px 0 0 rgba(0, 107, 214, .18);
}

.lender-overview-row:hover {
  border-color: rgba(0, 107, 214, .38);
  box-shadow: 0 16px 32px rgba(0, 107, 214, .13), inset 3px 0 0 rgba(0, 107, 214, .42);
}

.lender-overview-cell-id,
.lender-overview-company {
  padding: 2px 0;
}

.lender-overview-cell:not(.lender-overview-cell-id):not(.lender-overview-status):not(.lender-overview-company) {
  padding-left: 12px;
  border-left: 1px solid rgba(136, 160, 187, .16);
}

.lender-overview-amount,
.lender-overview-value {
  color: #102033;
  font-weight: 850;
}

.lender-overview-cell:nth-child(3) .lender-overview-value {
  color: #0057b8;
}

.lender-overview-status .badge {
  border-radius: 999px;
  padding-inline: 10px;
}

.my-bill-record-card,
.nft-card,
.credit-nft-card {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.my-bill-record-card:hover,
.nft-card:hover,
.credit-nft-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .admin-list-row .bill-row-main,
  .lender-list-row .bill-row-main,
  .borrower-loan-row .borrower-loan-identity,
  .borrower-unminted-row .bill-row-main,
  .repay-list-row .bill-row-main {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .admin-list-row .list-row-field,
  .lender-list-row .list-row-field,
  .borrower-loan-fields .list-row-field,
  .borrower-unminted-row .list-row-field,
  .repay-list-row .list-row-field,
  .lender-overview-cell:not(.lender-overview-cell-id):not(.lender-overview-status):not(.lender-overview-company) {
    border-left: 0;
    padding-left: 0;
  }

  .list-row-status,
  .borrower-loan-status {
    padding-left: 13px;
  }
}

/* TRADEGO FINAL GLOBAL POLISH: restrained blue-white spacing, hierarchy and control consistency. */
:root {
  --blue: var(--accent);
  --text: var(--text-primary);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --surface-soft: #f8fbff;
  --surface-tint: #eef6ff;
  --shadow-soft: 0 10px 26px rgba(16, 54, 94, .075);
  --shadow-hover: 0 16px 34px rgba(0, 107, 214, .12);
  --focus-ring: 0 0 0 3px rgba(0, 107, 214, .14);
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(0, 107, 214, .075), transparent 28rem),
    linear-gradient(180deg, #f6f9fd 0%, var(--bg-base) 48%, #f2f6fb 100%);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
}

.page:not(#page-login) {
  background: transparent;
}

.container,
#page-admin-pool .container {
  max-width: 1180px;
  padding: 30px 24px 42px;
}

.borrower-dashboard-shell,
.content-align-frame,
.detail-page,
.detail-list-page {
  max-width: 1080px;
}

.page-title {
  margin-bottom: 6px;
  color: #102033;
  font-size: clamp(21px, 2.1vw, 25px);
  font-weight: 820;
  letter-spacing: -.025em;
  line-height: 1.2;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.page-subtitle,
.section-subtitle,
.text-muted {
  color: #52657d;
}

h3 {
  color: #102033;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.01em;
}

h4,
.stat-label,
.form-label,
.list-id-label,
.list-row-field > span,
.lender-row-field > span,
.borrower-loan-fields .list-row-field > span,
.detail-key,
.drawer-key {
  color: #52657d;
  font-weight: 720;
  letter-spacing: .01em;
}

.card,
.stat-card,
.nft-card,
.jnft-unit-card,
.policy-card,
.admin-dash-panel,
.pool-nft-section,
.lending-provider-card,
.fund-pool-overview,
.detail-page-head,
.detail-status-card,
.detail-page-section,
.detail-summary-card,
.detail-action-bar,
.loan-detail-header,
.loan-detail-id-card,
.loan-detail-kpi-card,
.loan-detail-info-card,
.loan-detail-timeline-section,
.loan-detail-history-section,
.drawer,
.modal {
  border-color: rgba(136, 160, 187, .24);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.card,
.stat-card,
.nft-card,
.credit-nft-card,
.my-bill-record-card,
.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.borrower-loan-row.bill-row-compact,
.borrower-unminted-row.bill-row-compact,
.repay-list-row.bill-row-compact,
.bill-library-card.bill-row-compact,
.bill-operation-card.bill-row-compact,
.lender-overview-row {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.card:hover,
.stat-card:hover,
.nft-card:hover,
.credit-nft-card:hover,
.my-bill-record-card:hover,
.bill-row-compact:hover,
.admin-list-row.bill-row-compact:hover,
.lender-list-row.bill-row-compact:hover,
.borrower-loan-row.bill-row-compact:hover,
.borrower-unminted-row.bill-row-compact:hover,
.repay-list-row.bill-row-compact:hover,
.bill-library-card.bill-row-compact:hover,
.bill-operation-card.bill-row-compact:hover,
.lender-overview-row:hover {
  border-color: rgba(0, 107, 214, .34);
  box-shadow: var(--shadow-hover);
}

.card-sm,
.stat-card,
.loan-detail-kpi-card,
.loan-detail-info-card,
.detail-page-section {
  padding: 16px;
}

.stat-grid,
.risk-metrics,
.nft-grid,
.bill-row-list,
.bill-row-list-compact,
.admin-nft-mint-list,
.loan-operation-history,
.nft-lifecycle-list {
  gap: 14px;
}

.stat-value,
.metric-number,
.list-id-value,
.list-row-field > strong,
.lender-row-field > strong,
.borrower-loan-fields .list-row-field > strong,
.detail-val,
.drawer-val,
.nft-meta-value,
.profile-v {
  color: #102033;
  font-variant-numeric: tabular-nums;
}

.btn,
.nav-link,
.wallet-btn,
.nav-chain,
.form-input,
.form-select,
.form-textarea,
.tab,
.logs-chip,
.radio-btn,
.modal-close {
  border-radius: 999px;
}

.btn {
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid transparent;
  font-weight: 720;
  letter-spacing: 0;
  box-shadow: none;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  min-height: 44px;
  padding: 12px 20px;
}

.btn-primary {
  border-color: rgba(0, 107, 214, .55);
  background: linear-gradient(135deg, #006bd6, #1686ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 107, 214, .18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #005fc4, #0879e8);
  box-shadow: 0 10px 24px rgba(0, 107, 214, .24);
}

.btn-secondary,
.btn-ghost {
  background: #fff;
  color: #0057b8;
  border-color: rgba(0, 107, 214, .28);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface-tint);
  color: var(--accent-hover);
  border-color: rgba(0, 107, 214, .44);
}

.btn-success:hover {
  background: #dff6eb;
  color: #05673f;
}

.btn-danger:hover {
  background: #fff0ee;
  color: #a51f16;
}

.btn:focus-visible,
.nav-link:focus-visible,
.wallet-btn:focus-visible,
.nav-chain:focus-visible,
.modal-close:focus-visible,
.tab:focus-visible,
.logs-chip:focus-visible,
.radio-btn:focus-visible,
.list-id-link:focus-visible,
.nft-bill-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:disabled,
.btn.disabled,
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: .58;
  cursor: not-allowed;
  filter: grayscale(.08);
}

.form-input,
.form-select,
.form-textarea {
  min-height: 38px;
  border-color: rgba(136, 160, 187, .30);
  background: #fff;
  color: #102033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(0, 107, 214, .34);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(0, 107, 214, .52);
  box-shadow: var(--focus-ring);
}

.input-unit {
  background: #f4f8fd;
  border-color: rgba(136, 160, 187, .24);
  color: #52657d;
}

.badge {
  min-height: 22px;
  padding: 3px 9px;
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
  font-weight: 760;
  line-height: 1.25;
}

.badge-yellow { background: #fff7db; color: #8a5b00; border-color: rgba(185, 129, 5, .34); }
.badge-blue { background: #e8f3ff; color: #0057b8; border-color: rgba(0, 107, 214, .30); }
.badge-green { background: #e7f7ef; color: #05673f; border-color: rgba(7, 134, 81, .28); }
.badge-red { background: #fff0ee; color: #a51f16; border-color: rgba(217, 45, 32, .28); }
.badge-orange { background: #fff4e8; color: #a84a0f; border-color: rgba(223, 107, 22, .30); }
.badge-purple { background: #f3edff; color: #6941c6; border-color: rgba(105, 65, 198, .26); }
.badge-gray,
.badge-muted { background: #eef3f8; color: #40546c; border-color: rgba(136, 160, 187, .28); }

.tabs,
.admin-filter-tabs,
.admin-list-tabs,
.compact-filter-tabs,
.pool-filter-tabs,
.borrower-hub-header-tabs,
.logs-chip-group,
.my-txs-status-tabs,
.bill-library-status-tabs,
.bill-library-main-tabs {
  padding: 4px;
  border: 1px solid #d6e5f5;
  border-radius: 999px;
  background: #eaf3fe;
}

.tab,
.logs-chip {
  min-height: 30px;
  color: #40546c;
  font-weight: 720;
}

.tab:hover,
.logs-chip:hover {
  background: rgba(255, 255, 255, .72);
  color: #0057b8;
}

.tab.active,
.logs-chip.active {
  background: #fff;
  color: #0057b8;
  border-color: rgba(0, 107, 214, .34);
  box-shadow: 0 5px 14px rgba(0, 107, 214, .12);
}

.logs-chip.active {
  background: var(--accent);
  color: #fff;
}

/* Pure tab/filter rails should wrap the controls, not span an empty row. */
.tabs.admin-filter-tabs.content-align-frame,
.tabs.admin-list-tabs.content-align-frame,
.tabs.compact-filter-tabs.content-align-frame {
  display: inline-flex;
  width: max-content;
  max-width: min(100%, 1040px);
  margin-left: max(0px, calc((100% - 1040px) / 2));
  margin-right: auto;
}

.tabs.admin-filter-tabs.content-align-frame .tab,
.tabs.admin-list-tabs.content-align-frame .tab,
.tabs.compact-filter-tabs.content-align-frame .tab {
  flex: 0 0 auto;
  min-width: 92px;
  white-space: nowrap;
  border-radius: 999px;
}

.tabs.admin-filter-tabs.content-align-frame .tab.active,
.tabs.admin-list-tabs.content-align-frame .tab.active,
.tabs.compact-filter-tabs.content-align-frame .tab.active {
  background: var(--accent);
  color: #fff;
  border-color: rgba(0, 107, 214, .34);
  box-shadow: 0 8px 18px rgba(0, 107, 214, .18);
}

.lender-records-head.content-align-frame:not(.card) {
  width: max-content;
  max-width: min(100%, 1040px);
  margin-left: max(0px, calc((100% - 1040px) / 2));
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.lender-records-head.content-align-frame:not(.card) .logs-filter-group,
.lender-records-head.content-align-frame:not(.card) .logs-chip-group {
  width: auto;
  max-width: 100%;
}

.modal-overlay {
  background: rgba(20, 32, 51, .38);
  backdrop-filter: blur(8px);
}

.modal {
  overflow: hidden;
}

.modal-header,
.modal-footer,
.drawer-header {
  background: #fff;
  border-color: var(--border-light);
}

.modal-body,
.drawer-body {
  background: #fff;
}

.modal-footer {
  gap: 10px;
}

.drawer {
  border-left-color: rgba(136, 160, 187, .24);
}

.bill-row-compact,
.admin-list-row.bill-row-compact,
.lender-list-row.bill-row-compact,
.borrower-loan-row.bill-row-compact,
.borrower-unminted-row.bill-row-compact,
.repay-list-row.bill-row-compact,
.bill-library-card.bill-row-compact,
.bill-operation-card.bill-row-compact,
.borrow-pool-picker-row.bill-row-compact,
.redeem-choice-row.bill-row-compact {
  border-radius: 18px;
  padding: 16px 18px;
  gap: 18px;
}

.list-row-status,
.borrower-loan-status {
  gap: 6px;
}

.list-row-field,
.lender-row-field,
.borrower-loan-fields .list-row-field {
  min-width: 0;
}

.list-id-link,
.nft-bill-link {
  color: #0057b8;
  text-underline-offset: 3px;
}

.nft-selection-row,
.pledge-nft-toolbar,
.pool-batch-redeem-summary,
.loan-inline-repay-panel,
.borrow-path-next {
  border-color: rgba(0, 107, 214, .16);
  background: var(--surface-soft);
}

.borrower-hub-tabs-wrap {
  background: linear-gradient(180deg, rgba(246, 249, 253, .96), rgba(246, 249, 253, .88));
}

@media (max-width: 1180px) {
  .container,
  #page-admin-pool .container {
    padding-inline: 20px;
  }
}

@media (max-width: 760px) {
  .container,
  .container-sm,
  .container-md,
  #page-admin-pool .container {
    padding: 22px 16px 34px;
  }

  .page-title {
    font-size: 21px;
  }

  .card,
  .stat-card,
  .detail-page-head,
  .detail-page-section,
  .modal-body,
  .drawer-body {
    padding: 14px;
  }

  .tabs,
  .logs-chip-group,
  .admin-filter-tabs,
  .admin-list-tabs,
  .compact-filter-tabs,
  .pool-filter-tabs,
  .borrower-hub-header-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer .btn,
  .toolbar-actions .btn,
  .list-row-actions .btn,
  .bill-row-actions .btn {
    min-width: 0;
  }
}

/* TRADEGO FINAL CTA CLEANUP: remove residual grey-blue action strips. */
.pool-detail-action-panel,
.pool-action-panel,
.detail-action-bar,
.detail-summary-card,
.page-action-bar,
.pool-borrow-application,
.borrow-no-limit-card,
.pool-loan-ledger-more,
.pool-nft-summary-more,
.loan-inline-repay-panel,
.nft-selection-row,
.borrow-path-next,
.dashboard-empty-card {
  border-color: rgba(0, 107, 214, .16);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 107, 214, .045), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--text-primary);
  box-shadow: 0 10px 24px rgba(16, 54, 94, .07);
}

.pool-linked-focus {
  border-color: rgba(0, 107, 214, .24) !important;
  box-shadow: 0 0 0 2px rgba(0, 107, 214, .08), 0 10px 24px rgba(16, 54, 94, .08);
}

.pool-detail-action-panel {
  justify-content: center;
  padding: 16px 18px;
  min-height: 76px;
}

.pool-detail-action-buttons,
.pool-action-buttons,
.detail-summary-actions,
.page-action-bar-actions {
  align-items: center;
  gap: 10px;
}

.pool-detail-action-buttons .btn {
  min-width: 128px;
}

.pool-detail-action-buttons .btn-primary,
.pool-action-buttons .btn-primary,
.detail-summary-actions .btn-primary,
.page-action-bar-actions .btn-primary,
.borrow-hero-primary {
  border-color: rgba(0, 107, 214, .55);
  background: linear-gradient(135deg, #006bd6, #1686ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 107, 214, .18);
}

.pool-detail-action-buttons .btn-primary:hover,
.pool-detail-action-buttons .btn-primary:focus-visible,
.pool-action-buttons .btn-primary:hover,
.pool-action-buttons .btn-primary:focus-visible,
.detail-summary-actions .btn-primary:hover,
.detail-summary-actions .btn-primary:focus-visible,
.page-action-bar-actions .btn-primary:hover,
.page-action-bar-actions .btn-primary:focus-visible,
.borrow-hero-primary:hover,
.borrow-hero-primary:focus-visible {
  border-color: rgba(0, 107, 214, .62);
  background: linear-gradient(135deg, #005fc4, #0879e8);
  box-shadow: 0 10px 24px rgba(0, 107, 214, .24);
}

.pool-detail-action-buttons .btn-secondary,
.pool-detail-action-buttons .btn-ghost,
.pool-action-buttons .btn-secondary,
.pool-action-buttons .btn-ghost,
.detail-summary-actions .btn-secondary,
.detail-summary-actions .btn-ghost,
.page-action-bar-actions .btn-secondary,
.page-action-bar-actions .btn-ghost {
  background: #fff;
  color: #0057b8;
  border-color: rgba(0, 107, 214, .30);
  box-shadow: 0 5px 14px rgba(16, 54, 94, .06);
}

.pool-detail-action-buttons .btn-secondary:hover,
.pool-detail-action-buttons .btn-secondary:focus-visible,
.pool-detail-action-buttons .btn-ghost:hover,
.pool-detail-action-buttons .btn-ghost:focus-visible,
.pool-action-buttons .btn-secondary:hover,
.pool-action-buttons .btn-secondary:focus-visible,
.pool-action-buttons .btn-ghost:hover,
.pool-action-buttons .btn-ghost:focus-visible,
.detail-summary-actions .btn-secondary:hover,
.detail-summary-actions .btn-secondary:focus-visible,
.detail-summary-actions .btn-ghost:hover,
.detail-summary-actions .btn-ghost:focus-visible,
.page-action-bar-actions .btn-secondary:hover,
.page-action-bar-actions .btn-secondary:focus-visible,
.page-action-bar-actions .btn-ghost:hover,
.page-action-bar-actions .btn-ghost:focus-visible {
  background: #eaf4ff;
  color: var(--accent-hover);
  border-color: rgba(0, 107, 214, .46);
}

.pool-detail-action-hint {
  color: var(--text-secondary);
}

.page-action-bar {
  border-top-color: rgba(136, 160, 187, .24);
  box-shadow: 0 -10px 28px rgba(16, 54, 94, .10);
}

.borrow-no-limit-card .text-muted,
.pool-detail-action-panel .text-muted,
.pool-borrow-application .text-muted,
.detail-action-bar .text-muted,
.detail-summary-card .text-muted,
.page-action-bar .text-muted,
.page-action-bar-summary {
  color: #52657d;
}

#jnft-grid-dashboard .dashboard-pool-detail-btn,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-secondary,
#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-ghost {
  background: #fff;
  color: #0057b8;
  border-color: rgba(0, 107, 214, .28);
  box-shadow: 0 5px 14px rgba(16, 54, 94, .06);
  backdrop-filter: none;
}

#jnft-grid-dashboard .dashboard-pool-detail-btn:hover,
#jnft-grid-dashboard .dashboard-pool-detail-btn:focus-visible {
  background: #eaf4ff;
  color: var(--accent-hover);
  border-color: rgba(0, 107, 214, .44);
  box-shadow: var(--focus-ring);
}

#jnft-grid-dashboard .dashboard-pool-detail-btn.btn-primary {
  background: linear-gradient(135deg, #006bd6, #1686ff);
  color: #fff;
  border-color: rgba(0, 107, 214, .55);
  box-shadow: 0 8px 18px rgba(0, 107, 214, .18);
}

@media (max-width: 760px) {
  .pool-detail-action-panel,
  .pool-action-panel,
  .detail-action-bar,
  .detail-summary-card {
    padding: 14px;
  }

  .pool-detail-action-buttons,
  .pool-action-buttons,
  .page-action-bar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .pool-detail-action-buttons .btn,
  .pool-action-buttons .btn,
  .page-action-bar-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
  }
}

/* ============================================================
   Pool page visual stabilization (single-source overrides)
   Keep borrower pool/NFT list consistent and avoid style drift
============================================================ */
#page-pool .content-align-frame {
  max-width: 960px;
}

#page-pool .hierarchy-header {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 6px 18px rgba(18, 56, 98, 0.05);
}

#page-pool .borrower-nft-pool-header {
  padding: 6px 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#page-pool .borrower-nft-pool-header-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#page-pool .borrower-nft-pool-header-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#page-pool .borrower-nft-pool-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

#page-pool .borrower-nft-pool-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #d8e7ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: #2f6fec;
  white-space: nowrap;
}

#page-pool .borrower-nft-pool-header-slogan {
  font-size: 14px;
  line-height: 1.5;
  color: #4f5f75;
}

#page-pool .borrower-nft-blindbox-card {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 10px 12px 8px;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(116, 167, 255, 0.15), transparent 30%),
    linear-gradient(135deg, rgba(244, 249, 255, 0.98), #ffffff 70%);
  box-shadow: 0 8px 18px rgba(31, 78, 138, 0.05);
}

#page-pool .borrower-nft-blindbox-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

#page-pool .borrower-nft-blindbox-summary-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

#page-pool .borrower-nft-blindbox-summary-kicker {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #5a79c8;
}

#page-pool .borrower-nft-blindbox-summary-title {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #102033;
}

#page-pool .borrower-nft-blindbox-summary-subtitle {
  font-size: 11px;
  line-height: 1.35;
  color: #5f7088;
}

#page-pool .borrower-nft-blindbox-highlight {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(211, 225, 246, 0.96);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#page-pool .borrower-nft-blindbox-highlight-compact {
  align-content: start;
}

#page-pool .borrower-nft-blindbox-highlight.tone-blue {
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-highlight.tone-indigo {
  background: linear-gradient(180deg, #f3f6ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-highlight.tone-violet {
  background: linear-gradient(180deg, #f7f3ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-highlight.tone-amber {
  background: linear-gradient(180deg, #fff9ef, #ffffff);
}

#page-pool .borrower-nft-blindbox-highlight.is-placeholder {
  border-style: dashed;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

#page-pool .borrower-nft-blindbox-highlight-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(229, 238, 255, 0.9);
  border: 1px solid rgba(206, 222, 250, 0.95);
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  color: #456fd1;
}

#page-pool .borrower-nft-blindbox-highlight-value {
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  color: #0f172a;
}

#page-pool .borrower-nft-blindbox-highlight-copy {
  font-size: 10px;
  line-height: 1.3;
  color: #66788f;
}

#page-pool .borrower-nft-blindbox-metrics {
  display: grid;
  grid-template-columns: minmax(152px, 1.05fr) repeat(3, minmax(116px, 0.95fr));
  gap: 6px;
  align-items: stretch;
}

#page-pool .borrower-nft-blindbox-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #dbe7f7;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#page-pool .borrower-nft-blindbox-metric-primary {
  background: linear-gradient(180deg, rgba(231, 240, 255, 0.98), #ffffff);
  border-color: #cfe0fb;
}

#page-pool .borrower-nft-blindbox-metric-label {
  font-size: 9px;
  line-height: 1.2;
  color: #6d7d93;
}

#page-pool .borrower-nft-blindbox-metric-value {
  font-size: 19px;
  line-height: 1.05;
  font-weight: 700;
  color: #1456cc;
}

#page-pool .borrower-nft-blindbox-footnote {
  font-size: 10px;
  line-height: 1.3;
  color: #66788f;
  padding-top: 0;
}

@media (max-width: 1100px) {
  #page-pool .borrower-nft-blindbox-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #page-pool .borrower-nft-blindbox-card {
    gap: 8px;
    padding: 10px 12px 8px;
  }

  #page-pool .borrower-nft-blindbox-summary-title {
    font-size: 15px;
  }

  #page-pool .borrower-nft-blindbox-metrics {
    grid-template-columns: 1fr;
  }
}

#page-pool .borrower-nft-blindbox-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

#page-pool .borrower-nft-blindbox-result-card {
  display: grid;
  gap: 5px;
  min-height: 108px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #dce7f7;
  background: rgba(255, 255, 255, 0.9);
}

#page-pool .borrower-nft-blindbox-result-card.tone-blue {
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-result-card.tone-indigo {
  background: linear-gradient(180deg, #f3f6ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-result-card.tone-violet {
  background: linear-gradient(180deg, #f7f3ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-result-card.tone-amber {
  background: linear-gradient(180deg, #fff9ef, #ffffff);
}

#page-pool .borrower-nft-blindbox-result-card.is-placeholder {
  border-style: dashed;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

#page-pool .borrower-nft-blindbox-result-card-secondary {
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.95), #ffffff);
}

#page-pool .borrower-nft-blindbox-result-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(229, 238, 255, 0.9);
  border: 1px solid rgba(206, 222, 250, 0.95);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: #456fd1;
}

#page-pool .borrower-nft-blindbox-result-value {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  color: #0f172a;
}

#page-pool .borrower-nft-blindbox-result-copy {
  font-size: 12px;
  line-height: 1.45;
  color: #66788f;
}

#page-pool .borrower-nft-blindbox-rewards {
  display: grid;
  gap: 10px;
}

#page-pool .borrower-nft-blindbox-rewards-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#page-pool .borrower-nft-blindbox-rewards-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: #102033;
}

#page-pool .borrower-nft-blindbox-rewards-subtitle {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7b90;
}

#page-pool .borrower-nft-blindbox-rewards-more {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #dae7ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: #3a6bd9;
}

#page-pool .borrower-nft-blindbox-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

#page-pool .borrower-nft-blindbox-reward-card,
#page-pool .borrower-nft-blindbox-next-card {
  display: grid;
  gap: 5px;
  min-height: 126px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #dce7f7;
  background: rgba(255, 255, 255, 0.86);
}

#page-pool .borrower-nft-blindbox-reward-card.tone-blue {
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-reward-card.tone-indigo {
  background: linear-gradient(180deg, #f3f6ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-reward-card.tone-violet {
  background: linear-gradient(180deg, #f7f3ff, #ffffff);
}

#page-pool .borrower-nft-blindbox-reward-card.tone-amber {
  background: linear-gradient(180deg, #fff9ef, #ffffff);
}

#page-pool .borrower-nft-blindbox-reward-card.is-placeholder {
  border-style: dashed;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

#page-pool .borrower-nft-blindbox-reward-badge,
#page-pool .borrower-nft-blindbox-next-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(229, 238, 255, 0.9);
  border: 1px solid rgba(206, 222, 250, 0.95);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: #456fd1;
}

#page-pool .borrower-nft-blindbox-reward-rate,
#page-pool .borrower-nft-blindbox-next-card strong {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  color: #0f172a;
}

#page-pool .borrower-nft-blindbox-reward-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: #102033;
}

#page-pool .borrower-nft-blindbox-reward-desc,
#page-pool .borrower-nft-blindbox-next-card span {
  font-size: 12px;
  line-height: 1.45;
  color: #66788f;
}

#page-pool .borrower-nft-blindbox-next-card {
  align-content: space-between;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.95), #ffffff);
}

#page-pool .borrower-nft-blindbox-next-card.is-goal {
  border-color: #cfdcf8;
  background: linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(250, 252, 255, 1));
}

#page-pool .borrower-nft-pool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .85fr);
  align-items: start;
  gap: 12px;
}

#page-pool .borrower-nft-pool-hero-copy {
  align-items: flex-start;
  gap: 10px;
  max-width: none;
}

#page-pool .borrower-nft-pool-hero-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef6ff, #dcecff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
  font-size: 13px;
}

#page-pool .borrower-nft-pool-hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#page-pool .borrower-nft-pool-hero-eyebrow {
  margin-bottom: 0;
  font-size: 11px;
  letter-spacing: .01em;
}

#page-pool .borrower-nft-pool-hero h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #0f172a;
}

#page-pool .borrower-nft-pool-hero .text-xs.text-muted {
  margin-top: 0 !important;
  font-size: 11px;
  line-height: 1.45;
  color: #5b6b82;
  max-width: 54ch;
}

#page-pool .borrower-nft-pool-hero-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  align-self: start;
}

#page-pool .borrower-nft-pool-hero-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e2ecf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

#page-pool .borrower-nft-pool-hero-kpi span {
  margin-bottom: 4px;
  font-size: 10px;
  color: #6b7c93;
}

#page-pool .borrower-nft-pool-hero-kpi strong {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.15;
  color: #0f172a;
}

#page-pool .borrower-nft-pool-hero-kpi strong .metric-unit {
  font-size: .56em;
}

#page-pool .borrower-nft-control-bar.content-align-frame {
  width: 100%;
  margin-bottom: 0;
  padding: 8px 10px;
  border: 1px solid #e4edf7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
  box-shadow: 0 2px 8px rgba(18, 56, 98, 0.04);
}

#page-pool .borrower-nft-control-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#page-pool .borrower-nft-control-bar .borrower-nft-status-tabs.compact-filter-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  gap: 6px;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #f5f9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

#page-pool .borrower-nft-control-divider {
  flex: 0 0 1px;
  align-self: stretch;
  background: linear-gradient(180deg, rgba(214, 227, 242, 0), rgba(214, 227, 242, 0.96), rgba(214, 227, 242, 0));
  border-radius: 999px;
}

#page-pool .borrower-nft-control-bar .borrower-nft-bulk-actions {
  width: auto;
  margin-left: auto;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

#page-pool .borrower-nft-control-bar .borrower-nft-bulk-actions .btn {
  flex: 0 0 auto;
  min-width: 106px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

#page-pool .borrower-nft-status-tabs .tab {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 650;
  color: #607188;
  font-size: 12px;
}

#page-pool .borrower-nft-status-tabs .tab.active {
  background: #ffffff;
  color: #0f5db8;
  border: 1px solid rgba(0, 107, 214, 0.16);
  box-shadow: 0 4px 12px rgba(18, 56, 98, 0.06);
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-status-tabs.compact-filter-tabs {
  gap: 6px;
  padding: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  min-width: 82px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 12px;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab .tab-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 10px;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab.active .tab-count {
  background: #eaf3ff;
  color: #0f5db8;
}

#page-pool .borrower-pool-title-row {
  margin-bottom: 8px;
}

#page-pool .borrower-nft-inline-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 4px 0 4px;
}

#page-pool .borrower-nft-inline-head-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#page-pool .borrower-pool-title-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

#page-pool .borrower-nft-inline-head-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#page-pool .borrower-nft-inline-head-tip {
  min-width: 0;
  margin: 0;
  color: #52657e;
  font-size: 12px;
  line-height: 1.45;
}

#page-pool .borrower-unborrowed-nft-grid.content-align-frame {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 304px));
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
}

#page-pool .borrower-unborrowed-nft-grid .nft-card {
  width: auto;
  min-height: 0;
  height: 100%;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 56, 98, 0.045);
  transform: none;
}

#page-pool .borrower-unborrowed-nft-grid .nft-card:hover {
  border-color: rgba(0, 107, 214, 0.3);
  box-shadow: 0 8px 18px rgba(18, 56, 98, 0.07);
  transform: translateY(-1px);
}

#page-pool .borrower-unborrowed-nft-grid .nft-cover {
  height: 124px;
}

#page-pool .borrower-unborrowed-nft-grid .nft-body {
  padding: 10px 12px 12px;
  gap: 6px;
}

#page-pool .borrower-unborrowed-nft-grid .nft-status-head {
  gap: 8px;
  margin-bottom: 0;
}

#page-pool .borrower-unborrowed-nft-grid .list-id-label {
  font-size: 11px;
  color: #7a8798;
}

#page-pool .borrower-unborrowed-nft-grid .list-id-value {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
}

#page-pool .borrower-unborrowed-nft-grid .nft-card-status {
  max-width: none;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#page-pool .borrower-unborrowed-nft-grid .nft-bill-link-row {
  margin-bottom: 0;
  font-size: 11px;
  line-height: 1.32;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta {
  gap: 0;
  margin: 1px 0 0;
  padding: 6px 8px;
  border: 1px solid #edf3f8;
  border-radius: 10px;
  background: #f8fbff;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-row {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 11px;
  line-height: 1.32;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-row + .nft-meta-row {
  border-top: 1px solid #e8eff7;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-label {
  font-size: 10px;
  color: #7a8798;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-value {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}

#page-pool .borrower-unborrowed-nft-grid .nft-action-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e7eff8;
}

#page-pool .borrower-unborrowed-nft-grid .nft-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

#page-pool .borrower-unborrowed-nft-grid .nft-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 9px;
  justify-content: center;
  font-size: 12px;
}

#page-pool .borrower-unborrowed-nft-grid .nft-actions .btn:only-child {
  grid-column: 1 / -1;
}

/* Destroyed / readonly NFT cards should not reserve action-row space. */
#page-pool .borrower-unborrowed-nft-grid .nft-card.nft-card-readonly {
  min-height: 0;
}

#page-pool .borrower-unborrowed-nft-grid .nft-card.nft-card-readonly .nft-action-row {
  display: none;
}

#page-pool .batch-selection-bar.content-align-frame {
  padding: 10px 12px;
  border-radius: 14px;
  border-color: #dce8f5;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: 0 2px 8px rgba(18, 56, 98, 0.04);
}

#page-pool .batch-selection-copy .font-semibold {
  font-size: 13px;
  line-height: 1.35;
}

#page-pool .batch-selection-copy .text-xs.text-muted {
  line-height: 1.45;
}

@media (max-width: 900px) {
  #page-pool .borrower-nft-pool-hero {
    grid-template-columns: 1fr;
  }

  #page-pool .borrower-nft-pool-hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-status-tabs.compact-filter-tabs {
    max-width: 100%;
  }

  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab {
    min-width: 84px;
    padding: 0 14px;
  }

  #page-pool .borrower-nft-control-bar .borrower-nft-bulk-actions .btn {
    min-width: 108px;
  }

  #page-pool .borrower-unborrowed-nft-grid.content-align-frame {
    grid-template-columns: repeat(auto-fill, minmax(220px, 248px));
    justify-content: flex-start;
  }

  #page-pool .borrower-unborrowed-nft-grid .nft-card {
    width: 100%;
    min-height: 0;
  }

  #pledge-nft-to-pool-modal {
    padding-top: var(--modal-safe-top, 56px);
    padding-bottom: 18px;
  }

  #pledge-nft-to-pool-modal .pledge-nft-modal {
    height: min(860px, calc(100dvh - var(--modal-safe-top, 56px) - 18px));
    max-height: calc(100dvh - var(--modal-safe-top, 56px) - 18px);
  }
}

@media (max-width: 768px) {
  #page-pool .borrower-nft-inline-head-top {
    gap: 6px;
  }

  #page-pool .borrower-nft-pool-hero {
    gap: 16px;
  }

  #page-pool .borrower-nft-pool-hero-kpis {
    grid-template-columns: 1fr;
  }

  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab {
    min-width: 78px;
    min-height: 38px;
    padding: 0 12px;
  }

  #page-pool .borrower-nft-control-main {
    align-items: stretch;
    gap: 8px;
  }

  #page-pool .borrower-nft-control-divider {
    display: none;
  }

  #page-pool .borrower-nft-control-bar .borrower-nft-bulk-actions {
    width: 100%;
    margin-left: 0;
  }

  #page-pool .borrower-nft-control-bar .borrower-nft-bulk-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  #page-pool .borrower-unborrowed-nft-grid.content-align-frame {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #page-pool .borrower-unborrowed-nft-grid .nft-cover {
    height: 132px;
  }

  #page-pool .borrower-unborrowed-nft-grid .nft-body {
    padding: 10px 11px 11px;
  }

  #page-pool .borrower-unborrowed-nft-grid .nft-meta {
    padding: 6px 8px;
  }

  #page-pool .borrower-unborrowed-nft-grid .nft-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #page-pool .borrower-unborrowed-nft-grid .nft-meta-value {
    text-align: left;
  }

  #page-pool .borrower-unborrowed-nft-grid .nft-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
  Page-scoped alignment baseline (admin/borrower/lender)
  Keep tabs, filters, toolbars, and list containers on one frame
============================================================ */
#page-admin-bills .tabs.admin-filter-tabs.content-align-frame,
#page-lender .tabs.admin-filter-tabs.admin-list-tabs.content-align-frame,
#page-lender .lender-records-head.content-align-frame {
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}

#page-admin-bills .tabs.admin-filter-tabs.content-align-frame,
#page-lender .tabs.admin-filter-tabs.admin-list-tabs.content-align-frame {
  display: inline-flex;
  width: max-content;
}

#page-admin-bills .admin-bills-toolbar-actions {
  margin-left: auto;
}

#page-lender .lender-records-head.content-align-frame {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
}

#page-lender .lender-records-head.content-align-frame .logs-filter-group {
  width: 100%;
}

#page-lender .lender-records-head.content-align-frame .logs-chip-group {
  width: max-content;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}

#page-lender .lender-list-row.bill-row-compact {
  grid-template-columns: minmax(196px, .88fr) minmax(0, 1.45fr) minmax(170px, max-content);
  align-items: center;
}

#page-lender .lender-list-row .bill-row-meta {
  grid-template-columns: minmax(0, 1fr) minmax(114px, max-content);
  align-items: center;
}

#page-lender .lender-list-row .list-row-status {
  justify-self: end;
  align-items: flex-end;
  min-width: 0;
  max-width: 160px;
}

#page-lender .lender-list-row .bill-row-actions {
  min-width: 164px;
  align-self: center;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  #page-lender .lender-list-row.bill-row-compact {
    grid-template-columns: minmax(190px, .9fr) minmax(0, 1fr);
  }

  #page-lender .lender-list-row .bill-row-actions {
    grid-column: 1 / -1;
    min-width: 0;
    justify-self: stretch;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  #page-admin-bills .admin-bills-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #page-lender .lender-list-row.bill-row-compact {
    grid-template-columns: 1fr;
  }

  #page-lender .lender-list-row .bill-row-meta,
  #page-lender .lender-list-row .list-row-fields {
    grid-template-columns: 1fr;
  }

  #page-lender .lender-list-row .bill-row-actions {
    grid-column: auto;
    justify-content: flex-start;
  }
}

/* Loan repay modal: keep release description visually stable and readable. */
.loan-repay-summary-fields .loan-repay-release-field {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid rgba(0, 107, 214, .18);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafdff, #f4f9ff);
}

.loan-repay-summary-fields .loan-repay-release-field > span {
  margin-bottom: 4px;
  color: #0c5aa8;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
}

.loan-repay-summary-fields .loan-repay-release-field > strong {
  color: #0f2747;
  font-size: 17px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.loan-repay-modal .loan-inline-repay-hero-note,
.loan-inline-repay-panel .loan-inline-repay-hero-note {
  margin-top: 10px;
  color: #335b84;
  font-size: 12px;
  line-height: 1.45;
}

/* Global modal safe spacing: keep distance from sticky navbar. */
:root {
  --modal-safe-top: 74px;
  --modal-safe-bottom: 24px;
}

.modal-overlay.open:not(:has(.modal)) {
  display: none !important;
  pointer-events: none;
}

.modal-overlay.open:has(.modal) {
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--modal-safe-top);
  padding-bottom: var(--modal-safe-bottom);
}

.modal-overlay.open:has(.modal) .modal {
  max-height: calc(100dvh - var(--modal-safe-top) - var(--modal-safe-bottom));
}

@media (max-width: 900px) {
  :root {
    --modal-safe-top: 56px;
    --modal-safe-bottom: 16px;
  }
}

/* Lender order list: prevent action buttons overlapping text columns. */
#page-lender .lender-list-row.bill-row-compact {
  grid-template-columns: minmax(180px, .84fr) minmax(0, 1fr) minmax(196px, max-content);
  align-items: start;
}

#page-lender .lender-list-row .bill-row-meta {
  grid-template-columns: minmax(0, 1fr) minmax(108px, max-content);
  gap: 10px 12px;
}

#page-lender .lender-list-row .list-row-fields {
  grid-template-columns: repeat(auto-fit, minmax(102px, 1fr));
  gap: 8px 12px;
}

#page-lender .lender-list-row .bill-row-actions,
#page-lender .lender-list-row .list-row-actions {
  min-width: 196px;
  justify-content: flex-end;
  align-self: center;
}

#page-lender .lender-list-row .bill-row-actions .btn,
#page-lender .lender-list-row .list-row-actions .btn {
  min-width: 92px;
}

@media (max-width: 1220px) {
  #page-lender .lender-list-row.bill-row-compact {
    grid-template-columns: minmax(170px, .9fr) minmax(0, 1fr) minmax(0, 168px);
    gap: 12px;
  }

  #page-lender .lender-list-row .bill-row-actions,
  #page-lender .lender-list-row .list-row-actions {
    min-width: 0;
    justify-content: flex-start;
  }
}

/* Borrower bill records page hardening (prevents action overflow on bill-library rows). */
[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card.bill-row-compact {
  display: grid;
  grid-template-columns:
    minmax(150px, 188px)
    minmax(96px, .56fr)
    minmax(84px, .44fr)
    minmax(154px, .72fr)
    minmax(150px, 1fr)
    minmax(292px, max-content);
  gap: 12px;
  align-items: center;
  overflow: visible;
}

[data-detail-view="bill-records"] .bill-library-list .my-bill-record-content,
[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .borrower-bill-record-fields {
  display: contents;
}

[data-detail-view="bill-records"] .bill-library-list .my-bill-record-main {
  grid-column: 1;
  min-width: 0;
}

[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-amount { grid-column: 2; }
[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-id { grid-column: 3; }
[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .my-bill-record-time-field { grid-column: 4; }
[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-party { grid-column: 5; min-width: 0; }

[data-detail-view="bill-records"] .bill-library-list .my-bill-record-actions {
  grid-column: 6;
  justify-self: stretch;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
  flex-direction: row;
  gap: 8px;
  width: 100%;
  min-width: 292px;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 0;
  flex-wrap: wrap;
}

[data-detail-view="bill-records"] .bill-library-list .my-bill-record-actions .btn {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field > span,
[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field > strong {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
}

[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .my-bill-record-time-field > strong,
[data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .my-bill-time-line span {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card.bill-row-compact {
    grid-template-columns: minmax(164px, 220px) repeat(3, minmax(118px, 1fr));
  }

  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-main { grid-column: 1; }
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-amount { grid-column: 2; }
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-id { grid-column: 3; }
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .my-bill-record-time-field { grid-column: 4; }
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-party { grid-column: 2 / 5; }
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    flex-wrap: wrap;
  }

  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-actions .btn {
    width: auto;
  }
}

@media (max-width: 720px) {
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card.bill-row-compact {
    grid-template-columns: 1fr;
  }

  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-main,
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-amount,
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-id,
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .my-bill-record-time-field,
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-card .list-row-field-party,
  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-actions {
    grid-column: auto;
  }

  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-actions {
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  [data-detail-view="bill-records"] .bill-library-list .my-bill-record-actions .btn {
    flex: 1 1 128px;
  }
}

/* Admin pending workbench: prevent enterprise/status/action overlap. */
#page-admin-bills #bill-review-list .admin-list-row.bill-row-compact {
  grid-template-columns: minmax(220px, .95fr) minmax(0, 1.6fr) minmax(132px, max-content);
  align-items: start;
  gap: 12px 16px;
}

#page-admin-bills #bill-review-list .admin-list-row .bill-row-meta {
  grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
  align-items: start;
  gap: 10px 12px;
}

#page-admin-bills #bill-review-list .admin-list-row .list-row-fields {
  grid-template-columns: repeat(3, minmax(108px, 1fr));
  gap: 8px 12px;
}

#page-admin-bills #bill-review-list .admin-list-row .list-row-field > strong {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#page-admin-bills #bill-review-list .admin-list-row .list-row-field-amount > strong,
#page-admin-bills #bill-review-list .admin-list-row .list-row-field-date > strong {
  white-space: nowrap;
}

#page-admin-bills #bill-review-list .admin-list-row .list-row-status {
  justify-self: end;
  align-items: flex-end;
  min-width: 0;
  max-width: 148px;
}

#page-admin-bills #bill-review-list .admin-list-row .bill-row-actions {
  align-self: center;
  justify-content: flex-end;
  min-width: 116px;
}

@media (max-width: 1180px) {
  #page-admin-bills #bill-review-list .admin-list-row.bill-row-compact {
    grid-template-columns: minmax(200px, .92fr) minmax(0, 1fr);
  }

  #page-admin-bills #bill-review-list .admin-list-row .bill-row-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  #page-admin-bills #bill-review-list .admin-list-row.bill-row-compact {
    grid-template-columns: 1fr;
  }

  #page-admin-bills #bill-review-list .admin-list-row .bill-row-meta,
  #page-admin-bills #bill-review-list .admin-list-row .list-row-fields {
    grid-template-columns: 1fr;
  }

  #page-admin-bills #bill-review-list .admin-list-row .bill-row-actions {
    justify-content: flex-start;
  }
}

/* ============================================================
   Top nav专项修复：稳定三段式布局（left / center / right）
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  height: 62px;
  padding: 0 16px;
}

.nav-left,
.nav-center {
  min-width: 0;
  display: flex;
  align-items: center;
}

.nav-left {
  flex: 0 0 auto;
}

.nav-center {
  flex: 1 1 auto;
  justify-content: center;
}

.nav-center .nav-links {
  flex: 1 1 100%;
  min-width: 0;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.nav-center .nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 1 auto;
}

.nav-right {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-chain,
.wallet-btn,
.nav-right > .btn.btn-ghost.btn-sm {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-user-email {
  flex: 0 1 clamp(140px, 18vw, 260px);
  min-width: 0;
  max-width: clamp(140px, 18vw, 260px);
}

.nav-user-email-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-right > .btn.btn-ghost.btn-sm.nav-logout-btn {
  flex-shrink: 0;
  min-width: 64px;
  white-space: nowrap;
  margin-left: 0;
}

@media (max-width: 1280px) {
  .navbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .nav-user-email {
    flex-basis: clamp(116px, 16vw, 210px);
    max-width: clamp(116px, 16vw, 210px);
  }

  .nav-right {
    gap: 6px;
  }
}

@media (max-width: 1024px) {
  .nav-center .nav-links {
    justify-content: flex-start;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-chain {
    display: none;
  }

  .nav-user-email {
    flex-basis: clamp(96px, 14vw, 164px);
    max-width: clamp(96px, 14vw, 164px);
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 56px;
    height: 56px;
    padding: 0 10px;
    gap: 8px;
  }

  .nav-center .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 5px 8px;
    font-size: 12px;
  }

  .nav-user-email {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 118px;
  }

  .wallet-btn {
    padding: 6px 9px;
  }

  .wallet-btn .font-mono {
    display: none;
  }

  .nav-right > .btn.btn-ghost.btn-sm.nav-logout-btn {
    min-width: 60px;
    padding-inline: 10px;
  }
}

/* ============================================================
   Nav final hotfix: right group must stick right
   ============================================================ */
.navbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}

.nav-left,
.nav-center,
.nav-right {
  min-width: 0;
}

.nav-center {
  justify-content: flex-start;
}

.nav-center .nav-links {
  justify-content: flex-start;
}

.nav-right {
  justify-self: end;
  justify-content: flex-end;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-user-email {
  flex: 0 1 140px;
  max-width: 140px;
  min-width: 0;
}

@media (max-width: 1024px) {
  .navbar {
    column-gap: 8px;
  }

  .nav-user-email {
    max-width: 120px;
    flex-basis: 120px;
  }
}

@media (max-width: 768px) {
  .navbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 6px;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-user-email {
    max-width: 96px;
    flex-basis: 96px;
  }
}

/* ============================================================
   Borrower NFT list hierarchy + batch selection polish
   Scope: pool page / unpledged NFT area only
   ============================================================ */
#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar.content-align-frame {
  margin-top: 2px;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 650;
  border-radius: 10px;
  border: 1px solid rgba(0, 107, 214, .20);
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #0f2f58;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab.active {
  border-color: rgba(0, 107, 214, .45);
  background: linear-gradient(180deg, #eef6ff, #e2efff);
  box-shadow: 0 4px 10px rgba(0, 107, 214, .10);
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-bulk-actions {
  gap: 8px;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-bulk-actions .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9px;
  border-color: rgba(0, 107, 214, .22);
  color: #335c86;
  background: #f7fbff;
  box-shadow: none;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-bulk-actions .btn:hover {
  border-color: rgba(0, 107, 214, .34);
  color: #1f4e7b;
  background: #f0f7ff;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-bulk-actions .btn:active {
  background: #e8f2ff;
}

#page-pool .batch-redeem-card {
  border-width: 1px;
}

#page-pool .batch-redeem-card.selected {
  border-color: rgba(0, 107, 214, .40);
  background: linear-gradient(180deg, #fcfeff, #f7fbff 44%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(0, 107, 214, .10), 0 10px 22px rgba(18, 56, 98, .08);
}

#page-pool .batch-redeem-card .nft-selection-row {
  min-height: 32px;
  padding: 6px 10px;
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 107, 214, .12);
  background: linear-gradient(180deg, #fbfdff, #f2f8ff);
}

#page-pool .batch-redeem-card .batch-redeem-check {
  width: 16px;
  height: 16px;
  margin: 0;
}

#page-pool .batch-redeem-card .batch-redeem-selected {
  margin-left: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  color: #0d4a80;
  border: 1px solid rgba(0, 107, 214, .22);
  background: #eaf3ff;
}

/* ============================================================
   Borrower NFT pool control bar + pledged grid cleanup
   Scope: borrower pool NFT list only
   ============================================================ */
#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar.content-align-frame {
  margin-top: 0;
  padding: 8px 10px;
  border-color: #dfe9f5;
  background: linear-gradient(180deg, #fcfeff, #f7fbff);
  box-shadow: 0 4px 14px rgba(18, 56, 98, 0.045);
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-section-rail {
  gap: 8px;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-main {
  align-items: stretch;
  gap: 10px;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-tabs {
  flex: 1 1 auto;
  min-width: 0;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px;
  border: 1px solid rgba(130, 155, 184, 0.22);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 254, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-status-tabs.compact-filter-tabs {
  gap: 5px;
  padding: 4px;
  border-color: rgba(0, 107, 214, 0.12);
  background: linear-gradient(180deg, #f4f9ff, #edf5ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab {
  min-width: 80px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 107, 214, 0.16);
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #10365d;
  font-size: 11px;
  font-weight: 650;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab .tab-count {
  color: #1c70d8;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab.active {
  border-color: rgba(0, 107, 214, 0.34);
  background: linear-gradient(180deg, #eef6ff, #e2efff);
  box-shadow: 0 5px 12px rgba(0, 107, 214, 0.10);
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-status-tabs .tab.active .tab-count {
  color: #0f5db8;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-divider {
  align-self: center;
  height: 28px;
  background: linear-gradient(180deg, rgba(214, 227, 242, 0), rgba(214, 227, 242, 0.96), rgba(214, 227, 242, 0));
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-bulk-actions {
  gap: 6px;
  margin-left: 0;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-bar .borrower-nft-bulk-actions .btn {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  border-color: rgba(0, 107, 214, 0.20);
  box-shadow: none;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions .borrower-nft-bulk-actions .btn.btn-secondary,
#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions .borrower-nft-bulk-actions .btn.btn-ghost {
  color: #31577f;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions .borrower-nft-bulk-actions .btn.btn-secondary:hover,
#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions .borrower-nft-bulk-actions .btn.btn-ghost:hover {
  border-color: rgba(0, 107, 214, 0.30);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  color: #163f68;
}

#page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions .borrower-nft-bulk-actions .btn.btn-primary {
  border-color: rgba(0, 107, 214, 0.56);
  box-shadow: 0 4px 10px rgba(0, 107, 214, 0.14);
}

#page-pool .borrower-unborrowed-nft-grid.content-align-frame {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 268px));
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
}

#page-pool .borrower-unborrowed-nft-grid .borrower-nft-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dce8f5;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 56, 98, 0.05);
}

#page-pool .borrower-unborrowed-nft-grid .borrower-nft-list-card:hover {
  border-color: rgba(0, 107, 214, 0.30);
  box-shadow: 0 8px 18px rgba(18, 56, 98, 0.07);
  transform: translateY(-1px);
}

#page-pool .borrower-unborrowed-nft-grid .nft-cover {
  height: 116px;
}

#page-pool .borrower-unborrowed-nft-grid .nft-body {
  position: relative;
  z-index: 1;
  padding: 10px 11px 11px;
  gap: 6px;
}

#page-pool .borrower-unborrowed-nft-grid .nft-status-head {
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
}

#page-pool .borrower-unborrowed-nft-grid .list-id-label {
  font-size: 10px;
  color: #748398;
}

#page-pool .borrower-unborrowed-nft-grid .list-id-value {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

#page-pool .borrower-unborrowed-nft-grid .nft-card-status {
  flex: 0 0 auto;
  max-width: none;
  min-height: 22px;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

#page-pool .borrower-unborrowed-nft-grid .nft-bill-link-row,
#page-pool .borrower-unborrowed-nft-grid .nft-pool-caption {
  margin-bottom: 0;
  font-size: 10.5px;
  line-height: 1.3;
}

#page-pool .borrower-unborrowed-nft-grid .nft-pool-caption {
  color: #607188;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta {
  gap: 0;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #e8f0f8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fbff, #f5f9ff);
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-row {
  display: grid;
  grid-template-columns: minmax(66px, auto) minmax(0, 1fr);
  gap: 6px;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 11px;
  line-height: 1.28;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-row + .nft-meta-row {
  border-top: 1px solid #e6eef7;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-label {
  font-size: 10px;
  color: #79889b;
}

#page-pool .borrower-unborrowed-nft-grid .nft-meta-value {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}

#page-pool .borrower-unborrowed-nft-grid .nft-action-row {
  margin-top: auto;
  min-height: 28px;
  padding-top: 6px;
  border-top: 1px solid #e7eff8;
}

#page-pool .borrower-unborrowed-nft-grid .nft-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

#page-pool .borrower-unborrowed-nft-grid .nft-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  justify-content: center;
}

#page-pool .borrower-unborrowed-nft-grid .nft-actions .btn:only-child {
  grid-column: 1 / -1;
}

#page-pool .borrower-unborrowed-nft-grid .borrower-nft-list-card.nft-card-readonly .nft-action-row {
  display: none;
}

#page-pool .borrower-unborrowed-nft-grid.is-selection-mode .borrower-nft-list-card {
  padding-top: 0;
}

#page-pool .borrower-unborrowed-nft-grid.is-selection-mode .batch-redeem-card {
  border-width: 1px;
}

#page-pool .borrower-unborrowed-nft-grid.is-selection-mode .batch-redeem-card.selected {
  border-color: rgba(0, 107, 214, 0.40);
  background: linear-gradient(180deg, #fcfeff, #f7fbff 44%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(0, 107, 214, 0.10), 0 10px 22px rgba(18, 56, 98, 0.08);
}

#page-pool .borrower-unborrowed-nft-grid.is-selection-mode .batch-redeem-card .nft-selection-row {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-height: 30px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

#page-pool .borrower-unborrowed-nft-grid.is-selection-mode .batch-redeem-card.selected .nft-selection-row {
  border-color: rgba(0, 107, 214, 0.16);
  background: rgba(234, 243, 255, 0.96);
}

#page-pool .borrower-unborrowed-nft-grid.is-selection-mode .batch-redeem-card .batch-redeem-check {
  width: 15px;
  height: 15px;
  margin: 0;
}

#page-pool .borrower-unborrowed-nft-grid.is-selection-mode .batch-redeem-card .batch-redeem-selected {
  margin-left: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  color: #0d4a80;
  border: 1px solid rgba(0, 107, 214, 0.20);
  background: #eaf3ff;
}

@media (max-width: 900px) {
  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-main {
    gap: 8px;
  }

  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-tabs {
    flex-basis: 100%;
  }

  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-divider {
    display: none;
  }

  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions {
    width: 100%;
    margin-left: 0;
  }

  #page-pool #borrower-hub-unborrowed-nfts .borrower-nft-control-group-actions .borrower-nft-bulk-actions {
    width: 100%;
  }

  #page-pool .borrower-unborrowed-nft-grid.content-align-frame {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

@media (max-width: 768px) {
  #page-pool .borrower-unborrowed-nft-grid.is-selection-mode .batch-redeem-card .nft-selection-row {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }
}

/* ============================================================
   Admin bill management row alignment hotfix
   Scope: #page-admin-bills only
   ============================================================ */
#page-admin-bills .admin-workbench-summary {
  margin-bottom: 14px;
}

.admin-borrower-nft-metrics-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 107, 214, .12);
  border-radius: var(--rail-shell-radius);
  background:
    linear-gradient(180deg, rgba(247, 251, 255, .98), rgba(238, 245, 255, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.admin-borrower-nft-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.admin-borrower-nft-detail-btn {
  min-width: 0;
  padding-inline: 10px;
}

.admin-borrower-nft-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.admin-borrower-nft-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-borrower-nft-stat {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 107, 214, .10);
  background: rgba(255, 255, 255, .78);
}

.admin-borrower-nft-stat-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
}

.admin-borrower-nft-stat-value {
  display: block;
  min-width: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 780;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -.01em;
  word-break: break-word;
}

.admin-borrower-nft-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-borrower-nft-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(120px, .8fr));
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 107, 214, .10);
  border-radius: 14px;
  background: rgba(247, 250, 255, .86);
}

.admin-borrower-nft-row-compact {
  padding: 10px 12px;
  gap: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
}

.admin-borrower-nft-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-borrower-nft-row > div > span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.admin-borrower-nft-row > div > strong {
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}

.admin-borrower-nft-row-compact > div > strong {
  font-size: 13px;
}

.admin-borrower-nft-row > div:first-child > strong {
  font-size: 14px;
  font-weight: 700;
}

.admin-borrower-nft-row > div:first-child > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-admin-bills .admin-workbench-metrics {
  gap: 8px;
}

#page-admin-bills .bill-row-list.bill-row-list-compact {
  margin-top: 2px;
}

#page-admin-bills .admin-list-row.bill-row-compact {
  display: grid;
  grid-template-columns: minmax(230px, .95fr) minmax(0, 2.2fr) minmax(182px, max-content);
  align-items: center;
  column-gap: 16px;
  row-gap: 10px;
  min-height: 108px;
}

#page-admin-bills .admin-list-row .bill-row-main {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#page-admin-bills .admin-list-row .bill-row-meta {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
}

#page-admin-bills .admin-list-row .list-row-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  align-items: stretch;
  gap: 10px 14px;
}

#page-admin-bills .admin-list-row .list-row-field {
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#page-admin-bills .admin-list-row .list-row-status {
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
}

#page-admin-bills .admin-list-row .list-row-status .badge {
  align-self: center;
}

#page-admin-bills .admin-list-row .bill-row-actions,
#page-admin-bills .admin-list-row .list-row-actions {
  align-self: center;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 182px;
}

#page-admin-bills .admin-list-row .bill-row-actions .btn,
#page-admin-bills .admin-list-row .list-row-actions .btn {
  flex: 0 0 auto;
  min-width: 96px;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  #page-admin-bills .admin-list-row.bill-row-compact {
    grid-template-columns: minmax(220px, .95fr) minmax(0, 1.8fr) minmax(168px, max-content);
    column-gap: 12px;
  }
}

@media (max-width: 960px) {
  .admin-borrower-nft-summary-stats {
    grid-template-columns: 1fr;
  }

  .admin-borrower-nft-row {
    grid-template-columns: 1fr;
  }

  .admin-borrower-nft-row > div:first-child > span {
    white-space: normal;
  }

  #page-admin-bills .admin-list-row.bill-row-compact {
    grid-template-columns: 1fr;
  }

  #page-admin-bills .admin-list-row .bill-row-main {
    border-right: 0;
    padding-right: 0;
  }

  #page-admin-bills .admin-list-row .bill-row-meta {
    grid-template-columns: 1fr;
  }

  #page-admin-bills .admin-list-row .list-row-status,
  #page-admin-bills .admin-list-row .bill-row-actions,
  #page-admin-bills .admin-list-row .list-row-actions {
    justify-self: start;
    justify-content: flex-start;
    min-width: 0;
  }
}

/* ============================================================
Admin bill list scope alignment (merged)
Scope: #page-admin-bills only
============================================================ */
#page-admin-bills #bill-review-list,
#page-admin-bills #admin-bill-mint-list,
#page-admin-bills #admin-active-loan-list {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#page-admin-bills #bill-review-list > .admin-workbench-summary,
#page-admin-bills #bill-review-list > .bill-row-list.bill-row-list-compact,
#page-admin-bills #admin-bill-mint-list .bill-row-list.bill-row-list-compact,
#page-admin-bills #admin-active-loan-list > .bill-row-list.bill-row-list-compact {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#page-admin-bills .admin-workbench-summary {
  margin-bottom: 14px;
}

#page-admin-bills .admin-list-row .bill-row-main {
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#page-admin-bills .admin-aligned-row .admin-row-sub,
#page-admin-bills .admin-aligned-row .bill-row-main .list-id-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-admin-bills .admin-aligned-row .admin-mint-row-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#page-admin-bills .admin-aligned-row .admin-mint-row-tags > span:not(.badge),
#page-admin-bills .admin-aligned-row .admin-mint-row-tags > strong {
  display: none;
}

#page-admin-bills .admin-aligned-row .admin-row-cell {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

#page-admin-bills .admin-aligned-row .admin-row-cell > strong {
  max-width: 100%;
}

#page-admin-bills .admin-aligned-row .admin-row-cell-time > strong {
  white-space: nowrap;
}

#page-admin-bills .admin-aligned-row .admin-row-cell-party > strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-admin-bills .admin-aligned-row > .list-row-status {
  grid-column: 5;
  justify-self: end;
  align-self: center;
  min-width: 128px;
  max-width: 128px;
  align-items: center;
  justify-content: center;
}

#page-admin-bills .admin-aligned-row > .list-row-status .badge {
  max-width: 100%;
}

#page-admin-bills .admin-aligned-row > .bill-row-actions,
#page-admin-bills .admin-aligned-row > .list-row-actions,
#page-admin-bills .admin-aligned-row > .admin-row-actions {
  width: var(--platform-list-action-width);
  min-width: var(--platform-list-action-width);
  max-width: var(--platform-list-action-width);
}

#page-admin-bills .admin-aligned-row > .admin-row-actions .btn {
  flex: 0 0 auto;
  min-width: 88px;
  max-width: 184px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-admin-bills .admin-nft-mint-summary,
#page-admin-bills .admin-nft-mint-shell .admin-mint-toolbar,
#page-admin-bills .admin-nft-mint-panel {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* smoke-compat marker: grid-template-columns: minmax(210px, .9fr) minmax(0, 1.8fr) minmax(128px, max-content); */

@media (max-width: 980px) {
  #page-admin-bills .admin-list-row.bill-row-compact,
  #page-admin-bills .admin-nft-mint-row-compact.bill-row-compact {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  #page-admin-bills .admin-aligned-row > .list-row-status,
  #page-admin-bills .admin-aligned-row > .bill-row-actions,
  #page-admin-bills .admin-aligned-row > .list-row-actions,
  #page-admin-bills .admin-aligned-row > .admin-row-actions {
    grid-column: auto;
    justify-self: start;
    margin-left: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
  }

  #page-admin-bills .admin-aligned-row > .admin-row-actions {
    flex-wrap: wrap;
  }
}

/* Primary tabs vs secondary action hierarchy */
.admin-list-tabs .tab,
#page-lender .admin-list-tabs .tab,
#page-admin-bills .admin-list-tabs .tab {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
}
.compact-filter-tabs .tab,
.admin-mint-subtab,
.logs-chip {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Unified list rail hardening: keep status/action aligned */
.ulist-row .ulist-col-status,
.platform-list-row .platform-list-col-status {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
}

.ulist-row .ulist-col-actions,
.platform-list-row .platform-list-col-actions {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

.ulist-row .list-row-status,
.platform-list-row .list-row-status {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.ulist-row .list-row-actions,
.platform-list-row .list-row-actions {
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

#page-admin-bills #bill-review-list .admin-aligned-row.ulist-row {
  column-gap: 12px;
}

#page-admin-bills #bill-review-list .admin-aligned-row .ulist-status-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

#page-admin-bills #bill-review-list .admin-aligned-row .admin-pending-status-group {
  width: auto;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  flex-wrap: nowrap;
}

#page-admin-bills #bill-review-list .admin-aligned-row .admin-pending-status-group .badge {
  max-width: 100%;
}

#page-admin-bills #bill-review-list .admin-aligned-row .admin-pending-type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 18px;
  margin-top: 0;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .05);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.ulist-row .list-row-actions .btn,
.platform-list-row .list-row-actions .btn {
  min-width: 86px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ulist-row .ulist-value,
.platform-list-row .list-row-field > strong,
.platform-list-row .list-id-value,
.platform-list-row .loan-stage-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .ulist-row .ulist-col-status,
  .platform-list-row .platform-list-col-status {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
  }

  .ulist-row .ulist-col-actions,
  .platform-list-row .platform-list-col-actions {
    width: 188px;
    min-width: 188px;
    max-width: 188px;
  }

  .ulist-row .list-row-actions,
  .platform-list-row .list-row-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .ulist-row .ulist-col-status,
  .platform-list-row .platform-list-col-status {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
  }

  .ulist-row .ulist-col-actions,
  .platform-list-row .platform-list-col-actions {
    width: 172px;
    min-width: 172px;
    max-width: 172px;
  }

  .ulist-row .list-row-actions,
  .platform-list-row .list-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ulist-row .list-row-actions .btn,
  .platform-list-row .list-row-actions .btn {
    min-width: 78px;
  }
}

/* ============================================================
   Global list-header rail alignment
   Purpose: unify top tabs / status chips / list width baseline
   ============================================================ */
:root {
  --content-rail-width: 1040px;
  --rail-shell-gap: 10px;
  --rail-shell-radius: 18px;
  --rail-shell-border: rgba(0, 107, 214, .14);
  --rail-shell-bg: linear-gradient(180deg, rgba(247, 251, 255, .98), rgba(238, 245, 255, .96));
  --rail-shell-muted-bg: linear-gradient(180deg, rgba(251, 253, 255, .98), rgba(245, 249, 255, .95));
}

.borrower-dashboard-shell,
.content-align-frame,
.detail-page,
.detail-list-page {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

.list-rail-shell {
  display: flex;
  flex-direction: column;
  gap: var(--rail-shell-gap);
}

.list-rail-shell > * {
  margin-top: 0;
  margin-bottom: 0;
}

.list-rail-shell > .content-align-frame,
.list-rail-shell > .detail-page-head,
.list-rail-shell > .my-txs-filter-panel,
.list-rail-shell > .lender-overview-table,
.list-rail-shell > .admin-workbench-summary,
.list-rail-shell > .admin-issued-filter {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

.list-rail-shell > .tabs.content-align-frame,
.list-rail-shell > .borrower-hub-tabs-wrap.content-align-frame,
#page-admin-bills .admin-bills-list-shell > .tabs.content-align-frame {
  display: flex;
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.list-rail-shell > .tabs.content-align-frame,
.list-rail-shell > .borrower-hub-tabs-wrap.content-align-frame,
.list-rail-shell > .page-toolbar.content-align-frame,
.list-rail-shell > .lender-records-head.content-align-frame,
.list-rail-shell > .my-txs-filter-panel,
.list-rail-shell > .admin-workbench-summary,
.list-rail-shell > .admin-issued-filter,
#page-admin-bills .admin-bills-list-shell > .tabs.content-align-frame {
  padding: 12px 14px;
  border: 1px solid var(--rail-shell-border);
  border-radius: var(--rail-shell-radius);
  background: var(--rail-shell-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.list-rail-shell > .tabs.content-align-frame .tab,
.list-rail-shell > .borrower-hub-tabs-wrap .tab,
#page-admin-bills .admin-bills-list-shell > .tabs.content-align-frame .tab {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 107, 214, .16);
  background: rgba(255, 255, 255, .72);
  color: #35506d;
  font-size: 13px;
  font-weight: 760;
  box-shadow: none;
}

.list-rail-shell > .tabs.content-align-frame .tab:hover,
.list-rail-shell > .borrower-hub-tabs-wrap .tab:hover,
#page-admin-bills .admin-bills-list-shell > .tabs.content-align-frame .tab:hover {
  background: rgba(255, 255, 255, .92);
  color: #0f5db8;
}

.list-rail-shell > .tabs.content-align-frame .tab.active,
.list-rail-shell > .borrower-hub-tabs-wrap .tab.active,
#page-admin-bills .admin-bills-list-shell > .tabs.content-align-frame .tab.active {
  border-color: rgba(0, 107, 214, .44);
  background: linear-gradient(135deg, #006bd6, #1686ff);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 107, 214, .20);
}

.list-rail-shell .logs-chip-group,
.list-rail-shell .my-txs-status-tabs,
.list-rail-shell .bill-library-status-tabs,
.list-rail-shell .bill-library-main-tabs,
.list-rail-shell .admin-mint-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid rgba(0, 107, 214, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.list-rail-shell .logs-chip,
.list-rail-shell .my-txs-status-tabs .logs-chip,
.list-rail-shell .bill-library-status-tabs .logs-chip,
.list-rail-shell .bill-library-main-tabs .logs-chip {
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #56708a;
  font-size: 12px;
  font-weight: 680;
  box-shadow: none;
}

.list-rail-shell .logs-chip:hover,
.list-rail-shell .my-txs-status-tabs .logs-chip:hover,
.list-rail-shell .bill-library-status-tabs .logs-chip:hover,
.list-rail-shell .bill-library-main-tabs .logs-chip:hover {
  background: rgba(232, 241, 255, .76);
  color: #0f5db8;
}

.list-rail-shell .logs-chip.active,
.list-rail-shell .my-txs-status-tabs .logs-chip.active,
.list-rail-shell .bill-library-status-tabs .logs-chip.active,
.list-rail-shell .bill-library-main-tabs .logs-chip.active {
  border-color: rgba(0, 107, 214, .18);
  background: #e8f1ff;
  color: #0f5db8;
  box-shadow: none;
}

.list-rail-shell > .bill-row-list.content-align-frame,
.list-rail-shell > .bill-row-list,
.list-rail-shell > .nft-grid.content-align-frame,
.list-rail-shell > .admin-nft-mint-list.content-align-frame,
.list-rail-shell > .lender-overview-table,
.list-rail-shell > .card.content-align-frame {
  margin-top: 0;
}

#page-admin-bills .admin-bills-toolbar.content-align-frame {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

#page-admin-bills .admin-bills-list-shell {
  gap: 12px;
}

#page-admin-bills .admin-bills-list-shell > .tab-content.active {
  display: block;
  width: 100%;
}

#page-admin-bills .admin-bills-list-shell > .tab-content > .content-align-frame,
#page-admin-bills .admin-bills-list-shell > .tab-content > .list-rail-shell.content-align-frame {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

#page-admin-bills .admin-bills-list-shell > .tab-content > .list-rail-shell.content-align-frame {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#page-lender .lender-overview-list-shell .lender-overview-table {
  width: 100%;
}

#page-lender .lender-overview-frame {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

#page-lender .lender-records-head.content-align-frame,
#page-lender .lender-overview-filter {
  width: 100%;
}

#page-lender .lender-overview-filter.card,
#page-lender .lender-records-head.content-align-frame {
  padding: 12px 14px;
  border-radius: var(--rail-shell-radius);
  border-color: var(--rail-shell-border);
  background: var(--rail-shell-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

#page-lender .lender-overview-filter .logs-filter-group,
#page-lender .lender-records-head.content-align-frame .logs-filter-group {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
}

[data-detail-view="bill-records"] .detail-page-section {
  background: var(--rail-shell-muted-bg);
}

[data-detail-view="bill-records"] .list-rail-shell {
  gap: 12px;
}

[data-detail-view="bill-records"] .bill-library-main-tabs {
  width: max-content;
  max-width: 100%;
}

#page-pool .borrower-hub-tabs-wrap.content-align-frame,
#page-pool .borrower-nft-status-tabs.content-align-frame,
#page-pool .borrower-nft-status-actions.page-toolbar.content-align-frame,
#page-pool #borrower-hub-borrowed-loans > .page-toolbar.content-align-frame,
#page-pool #borrower-hub-unminted-bills > .page-toolbar.content-align-frame {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

#page-pool .borrower-hub-tabs-wrap.content-align-frame,
#page-pool .borrower-nft-status-tabs.content-align-frame,
#page-pool .borrower-nft-status-actions.page-toolbar.content-align-frame,
#page-pool #borrower-hub-borrowed-loans > .page-toolbar.content-align-frame,
#page-pool #borrower-hub-unminted-bills > .page-toolbar.content-align-frame {
  padding: 10px 12px;
  border: 1px solid var(--rail-shell-border);
  border-radius: var(--rail-shell-radius);
  background: var(--rail-shell-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

#page-pool .borrower-hub-tabs-wrap.content-align-frame {
  justify-content: space-between;
}

#page-pool .borrower-hub-tabs-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

#page-pool .borrower-hub-value-note {
  flex: 1 0 100%;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 107, 214, .10);
  background: rgba(232, 241, 255, .58);
  color: #49627d;
  font-size: 11px;
  line-height: 1.45;
}

#page-pool .borrower-nft-status-tabs.content-align-frame {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
}

#page-pool .borrower-nft-status-actions .toolbar-actions,
#page-pool #borrower-hub-borrowed-loans > .page-toolbar .logs-chip-group,
#page-pool #borrower-hub-unminted-bills > .page-toolbar .toolbar-actions {
  margin-left: 0;
}

@media (max-width: 900px) {
  #page-pool .borrower-hub-tabs-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-rail-shell > .tabs.content-align-frame,
  .list-rail-shell > .borrower-hub-tabs-wrap.content-align-frame,
  #page-admin-bills .admin-bills-list-shell > .tabs.content-align-frame,
  #page-pool .borrower-hub-tabs-wrap.content-align-frame {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .list-rail-shell > .tabs.content-align-frame,
  .list-rail-shell > .borrower-hub-tabs-wrap.content-align-frame,
  #page-admin-bills .admin-bills-list-shell > .tabs.content-align-frame {
    padding: 10px 12px;
  }

  .list-rail-shell .logs-chip-group,
  .list-rail-shell .my-txs-status-tabs,
  .list-rail-shell .bill-library-status-tabs,
  .list-rail-shell .bill-library-main-tabs {
    width: 100%;
  }

  .list-rail-shell .logs-chip,
  .list-rail-shell .my-txs-status-tabs .logs-chip,
  .list-rail-shell .bill-library-status-tabs .logs-chip,
  .list-rail-shell .bill-library-main-tabs .logs-chip {
    flex: 0 0 auto;
  }
}

/* ============================================================
   Final content baseline overrides
   Purpose: keep primary tabs / secondary filters / list rails aligned
============================================================ */
.list-rail-shell.content-align-frame,
.borrower-section-rail.content-align-frame,
.borrower-records-rail-shell.content-align-frame {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

.list-rail-shell > .my-txs-status-tabs.content-align-frame,
.list-rail-shell > .bill-library-main-tabs.content-align-frame {
  display: flex;
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--rail-shell-border);
  border-radius: var(--rail-shell-radius);
  background: var(--rail-shell-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.list-rail-shell > .my-txs-status-tabs.content-align-frame .logs-chip,
.list-rail-shell > .bill-library-main-tabs.content-align-frame .logs-chip {
  min-height: 30px;
}

#page-admin-bills .tabs.admin-filter-tabs.content-align-frame,
#page-lender .tabs.admin-filter-tabs.admin-list-tabs.content-align-frame,
#page-pool .borrower-nft-status-tabs.content-align-frame {
  display: flex;
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

#page-lender .lender-records-head.content-align-frame,
#page-lender .lender-records-head.content-align-frame:not(.card) {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
  padding: 12px 14px;
  border: 1px solid var(--rail-shell-border);
  border-radius: var(--rail-shell-radius);
  background: var(--rail-shell-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

#page-lender .lender-records-head.content-align-frame .logs-filter-group,
#page-lender .lender-records-head.content-align-frame:not(.card) .logs-filter-group {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
}

#page-lender .lender-records-head.content-align-frame .logs-chip-group,
#page-lender .lender-records-head.content-align-frame:not(.card) .logs-chip-group {
  width: auto;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#page-pool .borrower-section-rail {
  gap: 10px;
}

#page-pool .borrower-section-rail > .page-toolbar.content-align-frame,
#page-pool .borrower-section-rail > .bill-row-list.content-align-frame,
#page-pool .borrower-section-rail > .nft-grid.content-align-frame,
#page-pool .borrower-section-rail > .card.content-align-frame,
#page-pool .borrower-section-rail > .empty-state.content-align-frame,
.borrower-records-rail-shell > .my-txs-filter-panel.content-align-frame,
.borrower-records-rail-shell > .bill-row-list,
.borrower-records-rail-shell > .card {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

[data-detail-view="loan-records"] .detail-page-section,
[data-detail-view="bill-records"] .detail-page-section {
  background: var(--rail-shell-muted-bg);
}

[data-detail-view="loan-records"] .borrower-records-rail-shell,
[data-detail-view="bill-records"] .borrower-records-rail-shell {
  gap: 12px;
}

@media (max-width: 768px) {
  .list-rail-shell > .my-txs-status-tabs.content-align-frame,
  .list-rail-shell > .bill-library-main-tabs.content-align-frame {
    width: 100%;
    padding: 10px 12px;
  }
}

/* ============================================================
   Final amount layout polish
   Purpose: keep full integer USD amounts readable without widening cards
============================================================ */
.metric-text.metric-amount,
.amount-value.money-value.numeric-value {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  max-width: 100%;
  gap: .08em .32em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -.012em;
  vertical-align: baseline;
  white-space: nowrap;
  overflow-wrap: normal;
}

.metric-text.metric-amount .metric-number {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
}

.metric-text.metric-amount .metric-unit {
  flex: 0 0 auto;
  align-self: baseline;
  margin-left: .01em;
  white-space: nowrap;
  letter-spacing: .045em;
}

.stat-value,
.borrow-hero-amount,
.borrow-quota-chart-center strong,
.borrow-quota-metrics strong,
#jnft-grid-dashboard .dashboard-pool-available strong {
  max-width: 100%;
  min-width: 0;
}

.borrow-hero-amount {
  font-size: clamp(24px, 3.2vw, 34px);
  overflow-wrap: normal;
}

.borrow-hero-amount .metric-text,
.stat-value .metric-text,
#jnft-grid-dashboard .dashboard-pool-available strong .metric-text {
  justify-content: flex-start;
}

.stat-value .metric-text.metric-amount,
.borrow-hero-amount .metric-text.metric-amount,
.pool-detail-body .stat-value .metric-text.metric-amount,
.pool-detail-section-quota .stat-value .metric-text.metric-amount,
#jnft-grid-dashboard .dashboard-pool-available strong .metric-text.metric-amount,
#jnft-grid-dashboard .dashboard-pool-fields .list-row-field-amount .metric-text.metric-amount {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.stat-value .metric-text.metric-amount {
  gap: .06em .18em;
}

.stat-value .metric-unit {
  font-size: .54em;
  letter-spacing: .055em;
}

.stat-grid-5 .stat-card {
  padding-left: clamp(12px, 1.4vw, 16px);
  padding-right: clamp(12px, 1.4vw, 16px);
}

.stat-grid-5 .stat-value {
  font-size: clamp(18px, 1.75vw, 24px);
  letter-spacing: -.026em;
}

.pool-detail-body .stat-grid-5 .stat-value,
.pool-detail-section-quota .stat-grid-5 .stat-value {
  font-size: clamp(17px, 1.55vw, 22px);
}

.pool-detail-body .stat-sub .metric-text.metric-amount,
.pool-detail-section-quota .stat-sub .metric-text.metric-amount {
  gap: .04em .18em;
}

.pool-detail-body .stat-sub .metric-unit,
.pool-detail-section-quota .stat-sub .metric-unit {
  font-size: .68em;
}

.borrow-quota-chart-center strong .metric-text,
.borrow-quota-metrics .metric-text {
  flex-wrap: wrap;
  white-space: normal;
}

.borrow-quota-chart-center strong .metric-number {
  min-width: min(100%, 8ch);
}

.borrow-quota-metrics strong .metric-number {
  min-width: min(100%, 10ch);
}

.list-row-field-amount,
.ulist-col-amount {
  min-width: 0;
  text-align: right;
}

.list-row-field-amount > strong,
.ulist-col-amount .ulist-value,
.detail-val,
.nft-meta-value,
.credit-nft-field strong,
.credit-nft-field-value,
.nft-detail-summary-item strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.list-row-field-amount .metric-text,
.ulist-col-amount .metric-text {
  justify-content: flex-end;
  text-align: right;
}

.detail-row {
  min-width: 0;
  gap: 12px;
}

.detail-key {
  flex: 0 0 auto;
}

.detail-val {
  flex: 1 1 auto;
  text-align: right;
}

.detail-val .metric-text {
  justify-content: flex-end;
}

.nft-meta-row {
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.nft-meta-label {
  flex: 0 0 auto;
}

.nft-meta-value {
  flex: 1 1 auto;
  text-align: right;
}

.nft-meta-value .metric-text,
.credit-nft-field strong .metric-text,
.credit-nft-field-value .metric-text,
.nft-detail-summary-item strong .metric-text {
  justify-content: flex-end;
}

#jnft-grid-dashboard .dashboard-pool-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field > strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#jnft-grid-dashboard .dashboard-pool-used {
  white-space: normal;
  overflow-wrap: anywhere;
}

#jnft-grid-dashboard .dashboard-pool-fields {
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 10px;
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field {
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid rgba(0,107,214,.12);
  border-left: 1px solid rgba(0,107,214,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 10.5px;
  line-height: 1.25;
  white-space: normal;
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field > strong {
  display: block;
  color: #284461;
  font-size: clamp(12.5px, 1.12vw, 14px);
  line-height: 1.18;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field-amount .metric-text {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: .28em;
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field-amount .metric-number {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
}

#jnft-grid-dashboard .dashboard-pool-fields .list-row-field-amount .metric-unit {
  font-size: .72em;
  letter-spacing: .04em;
}

#jnft-grid-dashboard .dashboard-pool-available {
  padding-left: clamp(16px, 2vw, 24px);
  padding-right: clamp(16px, 2vw, 24px);
}

#jnft-grid-dashboard .dashboard-pool-available strong .metric-text,
#jnft-grid-dashboard .dashboard-pool-used .metric-text {
  justify-content: center;
}

#jnft-grid-dashboard .dashboard-pool-available strong .metric-number {
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
}

#jnft-grid-dashboard .dashboard-pool-used .metric-text {
  flex-wrap: nowrap;
  gap: .24em;
}

#jnft-grid-dashboard .dashboard-pool-used .metric-number {
  min-width: 0;
  white-space: nowrap;
}

.credit-pool-info-card strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.input-prefix {
  min-width: 14px;
  text-align: center;
}

.input-prefix + .form-input.amount-input,
.input-group .input-prefix + .form-input.amount-input {
  padding-left: 34px;
}

.form-input.amount-input {
  min-width: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

@media (max-width: 768px) {
  #jnft-grid-dashboard .dashboard-pool-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #jnft-grid-dashboard .dashboard-pool-fields .list-row-field-amount .metric-text,
  #jnft-grid-dashboard .dashboard-pool-used .metric-text {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  #jnft-grid-dashboard .dashboard-pool-fields .list-row-field-amount .metric-number,
  #jnft-grid-dashboard .dashboard-pool-used .metric-number {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .list-row-field-amount,
  .ulist-col-amount,
  .detail-val,
  .nft-meta-value {
    text-align: left;
  }

  .list-row-field-amount .metric-text,
  .ulist-col-amount .metric-text,
  .detail-val .metric-text,
  .nft-meta-value .metric-text {
    justify-content: flex-start;
  }
}

/* ============================================================
  Admin bills compact sync
  Scope: #page-admin-bills only
============================================================ */
#page-admin-bills #bill-review-list,
#page-admin-bills #admin-bill-mint-list,
#page-admin-bills #admin-active-loan-list,
#page-admin-bills #bill-issued-grid {
  width: min(100%, var(--content-rail-width));
  max-width: var(--content-rail-width);
  margin-left: auto;
  margin-right: auto;
}

#page-admin-bills #bill-review-list > .admin-workbench-summary,
#page-admin-bills #bill-review-list > .bill-row-list.bill-row-list-compact,
#page-admin-bills #admin-bill-mint-list .bill-row-list.bill-row-list-compact,
#page-admin-bills #admin-active-loan-list > .bill-row-list.bill-row-list-compact,
#page-admin-bills #bill-issued-grid > .bill-row-list.bill-row-list-compact {
  max-width: var(--content-rail-width);
}

#page-admin-bills .admin-bill-top-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

#page-admin-bills .admin-bill-overview-shell {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 107, 214, .14);
  background: linear-gradient(135deg, rgba(252, 253, 255, .98), rgba(243, 248, 255, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

#page-admin-bills .admin-bill-overview-main {
  display: block;
}

#page-admin-bills .admin-bill-tabs-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

#page-admin-bills .admin-bill-overview-kicker {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--text-muted);
}

#page-admin-bills .tabs.admin-filter-tabs,
#page-admin-bills .tabs.admin-filter-tabs.content-align-frame {
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#page-admin-bills .tabs.admin-filter-tabs .tab,
#page-admin-bills .tabs.admin-filter-tabs.content-align-frame .tab,
#page-admin-bills .admin-list-tabs .tab {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 13px;
  border: 1px solid rgba(0, 107, 214, .26);
  background: rgba(255, 255, 255, .96);
  color: #3f5c79;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

#page-admin-bills .tabs.admin-filter-tabs .tab:hover,
#page-admin-bills .tabs.admin-filter-tabs.content-align-frame .tab:hover,
#page-admin-bills .admin-list-tabs .tab:hover {
  border-color: rgba(0, 107, 214, .32);
  background: rgba(245, 250, 255, .96);
  color: var(--accent-hover);
}

#page-admin-bills .tabs.admin-filter-tabs .tab.active,
#page-admin-bills .tabs.admin-filter-tabs.content-align-frame .tab.active,
#page-admin-bills .admin-list-tabs .tab.active {
  border-color: rgba(0, 107, 214, .34);
  background: linear-gradient(135deg, #006bd6, #1686ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 107, 214, .18);
}

#page-admin-bills .admin-workbench-inline-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100%;
  gap: 0;
}

#page-admin-bills .admin-workbench-inline-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

#page-admin-bills .admin-workbench-inline-kicker {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--text-muted);
}

#page-admin-bills .admin-workbench-inline-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--text);
}

#page-admin-bills .admin-workbench-inline-title {
  font-size: clamp(28px, 3vw, 34px);
  line-height: .96;
  letter-spacing: -.03em;
  color: var(--text);
}

#page-admin-bills .admin-workbench-inline-caption {
  font-size: 13px;
  line-height: 1.35;
  color: #4b657f;
}

#page-admin-bills .admin-workbench-inline-empty {
  margin-top: 0;
}

#page-admin-bills .admin-workbench-summary {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

#page-admin-bills .admin-workbench-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
}

#page-admin-bills .admin-workbench-summary .font-semibold {
  font-size: 13px;
  line-height: 1.3;
}

#page-admin-bills .admin-workbench-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#page-admin-bills .admin-workbench-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 107, 214, .16);
  background: rgba(255, 255, 255, .92);
  color: #5a7088;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

#page-admin-bills .admin-workbench-chip strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

#page-admin-bills .admin-workbench-chip.is-secondary {
  opacity: .76;
}

#drawer-admin-borrower-bill-nft .drawer-body {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9ff 100%);
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-drawer-summary {
  padding: 16px 18px 18px;
  border: 1px solid rgba(0, 107, 214, .14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 248, 255, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 10px 26px rgba(15, 23, 42, .05);
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-summary-head {
  align-items: flex-start;
  margin-bottom: 2px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-summary-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-summary-title {
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -.01em;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-summary-subtitle {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.45;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-summary-stats {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 14px 15px 15px;
  border-radius: 18px;
  border: 1px solid rgba(0, 107, 214, .10);
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-stat-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-stat-value {
  display: inline-flex;
  align-items: flex-end;
  align-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 780;
  line-height: 1.02;
  color: var(--text);
  letter-spacing: -.012em;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-stat-value .metric-text {
  display: inline-flex;
  align-items: flex-end;
  align-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-width: 100%;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-stat-value .metric-number {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-stat-value .metric-unit {
  padding-bottom: .12em;
  white-space: nowrap;
  font-size: .48em;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #60758d;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 107, 214, .10);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-identity strong {
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-identity span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(247, 250, 255, .92);
  border: 1px solid rgba(16, 32, 51, .06);
  justify-content: space-between;
  min-height: 88px;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stat span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stat strong {
  color: var(--text);
  font-size: clamp(17px, 1.9vw, 23px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stat strong .metric-text {
  display: inline-flex;
  align-items: flex-end;
  align-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-width: 100%;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stat strong .metric-number {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

#drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stat strong .metric-unit {
  padding-bottom: .1em;
  font-size: .5em;
  letter-spacing: .07em;
}

@media (max-width: 720px) {
  #page-admin-bills .admin-bill-overview-main {
    display: block;
  }

  #page-admin-bills .admin-workbench-inline-head {
    align-items: flex-start;
  }

  #drawer-admin-borrower-bill-nft .admin-borrower-nft-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #drawer-admin-borrower-bill-nft .admin-borrower-nft-panel-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #drawer-admin-borrower-bill-nft .admin-borrower-nft-summary-stats {
    grid-template-columns: 1fr;
  }
}

#page-admin-bills .bill-row-list.bill-row-list-compact {
  gap: 6px;
}

#page-admin-bills .admin-list-row.bill-row-compact {
  grid-template-columns: minmax(210px, .96fr) minmax(0, 1.72fr) minmax(148px, 164px);
  column-gap: 12px;
  row-gap: 8px;
  min-height: 92px;
  padding: 9px 12px;
  border-radius: 14px;
}

#page-admin-bills .admin-list-row .ulist-col-status {
  width: 116px;
  min-width: 116px;
  max-width: 116px;
  justify-self: end;
}

#page-admin-bills .admin-list-row .ulist-col-actions {
  width: 164px;
  min-width: 164px;
  max-width: 164px;
  justify-self: end;
}

#page-admin-bills .admin-list-row .bill-row-main {
  gap: 2px;
}

#page-admin-bills .admin-list-row .bill-row-meta {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
}

#page-admin-bills .admin-list-row .list-row-fields {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px 10px;
}

#page-admin-bills .admin-list-row .list-row-field {
  min-height: 34px;
}

#page-admin-bills .admin-list-row .list-id-label,
#page-admin-bills .admin-list-row .list-row-field > span {
  font-size: 10px;
}

#page-admin-bills .admin-list-row .list-id-value {
  font-size: 13px;
}

#page-admin-bills .admin-list-row .list-row-field > strong,
#page-admin-bills .admin-list-row .list-row-field-date > strong,
#page-admin-bills .admin-list-row .list-row-field-amount > strong {
  font-size: 12px;
  line-height: 1.3;
}

#page-admin-bills .admin-aligned-row > .list-row-status {
  min-width: 116px;
  max-width: 116px;
}

#page-admin-bills .admin-aligned-row > .bill-row-actions,
#page-admin-bills .admin-aligned-row > .list-row-actions,
#page-admin-bills .admin-aligned-row > .admin-row-actions,
#page-admin-bills .admin-list-row .bill-row-actions,
#page-admin-bills .admin-list-row .list-row-actions {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

#page-admin-bills .admin-list-row .list-row-actions,
#page-admin-bills .admin-list-row .admin-row-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

#page-admin-bills .admin-aligned-row > .admin-row-actions .btn,
#page-admin-bills .admin-list-row .bill-row-actions .btn,
#page-admin-bills .admin-list-row .list-row-actions .btn {
  min-width: 82px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  #page-admin-bills .admin-list-row.bill-row-compact {
    grid-template-columns: minmax(196px, .9fr) minmax(0, 1fr);
  }

  #page-admin-bills .admin-list-row .ulist-col-status,
  #page-admin-bills .admin-list-row .ulist-col-actions {
    width: auto;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 980px) {
  #page-admin-bills .admin-aligned-row > .list-row-status,
  #page-admin-bills .admin-aligned-row > .bill-row-actions,
  #page-admin-bills .admin-aligned-row > .list-row-actions,
  #page-admin-bills .admin-aligned-row > .admin-row-actions,
  #page-admin-bills .admin-list-row .bill-row-actions,
  #page-admin-bills .admin-list-row .list-row-actions {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

}

/* Admin lending overview hierarchy cleanup */
#page-admin-pool .lender-overview-frame {
  width: min(100%, 1120px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#page-admin-pool .admin-pool-top-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 560px);
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(136, 160, 187, .20);
  border-radius: 16px;
  background: #f4f8fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

#page-admin-pool .admin-pool-top-tab {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #52657d;
}

#page-admin-pool .admin-pool-top-tab.active {
  border-color: rgba(0, 107, 214, .20);
  background: #fff;
  color: #0057b8;
  box-shadow: 0 6px 16px rgba(16, 54, 94, .08);
}

#page-admin-pool .admin-pool-section,
#page-admin-pool .admin-pool-overview-block,
#page-admin-pool .lender-overview-row,
#page-admin-pool .admin-pool-borrower-overview,
#page-admin-pool .admin-pool-object-summary,
#page-admin-pool .admin-borrower-nft-metrics-summary,
#page-admin-pool .detail-page-head,
#page-admin-pool .detail-page-section,
#page-admin-pool .detail-summary-card {
  border-color: rgba(136, 160, 187, .20);
  background: #fff;
  color: #102033;
  box-shadow: 0 10px 24px rgba(16, 54, 94, .06);
}

#page-admin-pool .admin-pool-section {
  gap: 18px;
  padding: 18px;
}

#page-admin-pool .admin-pool-overview-panel {
  background: linear-gradient(180deg, #fff, #f8fbff);
}

#page-admin-pool .admin-pool-overview-hero,
#page-admin-pool .admin-pool-block-head,
#page-admin-pool .admin-pool-list-head,
#page-admin-pool .detail-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

#page-admin-pool .admin-pool-overview-copy {
  min-width: 0;
}

#page-admin-pool .admin-pool-overview-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#page-admin-pool .admin-pool-overview-status > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 107, 214, .12);
  background: #f3f8ff;
  color: #40546c;
  font-size: 12px;
  font-weight: 700;
}

#page-admin-pool .admin-pool-primary-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#page-admin-pool .admin-pool-primary-kpis .stat-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(136, 160, 187, .18);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 107, 214, .06), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 8px 20px rgba(16, 54, 94, .05);
}

#page-admin-pool .admin-pool-primary-kpis .stat-value {
  color: #102033;
}

#page-admin-pool .admin-pool-primary-kpis .stat-sub {
  margin-top: 6px;
  color: #60758d;
  font-size: 12px;
}

#page-admin-pool .admin-pool-overview-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
}

#page-admin-pool .admin-pool-focus-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 12px;
}

#page-admin-pool .admin-pool-object-summary,
#page-admin-pool .admin-pool-borrower-overview,
#page-admin-pool .admin-borrower-nft-metrics-summary {
  min-height: 100%;
  border-radius: 16px;
}

#page-admin-pool .lender-overview-row {
  background:
    linear-gradient(90deg, rgba(0, 107, 214, .035), transparent 34%),
    #fff;
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .12), 0 8px 20px rgba(16, 54, 94, .05);
}

#page-admin-pool .lender-overview-row:hover {
  border-color: rgba(0, 107, 214, .26);
  background: #f8fbff;
  box-shadow: inset 3px 0 0 rgba(0, 107, 214, .22), 0 10px 24px rgba(16, 54, 94, .07);
}

#page-admin-pool .lender-overview-section-title,
#page-admin-pool .lender-overview-value,
#page-admin-pool .admin-pool-object-summary-stat strong,
#page-admin-pool .admin-pool-borrower-overview .admin-borrower-nft-stat-value,
#page-admin-pool .admin-borrower-nft-stat-value,
#page-admin-pool .detail-page .stat-value {
  color: #102033;
}

#page-admin-pool .lender-overview-sub-value,
#page-admin-pool .lender-overview-company strong {
  color: #40546c;
}

#page-admin-pool .lender-overview-label,
#page-admin-pool .lender-overview-sub-label,
#page-admin-pool .admin-pool-section-subtitle,
#page-admin-pool .text-muted {
  color: #60758d;
}

#page-admin-pool .lender-overview-amount {
  color: #102033;
}

#page-admin-pool .admin-borrower-action-cell,
#page-admin-pool .ulist-col-actions,
#page-admin-pool .toolbar-actions {
  align-items: flex-end;
  justify-content: flex-end;
}

#page-admin-pool .admin-borrower-detail-summary {
  margin-bottom: 0;
}

#page-admin-pool .admin-borrower-summary-grid {
  margin-bottom: 0;
}

#page-admin-pool .admin-borrower-record-row {
  border-radius: 14px;
}

@media (max-width: 1180px) {
  #page-admin-pool .admin-pool-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #page-admin-pool .admin-pool-top-tabs,
  #page-admin-pool .lender-overview-kpi-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  #page-admin-pool .admin-pool-overview-status,
  #page-admin-pool .admin-borrower-action-cell,
  #page-admin-pool .ulist-col-actions,
  #page-admin-pool .toolbar-actions {
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
  }

  #page-admin-pool .admin-borrower-detail-summary .detail-summary-side,
  #page-admin-pool .admin-borrower-detail-summary .detail-summary-actions {
    width: 100%;
    align-items: stretch;
  }
}
