:root {
	--lib-ink: #12202e;
	--lib-muted: #5b6b7c;
	--lib-line: #c9d4df;
	--lib-panel: #ffffff;
	--lib-bg: #d9e3ec;
	--lib-bg-deep: #c5d2de;
	--lib-accent: #e07a00;
	--lib-accent-ink: #8a4500;
	--lib-accent-soft: #ffe3bf;
	--lib-green: #0f7a4e;
	--lib-blue: #1d5f9c;
	--lib-serif: "Newsreader", Georgia, serif;
	--lib-sans: "Figtree", "Segoe UI", sans-serif;
	--lib-radius: 14px;
	--lib-safe-top: env(safe-area-inset-top, 0px);
	--lib-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	overflow-x: clip;
}

.lib-body {
	margin: 0;
	min-height: 100vh;
	max-width: 100%;
	overflow-x: clip;
	color: var(--lib-ink);
	font-family: var(--lib-sans);
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(224, 122, 0, 0.18), transparent 60%),
		radial-gradient(700px 380px at 0% 0%, rgba(29, 95, 156, 0.12), transparent 55%),
		linear-gradient(180deg, var(--lib-bg) 0%, var(--lib-bg-deep) 100%);
	padding-bottom: var(--lib-safe-bottom);
}

.lib-skip {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--lib-ink);
	color: #fff;
	padding: 0.5rem 0.75rem;
	z-index: 100;
}

.lib-skip:focus {
	left: 0.75rem;
	top: calc(0.75rem + var(--lib-safe-top));
}

.lib-chrome {
	position: sticky;
	top: 0;
	z-index: 30;
	padding-top: var(--lib-safe-top);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	background: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid rgba(18, 32, 46, 0.08);
}

.lib-chrome-search,
.lib-toolbar {
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.lib-chrome-search {
	padding-top: 0.7rem;
	padding-bottom: 0.55rem;
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.lib-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
	color: var(--lib-ink);
	font-family: var(--lib-serif);
	font-weight: 650;
	font-size: 1.45rem;
	letter-spacing: -0.02em;
	white-space: nowrap;
	line-height: 1;
	transition: color 160ms ease, opacity 160ms ease;
}

.lib-brand img {
	display: block;
	flex: 0 0 auto;
	width: auto;
	/* Slightly under Understanding’s cap height — wordmark is optically heavier */
	height: 0.84em;
	/* Em-box has extra space below glyphs; nudge logo up to match ink */
	transform: translateY(-0.06em);
}

.lib-brand span {
	padding-bottom: 0;
}

.lib-search-logo {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	background: transparent;
	border: 0;
	transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.lib-search-logo img {
	display: block;
	width: 2.35rem;
	height: 2.35rem;
}


.lib-search-logo:active {
	transform: scale(0.98);
}

.lib-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lib-search {
	position: relative;
	display: flex;
	flex: 1;
	min-width: 0;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.75rem;
	background: var(--lib-panel);
	border: 1px solid var(--lib-line);
	border-radius: 999px;
	box-shadow: 0 1px 0 rgba(18, 32, 46, 0.04);
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lib-search:focus-within {
	border-color: var(--lib-accent);
	box-shadow: 0 0 0 3px rgba(224, 122, 0, 0.18);
}

.lib-search-icon {
	width: 1.05rem;
	height: 1.05rem;
	color: var(--lib-muted);
	flex: 0 0 auto;
}

.lib-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--lib-ink);
}

.lib-kbd {
	font-family: var(--lib-sans);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--lib-muted);
	border: 1px solid var(--lib-line);
	border-radius: 6px;
	padding: 0.1rem 0.35rem;
	background: #f3f6f9;
}

.lib-search:focus-within .lib-kbd { display: none; }

.lib-clear {
	border: 1px solid rgba(28, 25, 23, 0.42);
	background: var(--lib-accent-soft);
	color: var(--lib-accent-ink);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 650;
	border-radius: 999px;
	padding: 0.28rem 0.65rem;
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.lib-clear:active {
	transform: scale(0.97);
}

.lib-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 0.75rem;
}

.lib-seg {
	display: inline-flex;
	padding: 0.2rem;
	background: rgba(18, 32, 46, 0.06);
	border-radius: 999px;
	gap: 0.15rem;
}

.lib-seg-btn {
	border: 0;
	background: transparent;
	color: var(--lib-muted);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}


