/* Results list panel and its rows. */

#list-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#list-panel.open { transform: translateX(0); }

#list-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title close"
    "pager pager";
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
  padding: 10px 8px 10px 16px;
  background: var(--surface-2);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
#list-panel-title { grid-area: title; }
#list-panel-close { grid-area: close; }
#list-panel-pager { grid-area: pager; }
#list-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  min-width: 0;
  flex: 1;
}
.title-caveat { color: var(--text-muted); font-weight: 400; font-size: 11px; }
#list-panel-title svg { margin-top: 2px; flex-shrink: 0; opacity: .6; }
#list-panel-title strong { color: var(--accent); font-weight: 700; }
.title-lines { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.title-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.title-line strong { color: var(--accent); font-weight: 700; font-size: 14px; }
.title-sep { color: var(--text-muted); margin: 0 7px; }
#list-panel-close {
  background: var(--hover-tint);
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
#list-panel-close:hover { background: var(--hover-tint-strong); color: var(--text); }

#list-panel-body {
  flex: 1;
  overflow-y: auto;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s;
  min-height: 60px;
  color: var(--text);
}
.list-row:hover { background: var(--chip); }
.list-row.active {
  background: var(--chip-active);
  border-left-color: var(--accent);
}

.list-row-swatch {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  flex-shrink: 0;
  margin: 2px 0;
}

/* Base rank-circle styles shared with .cc-near-num live in style.css. */
.list-row-rank {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.list-rank-top { background: var(--accent-soft); color: var(--accent-fg); }
.list-row.active .list-row-rank { background: var(--accent); color: var(--text-on-primary); }

.list-row-info { flex: 1; min-width: 0; }
.list-row-addr {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.list-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap;
}
.list-tag-txn { background: var(--accent-soft); color: var(--accent-fg); }
.list-tag-scope { opacity: .65; font-weight: 400; }
.list-tag-info { opacity: .7; cursor: help; font-weight: 400; }
.list-tag-span { background: var(--hover-tint); color: var(--text-dim); }
.list-tag-track { background: var(--hover-tint); color: var(--text); font-variant-numeric: tabular-nums; }
.list-tag-mrt { background: var(--accent-soft); color: var(--accent-fg); }
.list-row-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color .12s, transform .12s;
}
.list-row:hover .list-row-arrow, .list-row.active .list-row-arrow { color: var(--accent); transform: translateX(2px); }

#list-panel-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#list-panel-pager[hidden] { display: none; }
.pager-btn {
  background: var(--accent-soft);
  border: 1px solid transparent;
  color: var(--accent-fg);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 30px;
  font-family: inherit;
  transition: background .12s, color .12s, transform .08s;
}
.pager-btn:hover:not([disabled]) {
  background: var(--accent);
  color: var(--text-on-primary);
}
.pager-btn:active:not([disabled]) { transform: scale(.97); }
.pager-btn[disabled] {
  background: var(--hover-tint);
  color: var(--text-muted);
  cursor: not-allowed;
}
.pager-label {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: center;
}
.pager-label strong { color: var(--accent); font-weight: 700; }

.list-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  color: var(--text-dim);
}
.list-error,
.list-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 26px 16px;
  color: var(--text-dim);
  text-align: center;
}
.list-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
