body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
}

#app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  margin-bottom: 20px;
}

.header p {
  margin: 4px 0;
}

.header h1 {
  margin: 0 0 8px;
}

.source {
  color: #94a3b8;
  font-size: 12px;
  word-break: break-all;
}

.toolbar {
  margin-bottom: 16px;
  min-height: 42px;
  display: flex;
  align-items: center;
}

input {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #111827;
  color: #e2e8f0;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.bottom-row,
.main-panel,
.side-panel {
  min-width: 0;
}

.side-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 18px;
}

.side-card-gap {
  margin-bottom: 20px;
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1f2937;
}

.side-card li:last-child {
  border-bottom: none;
}

.side-card .token {
  font-weight: 700;
}

.side-card .posts {
  color: #86efac;
}

.side-card .status {
  color: #93c5fd;
  font-size: 12px;
  text-align: right;
}

.side-card .meta {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.empty {
  color: #94a3b8;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid #1f2937;
  text-align: left;
  font-size: 14px;
}

th {
  background: #1e293b;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover {
  color: #93c5fd;
}

tr:hover td {
  background: #0b1220;
}

.flash-green td {
  animation: flashGreen 2.4s ease-out;
}

@keyframes flashGreen {
  0% { background: rgba(34, 197, 94, 0.75); }
  100% { background: transparent; }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.kline-section {
  margin-top: 0;
}

.top-row .side-panel {
  padding-top: 54px;
}

.bottom-row .side-panel {
  padding-top: 122px;
}

.section-title-row {
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 0 0 6px;
}

.section-subtitle {
  color: #94a3b8;
  font-size: 12px;
}

.pct-up {
  color: #86efac;
  font-weight: 700;
}

.pct-down {
  color: #fca5a5;
  font-weight: 700;
}

.pagination button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mini-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
}

.mini-pagination button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
}

.mini-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .split-row {
    grid-template-columns: 1fr;
  }

  .top-row .side-panel,
  .bottom-row .side-panel {
    padding-top: 0;
  }
}
