.fel-dashboard__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.fel-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.fel-card:hover {
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.fel-card__body {
	padding: 1.25rem;
	flex: 1;
}

.fel-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.fel-card__title a {
	text-decoration: none;
	color: inherit;
}

.fel-card__title a:hover {
	text-decoration: underline;
}

.fel-card__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.fel-badge {
	display: inline-block;
	padding: 0.2em 0.6em;
	background: #f0f0f0;
	border-radius: 3px;
	font-size: 0.75rem;
	color: #555;
}

.fel-card__progress {
	margin-top: 0.75rem;
}

.fel-progress-bar {
	height: 6px;
	background: #e9e9e9;
	border-radius: 3px;
	overflow: hidden;
}

.fel-progress-bar__fill {
	height: 100%;
	background: #2271b1;
	border-radius: 3px;
	transition: width 0.3s ease;
}

.fel-progress-bar__label {
	display: block;
	font-size: 0.75rem;
	color: #666;
	margin-top: 0.3rem;
}

.fel-card__footer {
	padding: 0.75rem 1.25rem;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
}

.fel-btn {
	display: inline-block;
	padding: 0.4em 1.1em;
	background: #2271b1;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
}

.fel-btn:hover {
	background: #135e96;
}

/* ── Dashboard sections ──────────────────────────────────────────────────── */

.dash-section-title {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--cl-muted, #888);
	margin: 2rem 0 .75rem;
	padding: 0;
	border: none;
}

.dash-section-title--archive {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: .4em;
}

.dash-section-title--archive::marker,
.dash-section-title--archive::-webkit-details-marker { display: none; }

.dash-section-title--archive::before {
	content: '▸';
	font-size: .7em;
	transition: transform .2s;
}

details[open] .dash-section-title--archive::before {
	transform: rotate(90deg);
}

.dash-archive-count {
	font-weight: 400;
	color: var(--cl-muted, #aaa);
}

.dash-archive .cards {
	margin-top: .75rem;
	opacity: .75;
}

/* ── Card action buttons (Archive / Restore) ─────────────────────────────── */

.dash-card-footer {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-top: .75rem;
}

.dash-card-action {
	background: none;
	border: 1px solid var(--cl-muted, #ccc);
	border-radius: 4px;
	padding: .25em .8em;
	font-size: .8rem;
	color: var(--cl-muted, #888);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}

.dash-card-action:hover {
	border-color: var(--cl-fg, #333);
	color: var(--cl-fg, #333);
}

/* ── Pin bar on single worksheet pages ───────────────────────────────────── */

.fel-pin-bar {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	display: flex;
	align-items: center;
	gap: .75rem;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: .6rem 1rem;
	box-shadow: 0 4px 16px rgba(0,0,0,.12);
	font-size: .875rem;
	z-index: 999;
}

.fel-pin-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	background: var(--cl-accent, #2271b1);
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: .4em 1em;
	font-size: .875rem;
	cursor: pointer;
	transition: background .15s;
}

.fel-pin-btn:hover { background: var(--cl-accent-dark, #135e96); }

.fel-pin-saved {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	color: var(--cl-accent, #2271b1);
	font-weight: 500;
}

.fel-pin-archived {
	color: var(--cl-muted, #888);
}

.fel-pin-archive-btn {
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: .3em .8em;
	font-size: .8rem;
	color: #888;
	cursor: pointer;
}

.fel-pin-archive-btn:hover {
	border-color: #888;
	color: #333;
}
