/* Theme */
:root {
	--bg: #ffffff;
	--bg-surface: #f8f9fa;
	--bg-elevated: #ffffff;
	--border: #e1e4e8;
	--text: #1a1a2e;
	--text-secondary: #5a6070;
	--text-muted: #8b8fa3;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
	--radius: 8px;
	--radius-sm: 4px;
	--green: #22c55e;
	--green-bg: #f0fdf4;
	--green-border: #bbf7d0;
	--red: #ef4444;
	--red-bg: #fef2f2;
	--red-border: #fecaca;
	--yellow: #f59e0b;
	--yellow-bg: #fffbeb;
	--yellow-border: #fde68a;
	--grey: #94a3b8;
	--grey-bg: #f1f5f9;
	--grey-border: #cbd5e1;
	--accent: #6366f1;
	--font:
		-apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
	--font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace;
	--sidebar-width: 200px;
	--topbar-height: 48px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1117;
		--bg-surface: #161822;
		--bg-elevated: #1e2030;
		--border: #2e3148;
		--text: #e2e4f0;
		--text-secondary: #a0a4c0;
		--text-muted: #6b6f8a;
		--shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
		--shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4);
		--green-bg: #052e16;
		--green-border: #166534;
		--red-bg: #350a0a;
		--red-border: #7f1d1d;
		--yellow-bg: #3b2506;
		--yellow-border: #92400e;
		--grey-bg: #1e293b;
		--grey-border: #475569;
	}
}

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

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	min-height: 100vh;
}

[x-cloak] {
	/* biome-ignore lint/complexity/noImportantStyles: Alpine.js x-cloak requires !important to prevent flash of unstyled content */
	display: none !important;
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

/* Top bar */
.topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--topbar-height);
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	z-index: 200;
}

.topbar-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
}

.topbar-brand .icon {
	width: 20px;
	height: 20px;
	background: var(--accent);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 11px;
	font-weight: 700;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.topbar-tenant {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--text-muted);
	margin: 0;
}

