.articles-index {
	--mf-bg: #f4f1ea;
	--mf-panel: #ffffff;
	--mf-ink: #1c2420;
	--mf-muted: #5a655e;
	--mf-line: #d7ddd8;
	--mf-accent: #3a5f7a;
	--mf-accent-soft: #e8eef3;
	--mf-radius: 14px;
	--mf-shadow: 0 10px 28px rgba(28, 36, 32, 0.06);
	color: var(--mf-ink);
	margin: 1.5rem 0 2.5rem;
}

.articles-index.is-loading {
	opacity: 0.72;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.mf-layout {
	display: grid;
	grid-template-columns: minmax(240px, 320px) 1fr;
	gap: 1.5rem;
	align-items: start;
}

.mf-filters,
.links-category {
	background: var(--mf-panel);
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius);
	box-shadow: var(--mf-shadow);
	padding: 1.25rem;
	position: sticky;
	top: 1rem;
}

.name_filter {
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mf-muted);
	margin: 0.85rem 0 0.45rem;
	font-weight: 700;
}

.mf-filters > .name_filter:first-child,
.links-category > .name_filter:first-child {
	margin-top: 0;
}

.articles-index .step select,
.links-category .step select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--mf-line);
	border-radius: 10px;
	background: var(--mf-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a655e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
	padding: 0.7rem 2.2rem 0.7rem 0.85rem;
	color: var(--mf-ink);
	font: inherit;
	line-height: 1.3;
	margin-bottom: 0.35rem;
}

.articles-index .step select:focus,
.links-category .step select:focus {
	outline: none;
	border-color: var(--mf-accent);
	box-shadow: 0 0 0 3px var(--mf-accent-soft);
}

.mf-reset,
.f-reset,
.mf-btn,
.zapisat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1rem;
	padding: 0.7rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--mf-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.mf-reset:hover,
.f-reset:hover,
.mf-btn:hover,
.zapisat:hover {
	background: #2e4d63;
	transform: translateY(-1px);
}

.mf-reset,
.f-reset {
	width: 100%;
	background: transparent;
	color: var(--mf-accent);
	border: 1px solid var(--mf-accent);
}

.mf-results,
.links-res {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.row-link {
	background: var(--mf-panel);
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius);
	box-shadow: var(--mf-shadow);
	padding: 1rem 1.15rem;
	animation: ai-fade-in 0.25s ease;
}

.link-content .link-author {
	font-size: 0.92rem;
	color: var(--mf-muted);
	margin-bottom: 0.25rem;
}

.link-content .text-st {
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.4;
	margin-bottom: 0.35rem;
}

.link-content .sub-st {
	color: var(--mf-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.mf-empty {
	padding: 2rem 1.25rem;
	border: 1px dashed var(--mf-line);
	border-radius: var(--mf-radius);
	background: var(--mf-bg);
	color: var(--mf-muted);
	text-align: center;
}

.mf-admin-import {
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--mf-radius);
	background: #fff8e8;
	border: 1px solid #f0dfb4;
}

.mf-admin-import summary {
	cursor: pointer;
	font-weight: 600;
}

.mf-import-textarea {
	width: 100%;
	margin-top: 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--mf-line);
	padding: 0.75rem;
	font: inherit;
	min-height: 90px;
}

.mf-import-result {
	margin-top: 0.5rem;
	white-space: pre-wrap;
	font-size: 0.9rem;
}

@keyframes ai-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
	.mf-layout {
		grid-template-columns: 1fr;
	}

	.mf-filters,
	.links-category {
		position: static;
	}
}