.lib-seg-btn:active {
	transform: scale(0.98);
}

.lib-seg-btn.is-active {
	background: var(--lib-panel);
	color: var(--lib-ink);
	box-shadow: 0 1px 2px rgba(18, 32, 46, 0.08);
}

.lib-types {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	min-width: 0;
}

.lib-type {
	border: 1px solid transparent;
	background: transparent;
	color: var(--lib-muted);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms ease;
}


.lib-type:active {
	transform: scale(0.98);
}

.lib-type.is-active {
	background: var(--lib-accent-soft);
	border-color: rgba(224, 122, 0, 0.35);
	color: var(--lib-accent-ink);
}

.lib-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.25rem 1.25rem 3rem;
	width: 100%;
}

.lib-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 1.25rem;
	align-items: start;
	width: 100%;
	min-width: 0;
}

.lib-content {
	min-width: 0;
	max-width: 100%;
}

.lib-pagehead {
	display: none;
}

.lib-mobile-title,
.lib-aside-mobile {
	display: none;
}

.lib-aside-desktop {
	position: sticky;
	top: 6.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.lib-aside-card {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(18, 32, 46, 0.08);
	border-radius: var(--lib-radius);
	padding: 0.85rem 0.8rem 0.9rem;
	box-shadow: 0 8px 20px rgba(18, 32, 46, 0.04);
	min-width: 0;
	overflow: hidden;
}

.lib-aside-label,
.lib-jump-label {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lib-muted);
	margin-bottom: 0.45rem;
	font-weight: 700;
}

.lib-status {
	color: var(--lib-ink);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.lib-status strong { font-weight: 800; }

.lib-status-sub {
	display: block;
	margin-top: 0.25rem;
	color: var(--lib-muted);
	font-size: 0.84rem;
	font-weight: 550;
	line-height: 1.35;
}

.lib-jump-list {
	display: flex;
	flex-direction: column;
	gap: 0.32rem;
	max-height: calc(100vh - 18rem);
	overflow-x: hidden;
	overflow-y: auto;
	min-width: 0;
	padding: 0.05rem 0.65rem 0.15rem 0.05rem;
	margin: 0;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: rgba(18, 32, 46, 0.28) transparent;
}

.lib-jump-list::-webkit-scrollbar {
	width: 5px;
}

.lib-jump-list::-webkit-scrollbar-track {
	background: transparent;
	margin: 0.15rem 0;
}

.lib-jump-list::-webkit-scrollbar-thumb {
	background: rgba(18, 32, 46, 0.22);
	border-radius: 999px;
}

.lib-jump-list::-webkit-scrollbar-thumb:hover {
	background: rgba(18, 32, 46, 0.35);
}

.lib-jump-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--lib-ink);
	background: #f4f7fa;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 0.48rem 0.55rem;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.25;
	min-width: 0;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms ease;
}

.lib-jump-link span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lib-jump-link em {
	font-style: normal;
	color: var(--lib-muted);
	font-size: 0.75rem;
	font-weight: 700;
	flex: 0 0 auto;
	min-width: 1.5rem;
	padding-left: 0.15rem;
	text-align: right;
	transition: color 160ms ease;
}




.lib-aside-note {
	margin: 0.15rem 0.2rem 0;
	color: var(--lib-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

.lib-boards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.lib-board {
	background: var(--lib-panel);
	border: 1px solid rgba(18, 32, 46, 0.07);
	border-radius: calc(var(--lib-radius) + 2px);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(18, 32, 46, 0.05);
	scroll-margin-top: 8rem;
	min-width: 0;
}

.lib-board-head-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	gap: 0.35rem;
	background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
	border-bottom: 1px solid rgba(18, 32, 46, 0.06);
}

.lib-board-head-row .lib-board-head {
	background: transparent;
	border-bottom: 0;
}

.lib-board-actions {
	display: flex;
	align-items: center;
	padding-right: 0.75rem;
}

.lib-board.is-collapsed .lib-board-head-row {
	border-bottom: 0;
}

.lib-board-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	border: 0;
	background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
	padding: 0.95rem 1.05rem;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	border-bottom: 1px solid rgba(18, 32, 46, 0.06);
	transition: background 160ms ease;
}

.lib-board-head:focus-visible {
	outline: 2px solid rgba(224, 122, 0, 0.45);
	outline-offset: -2px;
}

