:root {
	--app-bg: #f4f1e8;
	--app-surface: rgba(255, 253, 248, 0.95);
	--app-ink: #1e2a2f;
	--app-muted: #61727a;
	--app-border: rgba(30, 42, 47, 0.14);
	--app-accent: #0d6b78;
	--app-grid: rgba(30, 42, 47, 0.04);
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--app-ink);
	background:
		linear-gradient(180deg, rgba(244, 241, 232, 0.84), rgba(244, 241, 232, 0.98)),
		radial-gradient(circle at top left, rgba(13, 107, 120, 0.14), transparent 30%),
		linear-gradient(var(--app-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--app-grid) 1px, transparent 1px);
	background-size: auto, auto, 24px 24px, 24px 24px;
}

a {
	color: var(--app-accent);
}

.app-shell {
	padding-top: 0.75rem;
	padding-bottom: 1.5rem;
}

.app-topbar {
	border: 1px solid var(--app-border);
	border-radius: 0.5rem;
	background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(246, 250, 250, 0.94));
	box-shadow: 0 12px 28px rgba(31, 42, 47, 0.06);
}

.app-brand__eyebrow {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--app-muted);
}

.app-brand__title {
	font-size: 1.18rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.app-nav__meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding-left: 0.25rem;
	font-size: 0.82rem;
	color: var(--app-muted);
}

.app-flashes {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.app-flashes .alert {
	margin-bottom: 0;
	border-radius: 0.5rem;
	box-shadow: 0 8px 20px rgba(31, 42, 47, 0.05);
}

.page-card {
	display: block;
	border: 1px solid var(--app-border);
	border-radius: 0.5rem;
	background: var(--app-surface);
	box-shadow: 0 16px 34px rgba(31, 42, 47, 0.06);
}

.page-card__body {
	padding: 16px;
}

.app-nav__meta .badge {
	--bs-badge-padding-x: 0.56rem;
	--bs-badge-padding-y: 0.28rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--app-muted);
	background: rgba(30, 42, 47, 0.06);
}

.small {
	font-size: 0.8rem !important;
}

.app-breadcrumb {
	--bs-breadcrumb-divider-color: rgba(30, 42, 47, 0.42);
	--bs-breadcrumb-item-active-color: var(--app-ink);
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--app-border);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.62);
	box-shadow: 0 8px 20px rgba(31, 42, 47, 0.04);
	font-size: 0.86rem;
}

.rounded-pill {
	border-radius: 0.5rem !important;
}

.app-breadcrumb a {
	color: var(--app-muted);
	text-decoration: none;
}

.app-breadcrumb a:hover {
	color: var(--app-ink);
}

.app-breadcrumb__current {
	color: var(--app-ink);
	font-weight: 600;
}

.page-card__header-main {
	flex: 1 1 40rem;
	max-width: 52rem;
	min-width: min(100%, 20rem);
}

.page-card__header-actions {
	margin-left: auto;
	justify-content: flex-end;
	align-self: flex-start;
}

.table-actions {
	white-space: nowrap;
	text-align: right;
}

.table-responsive {
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

.table-responsive > .compact-table {
	min-width: 60rem;
}

.row-action-menu {
	position: relative;
	display: inline-flex;
	justify-content: flex-end;
}

.row-action-menu__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0.45rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	cursor: pointer;
	box-shadow: none;
}

.row-action-menu__icon {
	width: 1.05rem;
	height: 1.05rem;
	background-image: linear-gradient(#0d6b78, #0d6b78), linear-gradient(#0d6b78, #0d6b78), linear-gradient(#0d6b78, #0d6b78);
	background-repeat: no-repeat;
	background-position: center 0.18rem, center center, center calc(100% - 0.18rem);
	background-size: 100% 2px, 100% 2px, 100% 2px;
}

.row-action-menu__trigger:hover,
.row-action-menu__trigger[aria-expanded="true"] {
	background: transparent;
}

.row-action-menu__trigger:focus-visible {
	box-shadow: 0 0 0 0.2rem rgba(13, 107, 120, 0.18);
}

.row-action-menu__panel {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	z-index: 1100;
	min-width: 9.5rem;
	padding: 0.28rem;
	border: 1px solid var(--app-border);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 40px rgba(9, 30, 66, 0.16);
	display: grid;
	gap: 0.08rem;
}

.row-action-menu__panel--floating {
	position: fixed;
	top: 0;
	right: auto;
	left: 0;
}

.row-action-menu__panel--upwards {
	top: auto;
	bottom: calc(100% + 0.45rem);
}

.row-action-menu__panel a,
.row-action-menu__hint {
	display: block;
	padding: 0.44rem 0.58rem;
	border-radius: 0.5rem;
	text-align: left;
	text-decoration: none;
	line-height: 1.2;
}

.row-action-menu__panel a:hover,
.row-action-menu__panel a:focus-visible {
	background: rgba(13, 107, 120, 0.08);
	outline: none;
}

.row-action-menu__hint {
	color: var(--app-muted);
	font-size: 0.78rem;
}

@media (max-width: 900px) {
	.page-card__header-main {
		flex-basis: 100%;
		max-width: none;
	}

	.page-card__header-actions {
		margin-left: 0;
		justify-content: flex-start;
	}
}

@media (max-width: 576px) {
	.app-topbar {
		border-radius: 0.5rem;
	}

	.app-breadcrumb {
		padding: 0.55rem 0.75rem;
	}
}