.topbar-tenant-label {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

.topbar-tenant select {
	background: var(--bg-surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 4px 8px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.topbar-tenant select:hover,
.topbar-tenant select:focus {
	border-color: var(--accent);
	outline: none;
}

.topbar-tenant-go {
	background: var(--bg-surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
}

.topbar-tenant-empty {
	font-size: 13px;
	color: var(--text-muted);
	font-style: italic;
}

.topbar-user {
	text-align: right;
}

.topbar-user-line {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	font-size: 13px;
	color: var(--text-secondary);
}

.topbar-username {
	font-weight: 500;
}

.topbar-signout {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	transition: all 0.15s ease;
}

.topbar-signout:hover {
	color: var(--text);
	background: var(--bg-surface);
}

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

/* Sidebar */
.sidebar {
	width: var(--sidebar-width);
	background: var(--bg-elevated);
	border-right: 1px solid var(--border);
	padding: 8px 0;
	flex-shrink: 0;
	position: fixed;
	top: var(--topbar-height);
	left: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.15s ease;
}

.nav-item:hover {
	color: var(--text);
	background: var(--bg-surface);
}

.nav-item.active {
	color: var(--accent);
	background: var(--bg-surface);
}

.nav-icon {
	width: 24px;
	height: 24px;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	font-family: var(--font-mono);
	flex-shrink: 0;
}

.nav-item.active .nav-icon {
	background: var(--accent);
	color: white;
}

/* Layout */
.main-content {
	margin-left: var(--sidebar-width);
	margin-top: var(--topbar-height);
	flex: 1;
	min-width: 0;
}

/* Page header */
.page-header {
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border);
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: var(--topbar-height);
	z-index: 100;
	backdrop-filter: blur(8px);
}

.page-header h1 {
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Filters */
.filters {
	padding: 12px 24px;
	display: flex;
	gap: 8px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-surface);
}

.filter-btn {
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: var(--font);
	display: flex;
	align-items: center;
}

.filter-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.filter-btn.active {
	background: var(--accent);
	border-color: var(--accent);
	color: white;
}

.filter-select {
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text-secondary);
	font-size: 13px;
	font-family: var(--font);
	cursor: pointer;
	appearance: none;
	padding-right: 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6f8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}

.filter-dropdown {
	position: relative;
}

.filter-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 8px;
	min-width: 200px;
	max-height: 300px;
	overflow-y: auto;
	z-index: 50;
}

/* Content list */
.list {
	max-width: 960px;
	margin: 0 auto;
	padding: 16px 24px;
}

/* Entry cards */
.entry {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 8px;
	overflow: hidden;
	transition: box-shadow 0.15s ease;
}

.entry:hover {
	box-shadow: var(--shadow);
}

.entry-header {
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.chevron {
	color: var(--text-muted);
	transition: transform 0.2s ease;
	font-size: 16px;
}

.entry.expanded .chevron {
	transform: rotate(90deg);
}

/* State dots */
.state-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.state-dot.pending {
	background: var(--yellow);
	box-shadow: 0 0 0 3px var(--yellow-border);
	animation: pulse 2s ease-in-out infinite;
}

.state-dot.succeeded {
	background: var(--green);
	box-shadow: 0 0 0 3px var(--green-border);
}

.state-dot.failed {
	background: var(--red);
	box-shadow: 0 0 0 3px var(--red-border);
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Badges */
.badge {
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge.pending {
	background: var(--yellow-bg);
	color: var(--yellow);
	border: 1px solid var(--yellow-border);
}
.badge.succeeded {
	background: var(--green-bg);
	color: var(--green);
	border: 1px solid var(--green-border);
}
.badge.failed {
	background: var(--red-bg);
	color: var(--red);
	border: 1px solid var(--red-border);
}

/* Tooltip */
.tooltip {
	position: fixed;
	z-index: 1000;
	pointer-events: auto;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 12px 16px;
	font-size: 12px;
	width: 40vw;
	max-width: 480px;
}

.tooltip-title {
	font-weight: 600;
	font-family: var(--font-mono);
	font-size: 13px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tooltip-title .dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.tooltip-payload {
	position: relative;
	margin-top: 8px;
	padding: 8px;
	padding-right: 32px;
	background: var(--bg-surface);
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-secondary);
	white-space: pre;
	max-height: 40vh;
	overflow-y: auto;
}

/* Buttons */
.copy-btn {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		color 0.15s ease,
		background 0.15s ease;
}

.copy-btn:hover {
	background: var(--bg-elevated);
	color: var(--text);
}

.submit-btn {
	padding: 8px 20px;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 600;
	font-family: var(--font);
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.submit-btn:hover {
	opacity: 0.9;
}

/* Trigger result dialog */
.trigger-result-dialog[open] {
	background: var(--bg-elevated);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 16px;
	max-width: 720px;
	width: 90vw;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: fixed;
	inset: 0;
	margin: auto;
}

.trigger-result-dialog::backdrop {
	background: rgba(0, 0, 0, 0.4);
}

.trigger-result-dialog--error {
	border-color: var(--red-border);
}

.trigger-result-code {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}

.trigger-result-body {
	margin: 0;
	padding: 12px;
	padding-right: 44px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.5;
	color: var(--text);
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-word;
	flex: 1 1 auto;
	min-height: 0;
}

.trigger-result-copy {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: var(--bg-elevated);
	color: var(--text-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		color 0.15s ease;
}

.trigger-result-copy:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.trigger-result-copy--copied {
	color: var(--green);
	border-color: var(--green-border);
}

.trigger-result-close {
	align-self: flex-end;
	padding: 8px 16px;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 600;
	font-family: var(--font);
	cursor: pointer;
	transition: opacity 0.15s ease;
	flex: 0 0 auto;
}

.trigger-result-close:hover {
	opacity: 0.9;
}

/* Empty state */
.empty-state {
	text-align: center;
	padding: 48px 24px;
	color: var(--text-muted);
	font-size: 14px;
}

/* Dashboard page — header stats */
.stats {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--text-secondary);
}

.stat {
	display: flex;
	align-items: center;
	gap: 6px;
}

.stat-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.stat-dot[data-color="yellow"] {
	background: var(--yellow);
}
.stat-dot[data-color="red"] {
	background: var(--red);
}
.stat-dot[data-color="green"] {
	background: var(--green);
}

/* Dashboard page — event-type multiselect dropdown */
.event-type-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.event-type-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-family: var(--font-mono);
	color: var(--text-secondary);
	cursor: pointer;
}

.event-type-option:hover {
	background: var(--bg-hover, var(--bg-surface));
}

.event-type-option input[type="checkbox"] {
	accent-color: var(--accent);
}

.filter-btn-caret {
	margin-left: 4px;
	font-size: 10px;
}

/* Dashboard page — entries */
.entry-type {
	font-weight: 600;
	font-size: 14px;
	font-family: var(--font-mono);
	flex: 1;
}

.entry-workflow {
	font-weight: 600;
	font-size: 14px;
	color: var(--text);
}

.entry-trigger {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--text-secondary);
}

.entry-header .badge {
	margin-left: auto;
}

.entry-meta {
	padding: 4px 16px 14px 16px;
	display: flex;
	gap: 10px;
	font-size: 12px;
	color: var(--text-muted);
	align-items: center;
}

.entry-started,
.entry-duration {
	font-family: var(--font-mono);
}

.entry-sep {
	color: var(--text-muted);
}

/* Skeleton placeholder */
.entry.skeleton {
	height: 68px;
	position: relative;
	overflow: hidden;
	background: var(--bg-elevated);
}

.entry.skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--bg-surface) 50%,
		transparent 100%
	);
	animation: entry-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes entry-skeleton-shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.entry.skeleton::after {
		animation: none;
		background: var(--bg-surface);
		opacity: 0.5;
	}
}

