.folder-list {
	--folder-list-border: #d9dee7;
	--folder-list-text: #1f2937;
	--folder-list-muted: #667085;
	--folder-list-accent: #1d4ed8;
	--folder-list-accent-soft: #eff6ff;
	color: var(--folder-list-text);
	font-size: 0.95rem;
}

.folder-list__navigation,
.folder-list__summary {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.folder-list__navigation {
	border-bottom: 1px solid var(--folder-list-border);
	padding-bottom: 0.75rem;
}

.folder-list__back,
.folder-list__action,
.folder-list__table a,
.folder-list__name-grid a {
	color: var(--folder-list-accent);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.folder-list__back {
	font-weight: 600;
}

.folder-list__current,
.folder-list__filter {
	color: var(--folder-list-muted);
	font-size: 0.875rem;
}

.folder-list__summary {
	color: var(--folder-list-muted);
	font-size: 0.875rem;
}

.folder-list__table-wrap {
	overflow-x: auto;
}

.folder-list__table {
	border-collapse: collapse;
	min-width: 42rem;
	width: 100%;
}

.folder-list__table th,
.folder-list__table td {
	border-bottom: 1px solid var(--folder-list-border);
	padding: 0.75rem 0.65rem;
	text-align: left;
	vertical-align: middle;
}

.folder-list__table th {
	background: var(--folder-list-accent-soft);
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.folder-list__table th a {
	color: inherit;
	text-decoration: none;
}

.folder-list__table th a:hover,
.folder-list__table th a:focus-visible {
	color: var(--folder-list-accent);
	text-decoration: underline;
}

.folder-list__table tbody tr:hover {
	background: #f8fafc;
}

.folder-list__name-grid {
	display: grid;
	gap: 0.35rem 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.folder-list__list-item {
	min-width: 0;
}

.folder-list__list-link {
	align-items: center;
	border-radius: 0.3rem;
	display: flex;
	min-width: 0;
	padding: 0.4rem 0.3rem;
	word-break: break-word;
}

.folder-list__list-link:hover,
.folder-list__list-link:focus-visible {
	background: var(--folder-list-accent-soft);
}

.folder-list__folder-link {
	font-weight: 600;
}

.folder-list__icon {
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.05rem;
	margin-right: 0.25rem;
	vertical-align: -0.18em;
	width: 1.05rem;
}

.folder-list__icon svg {
	display: block;
	height: 100%;
	width: 100%;
}

.folder-list__icon--folder {
	color: #b7791f;
}

.folder-list__icon--pdf {
	color: #dc2626;
}

.folder-list__icon--archive {
	color: #b45309;
}

.folder-list__icon--document {
	color: #2563eb;
}

.folder-list__icon--spreadsheet {
	color: #16803c;
}

.folder-list__icon--presentation {
	color: #c2410c;
}

.folder-list__icon--image {
	color: #7c3aed;
}

.folder-list__icon--audio {
	color: #0891b2;
}

.folder-list__icon--video {
	color: #db2777;
}

.folder-list__icon--code {
	color: #4f46e5;
}

.folder-list__icon--text,
.folder-list__icon--file {
	color: #64748b;
}

.folder-list__action {
	font-weight: 600;
	white-space: nowrap;
}

.folder-list__empty,
.folder-list--error {
	background: #f8fafc;
	border: 1px solid var(--folder-list-border);
	border-radius: 0.4rem;
	color: var(--folder-list-muted);
	padding: 1rem;
}

.folder-list--error {
	background: #fff7ed;
	border-color: #fed7aa;
	color: #9a3412;
}

.folder-list--error p,
.folder-list__empty {
	margin: 0;
}

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

@media (max-width: 42rem) {
	.folder-list__table {
		min-width: 0;
	}

	.folder-list__table thead {
		display: none;
	}

	.folder-list__table,
	.folder-list__table tbody,
	.folder-list__table tr,
	.folder-list__table td {
		display: block;
		width: auto;
	}

	.folder-list__table tr {
		border: 1px solid var(--folder-list-border);
		border-radius: 0.4rem;
		margin-bottom: 0.75rem;
		padding: 0.45rem 0.7rem;
	}

	.folder-list__table td {
		border: 0;
		display: flex;
		gap: 1rem;
		justify-content: space-between;
		padding: 0.45rem 0;
		text-align: right;
	}

	.folder-list__table td::before {
		color: var(--folder-list-muted);
		content: attr(data-label);
		font-size: 0.78rem;
		font-weight: 600;
		text-align: left;
		text-transform: uppercase;
	}

	.folder-list__table td.folder-list__name-cell {
		display: block;
		padding-bottom: 0.7rem;
		text-align: left;
	}

	.folder-list__table td.folder-list__name-cell::before {
		display: none;
	}
}