.hdb-rpc { --hdb-rpc-primary: #1f5e4a; --hdb-rpc-border: #e2e6df; --hdb-rpc-muted: #667066; --hdb-rpc-success: #1f7a4d; --hdb-rpc-error: #b23b3b; }

.hdb-rpc-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.hdb-rpc-stat-card { background: #fff; border: 1px solid var(--hdb-rpc-border); border-radius: 10px; padding: 1rem; text-align: center; }
.hdb-rpc-stat-number { font-size: 1.4rem; font-weight: 800; color: var(--hdb-rpc-primary); }
.hdb-rpc-stat-number.positive { color: var(--hdb-rpc-success); }
.hdb-rpc-stat-number.negative { color: var(--hdb-rpc-error); }
.hdb-rpc-stat-label { color: var(--hdb-rpc-muted); font-size: .8rem; margin-top: .25rem; }

.hdb-rpc-movers { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.hdb-rpc-movers li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--hdb-rpc-border); }
.hdb-rpc-up { color: var(--hdb-rpc-success); font-weight: 700; }
.hdb-rpc-down { color: var(--hdb-rpc-error); font-weight: 700; }

.hdb-rpc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.hdb-rpc-card { background: #fff; border: 1px solid var(--hdb-rpc-border); border-radius: 10px; padding: 1rem; }
.hdb-rpc-card h4 { margin: 0 0 .4rem; }
.hdb-rpc-card table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.hdb-rpc-card table td { padding: .3rem 0; border-top: 1px solid var(--hdb-rpc-border); }
.hdb-rpc-card table td:last-child { text-align: right; font-weight: 700; }
.hdb-rpc-muted { color: var(--hdb-rpc-muted); font-size: .8rem; margin: 0 0 .5rem; }

.hdb-rpc-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; background: #fff; border: 1px solid var(--hdb-rpc-border); border-radius: 10px; padding: 1.25rem; margin-bottom: 1.5rem; }
.hdb-rpc-field { display: flex; flex-direction: column; gap: .3rem; }
.hdb-rpc-field label { font-size: .8rem; color: var(--hdb-rpc-muted); font-weight: 600; }
.hdb-rpc-field select { padding: .5rem .6rem; border: 1px solid var(--hdb-rpc-border); border-radius: 6px; min-width: 160px; }

.hdb-rpc-btn { background: var(--hdb-rpc-primary); color: #fff !important; border: none; border-radius: 6px; padding: .6rem 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none !important; display: inline-block; margin: 0 .3rem; }
.hdb-rpc-btn-secondary { background: #fff; color: var(--hdb-rpc-primary) !important; border: 1px solid var(--hdb-rpc-primary); }

.hdb-rpc-notice { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.hdb-rpc-notice-info { background: #eef2fb; color: #33507a; }
.hdb-rpc-limit-banner { background: #fff7e6; border: 1px solid #e6a53a; border-radius: 10px; padding: 1.25rem; text-align: center; margin: 1.5rem 0; }

.hdb-rpc-table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.hdb-rpc-table { width: 100%; border-collapse: collapse; }
.hdb-rpc-table th, .hdb-rpc-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--hdb-rpc-border); text-align: left; font-size: .85rem; }

@media (max-width: 640px) {
	.hdb-rpc-form { flex-direction: column; align-items: stretch; }
	.hdb-rpc-field select { min-width: 0; width: 100%; }
}