.lib-board-title {
	margin: 0;
	font-family: var(--lib-serif);
	font-size: 1.28rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	flex-wrap: wrap;
	min-width: 0;
}

.lib-board-accent {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--lib-accent);
	flex: 0 0 auto;
	transform: translateY(-1px);
}

.lib-board-accent[data-accent="green"] { background: var(--lib-green); }
.lib-board-accent[data-accent="blue"] { background: var(--lib-blue); }
.lib-board-accent[data-accent="orange"] { background: var(--lib-accent); }
.lib-board-accent[data-accent="purple"] { background: #6d28d9; }
.lib-board-accent[data-accent="yellow"] { background: #ca8a04; }

.lib-board-count {
	font-family: var(--lib-sans);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--lib-muted);
	background: rgba(18, 32, 46, 0.05);
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
}

.lib-board-meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--lib-muted);
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
	flex: 0 0 auto;
}

.lib-chevron {
	width: 1rem;
	height: 1rem;
	transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms ease;
}

.lib-board.is-collapsed .lib-chevron { transform: rotate(-90deg); }
.lib-board.is-collapsed .lib-board-head { border-bottom: 0; }

.lib-board.is-collapsed {
	background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}

.lib-board-body {
	display: grid;
	grid-template-rows: 0fr;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	background: transparent;
}

.lib-board:not(.is-collapsed) .lib-board-body {
	/* max-content — 1fr collapses to 0px after a 0fr close in auto-height grids */
	grid-template-rows: max-content;
	background: var(--lib-panel);
}

.lib-board.is-collapsed .lib-board-body {
	background: transparent;
}

