* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #1a1a2e;
	color: #e0e0e0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

a {
	color: #6c9bd2;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px;
}

h1 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #c0c0d0;
}

/* tabs */
.tab-bar {
	display: flex;
	gap: 2px;
	margin-bottom: 16px;
	border-bottom: 1px solid #2a2a4e;
}

.tab-bar button {
	background: transparent;
	border: none;
	color: #8888aa;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 13px;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.tab-bar button:hover {
	color: #c0c0d0;
}

.tab-bar button.active {
	color: #e0e0e0;
	border-bottom-color: #6c9bd2;
}

/* filters */
.filter-bar {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
	align-items: center;
}

.filter-bar input,
.filter-bar select {
	background: #16162b;
	border: 1px solid #2a2a4e;
	color: #e0e0e0;
	padding: 6px 10px;
	font-size: 13px;
	border-radius: 3px;
}

.filter-bar input::placeholder {
	color: #555570;
}

.filter-bar input:focus,
.filter-bar select:focus {
	outline: none;
	border-color: #6c9bd2;
}

.filter-bar label {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #8888aa;
	font-size: 13px;
	cursor: pointer;
}

.filter-bar input[type="checkbox"] {
	accent-color: #6c9bd2;
}

.filter-bar button {
	background: #2a2a4e;
	border: 1px solid #3a3a5e;
	color: #c0c0d0;
	padding: 6px 14px;
	font-size: 13px;
	border-radius: 3px;
	cursor: pointer;
}

.filter-bar button:hover {
	background: #3a3a5e;
}

/* table */
.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.data-table th {
	text-align: left;
	padding: 8px 10px;
	background: #16162b;
	color: #8888aa;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #2a2a4e;
	cursor: pointer;
	user-select: none;
}

.data-table th:hover {
	color: #c0c0d0;
}

.data-table td {
	padding: 6px 10px;
	border-bottom: 1px solid #1e1e38;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 12px;
}

.data-table tr:nth-child(even) td {
	background: #1e1e35;
}

.data-table tr:hover td {
	background: #252548;
}

.data-table tr.clickable {
	cursor: pointer;
}

/* indicators */
.consensus-yes {
	color: #4ade80;
}

.consensus-no {
	color: #888;
}

.attestation-low {
	color: #f59e0b;
}

.attestation-ok {
	color: #4ade80;
}

/* pagination */
.pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 12px;
	font-size: 13px;
	color: #8888aa;
}

.pagination button {
	background: #2a2a4e;
	border: 1px solid #3a3a5e;
	color: #c0c0d0;
	padding: 4px 12px;
	font-size: 12px;
	border-radius: 3px;
	cursor: pointer;
}

.pagination button:hover {
	background: #3a3a5e;
}

.pagination button:disabled {
	opacity: 0.4;
	cursor: default;
}

/* detail view */
.detail-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.detail-header button {
	background: #2a2a4e;
	border: 1px solid #3a3a5e;
	color: #c0c0d0;
	padding: 4px 12px;
	font-size: 12px;
	border-radius: 3px;
	cursor: pointer;
}

.detail-header h2 {
	font-size: 16px;
	font-weight: 600;
	color: #c0c0d0;
}

.version-card {
	background: #16162b;
	border: 1px solid #2a2a4e;
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 8px;
}

.version-card.is-consensus {
	border-left: 3px solid #4ade80;
}

.version-card .version-meta {
	display: flex;
	gap: 16px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #8888aa;
}

.version-card .version-meta span {
	font-family: 'Consolas', 'Monaco', monospace;
}

.version-card .field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 4px 16px;
}

.version-card .field-row {
	display: flex;
	gap: 8px;
	font-size: 12px;
}

.version-card .field-label {
	color: #6c9bd2;
	min-width: 140px;
	flex-shrink: 0;
}

.version-card .field-value {
	font-family: 'Consolas', 'Monaco', monospace;
	color: #e0e0e0;
	word-break: break-all;
}

/* stats */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.stat-card {
	background: #16162b;
	border: 1px solid #2a2a4e;
	border-radius: 4px;
	padding: 16px;
	text-align: center;
}

.stat-card .stat-value {
	font-size: 28px;
	font-weight: 700;
	color: #6c9bd2;
	font-family: 'Consolas', 'Monaco', monospace;
}

.stat-card .stat-label {
	font-size: 12px;
	color: #8888aa;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
}

/* api docs */
.api-docs {
	max-width: 900px;
	padding: 0 0 40px;
}

.api-docs h2 {
	font-size: 16px;
	font-weight: 600;
	color: #c0c0d0;
	margin: 28px 0 10px;
}

.api-docs h2:first-child {
	margin-top: 0;
}

.api-docs h3 {
	font-size: 14px;
	font-weight: 600;
	color: #8888aa;
	margin: 16px 0 6px;
}

.api-docs p {
	margin: 6px 0;
	font-size: 13px;
	color: #b0b0c0;
	line-height: 1.6;
}

.api-docs code {
	background: #16162b;
	padding: 1px 5px;
	border-radius: 3px;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 12px;
	color: #6c9bd2;
}

.api-endpoint {
	background: #16162b;
	border: 1px solid #2a2a4e;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 8px;
}

.api-endpoint-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.api-method {
	background: #2a2a4e;
	color: #6c9bd2;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 3px;
	letter-spacing: 0.5px;
}

.api-path {
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 13px;
	color: #e0e0e0;
	background: none;
	padding: 0;
}

.api-params {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	margin: 10px 0;
}

.api-params th {
	text-align: left;
	padding: 6px 10px;
	background: #1a1a2e;
	color: #8888aa;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #2a2a4e;
}

.api-params td {
	padding: 5px 10px;
	border-bottom: 1px solid #1e1e38;
	color: #b0b0c0;
}

.api-params td:first-child code {
	color: #e0e0e0;
}

.api-response {
	background: #12122a;
	border: 1px solid #2a2a4e;
	border-radius: 3px;
	padding: 10px 12px;
	margin: 10px 0 4px;
	overflow-x: auto;
	font-size: 12px;
	line-height: 1.5;
}

.api-response code {
	background: none;
	padding: 0;
	color: #b0b0c0;
	font-family: 'Consolas', 'Monaco', monospace;
	white-space: pre;
}

/* status badges */
.status-badge {
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
}

.status-completed {
	background: #1a3a1a;
	color: #4ade80;
}

.status-partial {
	background: #3a2a1a;
	color: #f59e0b;
}

.status-failed {
	background: #3a1a1a;
	color: #f87171;
}

.status-pending,
.status-finalized,
.status-processing {
	background: #2a2a3e;
	color: #8888aa;
}

.loading {
	text-align: center;
	padding: 40px;
	color: #555570;
}

.error-msg {
	background: #2e1a1a;
	border: 1px solid #5e2a2a;
	color: #f87171;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 13px;
}