.timeline-container {
	border-top: 1px solid var(--border);
	background: var(--bg-surface);
	padding: 24px;
	display: none;
	max-height: 50vh;
	overflow: auto;
}

.entry.expanded .timeline-container {
	display: block;
}

/* Dashboard page — tooltip internals */
.tooltip-title .badge {
	margin-left: auto;
}

/* Dashboard page — timeline SVG */
.timeline-svg {
	overflow: visible;
}

.node {
	cursor: pointer;
}
.node .node-circle {
	transition: r 0.15s ease;
}
.node:hover .node-circle {
	r: 10;
}
.node .node-label {
	font-family: var(--font-mono);
	font-size: 11px;
	fill: var(--text);
}
.node .node-action {
	font-family: var(--font-mono);
	font-size: 10px;
	fill: var(--text-secondary);
	font-weight: 600;
}
.edge-line {
	stroke: var(--border);
	stroke-width: 2;
	fill: none;
}

/* -------------------------------------------------------------------------
 * Flamegraph
 * ----------------------------------------------------------------------- */

:root {
	--kind-trigger: #3b82f6;
	--kind-action: #6366f1;
	--kind-system: #b45309;
	--kind-timer: #14b8a6;
}

.flame-fragment {
	padding: 8px 12px 12px;
	color: var(--text);
}

.flame-summary {
	font-size: 11px;
	color: var(--text-secondary);
	padding: 2px 0;
	font-family: var(--font-mono);
}

.flame-ruler {
	display: block;
	width: 100%;
	overflow: visible;
	margin-bottom: 2px;
}

.flame-ruler-tick {
	stroke: var(--border);
}

.flame-ruler-label {
	font-family: var(--font-mono);
	font-size: 9px;
	fill: var(--text-muted);
}