.lib-board-body-inner {
	overflow: hidden;
	min-height: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 240ms ease,
		padding 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lib-board:not(.is-collapsed) .lib-board-body-inner {
	padding: 0.25rem 0.35rem 0.45rem;
	opacity: 1;
	pointer-events: auto;
}

.lib-board.is-collapsed .lib-board-body-inner {
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.lib-row {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto;
	gap: 0.9rem;
	align-items: center;
	padding: 0.75rem 0.7rem;
	margin: 0;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
	background: transparent;
}

.lib-row.is-static {
	grid-template-columns: 112px minmax(0, 1fr);
	cursor: default;
}

.lib-row:active {
	transform: none;
	box-shadow: none;
}

.lib-thumb {
	width: 112px;
	height: 63px;
	border-radius: 10px;
	overflow: hidden;
	background: #1e293b;
	border: 1px solid rgba(18, 32, 46, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.lib-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 200ms ease;
}

.lib-thumb img.is-ready { opacity: 1; }

.lib-thumb.is-placeholder {
	background: linear-gradient(145deg, #fff4e4, #ffe7c4);
	padding: 0.55rem;
}

.lib-thumb.is-placeholder img { object-fit: contain; }

.lib-row-copy {
	min-width: 0;
}

.lib-row-copy h3 {
	margin: 0 0 0.25rem;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
	transition: color 160ms ease;
}

.lib-row mark {
	background: var(--lib-accent-soft);
	color: var(--lib-accent-ink);
	border-radius: 3px;
	padding: 0 0.1em;
}

.lib-row-desc {
	margin: 0 0 0.35rem;
	color: var(--lib-muted);
	font-size: 0.88rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lib-row-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	font-size: 0.78rem;
	color: var(--lib-muted);
	font-weight: 550;
}

.lib-open {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--lib-accent-ink);
	padding: 0.42rem 0.7rem;
	border-radius: 999px;
	background: var(--lib-accent-soft);
	border: 1px solid transparent;
	white-space: nowrap;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}


.lib-empty {
	text-align: center;
	padding: 3rem 1.25rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px dashed var(--lib-line);
	border-radius: var(--lib-radius);
}

.lib-empty h2 {
	margin: 0 0 0.4rem;
	font-family: var(--lib-serif);
	font-size: 1.8rem;
}

.lib-empty p {
	margin: 0 0 1rem;
	color: var(--lib-muted);
}

.lib-reset {
	border: 0;
	background: var(--lib-ink);
	color: #fff;
	font: inherit;
	font-weight: 650;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease, transform 140ms ease;
}


.lib-reset:active {
	transform: scale(0.98);
}

.lib-foot {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1.25rem calc(2.5rem + var(--lib-safe-bottom));
	color: var(--lib-muted);
	font-size: 0.82rem;
}

/* —— Mobile / Apple-style —— */
@media (max-width: 960px) {
	.lib-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.lib-aside-desktop {
		display: none;
	}

	/* Compact sticky app bar */
	.lib-chrome-search {
		padding-top: 0.55rem;
		padding-bottom: 0.4rem;
		gap: 0.65rem;
	}

	.lib-brand {
		display: none;
	}

	.lib-search-logo {
		display: inline-flex;
	}

	.lib-pagehead {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 0.65rem;
		margin: 0 0 0.7rem;
	}

	.lib-home-mark {
		display: none;
	}

	.lib-pagehead-copy {
		min-width: 0;
		flex: 1;
	}

	.lib-mobile-title {
		display: block;
		margin: 0;
		font-family: var(--lib-serif);
		font-size: clamp(1.9rem, 8vw, 2.25rem);
		font-weight: 700;
		letter-spacing: -0.03em;
		line-height: 1.05;
	}

	.lib-mobile-title::before {
		content: none;
	}

	.lib-status-inline {
		font-size: 0.9rem;
	}

	.lib-status-inline .lib-status-sub {
		font-size: 0.78rem;
	}

	.lib-aside-mobile {
		display: block;
		margin: 0 0 0.75rem;
		min-width: 0;
		max-width: 100%;
	}

	.lib-aside-mobile .lib-jump {
		background: rgba(255, 255, 255, 0.92);
		border: 1px solid rgba(18, 32, 46, 0.06);
		border-radius: 14px;
		padding: 0.55rem 0 0.6rem;
		box-shadow: 0 1px 0 rgba(18, 32, 46, 0.04);
		overflow: hidden;
		max-width: 100%;
	}

	.lib-aside-mobile .lib-jump-label {
		padding: 0 0.75rem;
		margin-bottom: 0.4rem;
	}

	.lib-jump-scroller {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.lib-jump-scroller::-webkit-scrollbar { display: none; }

	.lib-aside-mobile .lib-jump-list {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 0.4rem;
		max-height: none;
		overflow: visible;
		width: max-content;
		min-width: 100%;
		padding: 0 0.75rem;
		box-sizing: border-box;
	}

	.lib-aside-mobile .lib-jump-link {
		flex: 0 0 auto;
		max-width: 9.75rem;
		border-radius: 999px;
		background: #eef2f6;
		padding: 0.48rem 0.7rem;
		font-size: 0.8rem;
	}

	.lib-chrome-search,
	.lib-toolbar {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	.lib-search {
		background: #e8edf2;
		border-color: transparent;
		border-radius: 12px;
		padding: 0.68rem 0.8rem;
		box-shadow: none;
	}

	.lib-search input {
		font-size: 16px; /* prevent iOS zoom */
	}

	.lib-kbd { display: none; }

	.lib-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.4rem;
		padding-bottom: 0.55rem;
	}

	.lib-seg {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 0.14rem;
		background: #e5ebf1;
		border-radius: 10px;
	}

	.lib-seg-btn {
		text-align: center;
		padding: 0.52rem 0.2rem;
		font-size: 0.8rem;
		min-width: 0;
	}

	.lib-types {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0.14rem;
		padding: 0.14rem;
		background: #e5ebf1;
		border-radius: 10px;
		overflow: visible;
		max-width: 100%;
	}

	.lib-types::-webkit-scrollbar { display: none; }

	.lib-type {
		flex: initial;
		width: 100%;
		min-width: 0;
		text-align: center;
		background: transparent;
		border: 0;
		border-radius: 8px;
		padding: 0.52rem 0.15rem;
		font-size: 0.72rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.lib-type:hover:not(.is-active) {
		background: rgba(255, 255, 255, 0.55);
	}

	.lib-type.is-active {
		background: var(--lib-panel);
		border-color: transparent;
		color: var(--lib-accent-ink);
		box-shadow: 0 1px 2px rgba(18, 32, 46, 0.08);
	}

	.lib-shell {
		padding: 0.65rem 0.85rem 1.5rem;
	}

	.lib-boards { gap: 0.65rem; }

	.lib-board {
		border-radius: 14px;
		box-shadow: none;
		border-color: rgba(18, 32, 46, 0.08);
		scroll-margin-top: 8rem;
	}

	.lib-board-head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: 0.45rem;
		padding: 0.8rem 0.85rem;
		background: transparent;
	}

	.lib-board-head-row {
		background: #f4f6f8;
	}

	.lib-board-actions {
		padding: 0.55rem 0.75rem 0.55rem 0;
	}

	.lib-board-head:hover { background: transparent; }

	.lib-board-title {
		font-size: 1.02rem;
		gap: 0.35rem;
	}

	.lib-board-meta {
		padding-top: 0.1rem;
	}

	.lib-board-meta span {
		display: none;
	}

	.lib-board-body {
		padding: 0;
	}

	.lib-board:not(.is-collapsed) .lib-board-body-inner {
		padding: 0;
	}

	.lib-row {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 0.65rem;
		margin: 0;
		padding: 0.7rem 0.8rem;
		border-radius: 0;
		border-top: 1px solid rgba(18, 32, 46, 0.07);
		min-height: 64px;
	}

	.lib-row:first-child { border-top: 0; }

	.lib-row-wrap:hover,
	.lib-row:hover {
		background: transparent;
		transform: none;
		box-shadow: none;
	}

	.lib-row-wrap:active,
	.lib-row:active {
		background: #eef1f4;
	}

	.lib-jump-link:hover {
		transform: none;
	}

	.lib-thumb {
		width: 72px;
		height: 46px;
		border-radius: 8px;
	}

	.lib-row-copy h3 {
		font-size: 0.9rem;
		font-weight: 650;
		margin-bottom: 0.12rem;
	}

	.lib-row-desc {
		font-size: 0.78rem;
		-webkit-line-clamp: 2;
		margin-bottom: 0.15rem;
	}

	.lib-row-tags {
		font-size: 0.7rem;
		gap: 0.2rem 0.45rem;
	}

	.lib-open { display: none; }

	.lib-foot {
		padding: 0 0.85rem calc(1.1rem + var(--lib-safe-bottom));
		text-align: center;
	}
}

@media (max-width: 420px) {
	.lib-seg-btn {
		font-size: 0.76rem;
		padding: 0.55rem 0.15rem;
	}

	.lib-type {
		font-size: 0.66rem;
		padding: 0.5rem 0.1rem;
	}

	.lib-row {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.lib-thumb {
		width: 64px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lib-brand,
	.lib-search,
	.lib-search-logo,
	.lib-clear,
	.lib-seg-btn,
	.lib-type,
	.lib-jump-link,
	.lib-board-head,
	.lib-board-body,
	.lib-board-body-inner,
	.lib-chevron,
	.lib-row,
	.lib-row-wrap,
	.lib-row-copy h3,
	.lib-open,
	.lib-share,
	.lib-reset,
	.lib-thumb img {
		transition: none !important;
	}

	.lib-board.is-collapsed .lib-board-body-inner {
		transform: none;
		padding-top: 0;
		padding-bottom: 0;
	}

	.lib-search-logo:hover,
	.lib-jump-link:hover,
	.lib-row:hover,
	.lib-row:focus-visible {
		transform: none !important;
	}
}



.lib-jump-link.is-current {
	border-color: rgba(224, 122, 0, 0.35);
	background: var(--lib-accent-soft);
	color: var(--lib-accent-ink);
}
.lib-jump-link.is-current em { color: var(--lib-accent-ink); }
.lib-row:focus-visible {
	background: #f4f8fb;
	outline: 2px solid rgba(224, 122, 0, 0.35);
	outline-offset: 2px;
}

.lib-share {
	border: 1px solid transparent;
	background: #eef2f6;
	color: var(--lib-muted);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.32rem 0.6rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms ease;
}
.lib-share:active { transform: scale(0.97); }
.lib-share.is-copied {
	background: var(--lib-accent-soft);
	color: var(--lib-accent-ink);
	border-color: rgba(28, 25, 23, 0.35);
}
.lib-board-actions {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex: 0 0 auto;
}
.lib-row-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.35rem;
	margin: 0.15rem 0.35rem;
	padding: 0.1rem 0.4rem 0.1rem 0.1rem;
	border-radius: 12px;
	transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.lib-row-wrap .lib-row {
	margin: 0;
}
.lib-row-wrap .lib-share {
	margin-right: 0;
	align-self: center;
}
.lib-row-wrap.is-target {
	background: #fff7eb;
	box-shadow: inset 0 0 0 1px rgba(224, 122, 0, 0.35);
}
.lib-toast {
	position: fixed;
	left: 50%;
	bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%) translateY(120%);
	background: var(--lib-ink);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.65rem 0.95rem;
	border-radius: 999px;
	z-index: 80;
	opacity: 0;
	pointer-events: none;
	transition: transform 200ms ease, opacity 200ms ease;
}
.lib-toast.is-on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
@media (max-width: 960px) {
	.lib-row-wrap {
		grid-template-columns: minmax(0, 1fr);
		padding-right: 0;
		border-top: 1px solid rgba(18, 32, 46, 0.07);
	}
	.lib-row-wrap:first-child { border-top: 0; }
	.lib-row-wrap .lib-row {
		margin: 0;
		border-top: 0;
	}
	.lib-row-wrap .lib-share {
		justify-self: end;
		margin: 0 0.85rem 0.65rem;
	}
}
/* True hover only on fine pointers (desktop/trackpad). Touch uses :active. */
@media (hover: hover) and (pointer: fine) {
	.lib-brand:hover { color: var(--lib-accent-ink); opacity: 0.92; }
	.lib-search-logo:hover { transform: scale(1.06); filter: brightness(1.05); }
	.lib-clear:hover { background: #ffd7a8; border-color: rgba(28, 25, 23, 0.55); }
	.lib-seg-btn:hover:not(.is-active) { color: var(--lib-ink); background: rgba(255, 255, 255, 0.55); }
	.lib-type:hover:not(.is-active) { background: rgba(255, 255, 255, 0.7); color: var(--lib-ink); }
	.lib-jump-link:hover {
		border-color: rgba(224, 122, 0, 0.35);
		background: var(--lib-accent-soft);
		color: var(--lib-accent-ink);
		transform: translateX(2px);
	}
	.lib-jump-link:hover em { color: var(--lib-accent-ink); }
	.lib-board-head:hover { background: linear-gradient(180deg, #fff7eb 0%, #f3f7fb 100%); }
	.lib-board-head:hover .lib-chevron { color: var(--lib-accent-ink); }
	.lib-row-wrap:hover,
	.lib-row-wrap:focus-within {
		background: #f4f8fb;
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(18, 32, 46, 0.06);
	}
	.lib-row-wrap:hover .lib-row-copy h3,
	.lib-row-wrap:focus-within .lib-row-copy h3 { color: var(--lib-accent-ink); }
	.lib-row-wrap:hover .lib-open,
	.lib-row-wrap:focus-within .lib-open,
	.lib-open:hover {
		background: #ffd7a8;
		border-color: rgba(28, 25, 23, 0.45);
	}
	.lib-reset:hover { background: #1d3348; }
	.lib-row-wrap:hover .lib-share,
	.lib-row-wrap:focus-within .lib-share,
	.lib-share:hover {
		background: var(--lib-accent-soft);
		color: var(--lib-accent-ink);
		border-color: rgba(28, 25, 23, 0.45);
	}
}

@media (hover: none), (pointer: coarse) {
	.lib-brand:hover { color: inherit; opacity: 1; }
	.lib-search-logo:hover { transform: none; filter: none; }
	.lib-clear:hover { background: var(--lib-accent-soft); border-color: rgba(28, 25, 23, 0.42); }
	.lib-seg-btn:hover:not(.is-active) { color: var(--lib-muted); background: transparent; }
	.lib-type:hover:not(.is-active) { color: var(--lib-muted); background: transparent; }
	.lib-jump-link:hover:not(.is-current) {
		transform: none;
		background: #f4f7fa;
		border-color: transparent;
		color: var(--lib-ink);
	}
	.lib-board-head:hover { background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%); }
	.lib-row-wrap:hover,
	.lib-row-wrap:focus-within,
	.lib-row:hover {
		transform: none;
		box-shadow: none;
		background: transparent;
	}
	.lib-row-wrap:hover .lib-row-copy h3,
	.lib-row-wrap:focus-within .lib-row-copy h3,
	.lib-row:hover .lib-row-copy h3 { color: inherit; }
	.lib-row-wrap:hover .lib-open,
	.lib-row-wrap:focus-within .lib-open,
	.lib-open:hover {
		background: var(--lib-accent-soft);
		border-color: transparent;
	}
	.lib-reset:hover { background: var(--lib-ink); }
	.lib-row-wrap:hover .lib-share,
	.lib-row-wrap:focus-within .lib-share,
	.lib-share:hover {
		background: #eef2f6;
		color: var(--lib-muted);
		border-color: transparent;
	}
}