.flame-container {
	max-height: 40vh;
	overflow-y: auto;
	overflow-x: hidden;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.flame-graph {
	display: block;
	width: 100%;
	overflow: visible;
}

.flame-bar {
	cursor: pointer;
}

.kind-trigger {
	fill: var(--kind-trigger);
}
.kind-action {
	fill: var(--kind-action);
}
.kind-system {
	fill: var(--kind-system);
}
.kind-timer {
	fill: var(--kind-timer);
}

.bar-error {
	stroke: var(--red);
	stroke-width: 2;
}

.orphan {
	fill: url(#flame-hatched);
}

.bar-label {
	font-family: var(--font-mono);
	font-size: 11px;
	fill: #ffffff;
	dominant-baseline: middle;
	pointer-events: none;
}
.bar-label-dim {
	font-family: var(--font-mono);
	font-size: 9px;
	fill: rgba(255, 255, 255, 0.78);
	dominant-baseline: middle;
	pointer-events: none;
}

.bar-error-icon {
	font-size: 11px;
	fill: var(--red);
	font-weight: 700;
	dominant-baseline: middle;
	pointer-events: none;
}

.marker-set {
	fill: var(--kind-timer);
	cursor: pointer;
}
.marker-clear-bg {
	fill: var(--kind-timer);
	cursor: pointer;
}
.marker-x {
	stroke: #ffffff;
	stroke-width: 1.5;
	stroke-linecap: round;
	pointer-events: none;
}
.marker-auto {
	opacity: 0.55;
}
.marker-call {
	fill: var(--kind-system);
	cursor: pointer;
}

.timer-connector {
	stroke: var(--kind-timer);
	stroke-width: 1.3;
	stroke-dasharray: 3 3;
	fill: none;
	opacity: 0.7;
	pointer-events: none;
}

.flame-track-divider {
	stroke: var(--border);
	stroke-dasharray: 4 3;
	pointer-events: none;
}
.flame-track-label {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	fill: var(--text-muted);
	pointer-events: none;
}

.flame-empty {
	padding: 12px;
	font-size: 13px;
	color: var(--text-muted);
	text-align: center;
	font-style: italic;
}

.tid-hit {
	filter: drop-shadow(0 0 2px rgba(20, 184, 166, 0.85))
		drop-shadow(0 0 4px rgba(20, 184, 166, 0.55));
}
.tid-hit.timer-connector {
	opacity: 1;
	stroke-width: 2;
}
.tid-dim {
	opacity: 0.22;
}

/* Expandable invocation row (<details>) styling */
.entry-expandable {
	cursor: default;
}
.entry-expandable > summary {
	list-style: none;
	cursor: pointer;
	padding: 0;
}
.entry-expandable > summary::-webkit-details-marker {
	display: none;
}
.entry-summary {
	display: block;
}

/* Dialog result blocks (request + response, each with its own copy button) */
.trigger-result-blocks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	min-height: 0;
}
.trigger-result-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 0;
}
.trigger-result-label {
	font-size: 11px;
	color: var(--text-secondary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

/* Auth pages — standalone layout (no topbar / sidebar) for callers
   without an active session. Vertically-centered card on a neutral
   background. */
.auth-page {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans, system-ui, sans-serif);
	padding: 24px;
}

.auth-card {
	width: 100%;
	max-width: 440px;
	padding: 32px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.auth-card__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
}

.auth-card__brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	background: var(--accent-primary, #0969da);
	color: #ffffff;
	font-weight: 700;
}

.auth-card__banner {
	padding: 14px 16px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--bg);
	line-height: 1.5;
	font-size: 14px;
}

.auth-card__banner[role="alert"] {
	border-left: 3px solid var(--accent-danger, #d1242f);
}

.auth-card__banner[role="status"] {
	border-left: 3px solid var(--accent-primary, #0969da);
}

.auth-card__banner strong {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.auth-card__banner code {
	background: rgba(0, 0, 0, 0.08);
	padding: 1px 6px;
	border-radius: var(--radius-sm);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

.auth-card__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--bg-surface);
	color: var(--text, inherit);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
}

.btn:hover {
	border-color: var(--text-secondary, #57606a);
	background: var(--border);
}

.btn--primary {
	background: #24292f;
	border-color: #24292f;
	color: #ffffff;
}

.btn--primary:hover {
	background: #32383f;
	border-color: #32383f;
}

.btn--secondary {
	opacity: 0.85;
}
