/* AksharKosh file upload box. Colours lean on the theme, like converter.css and account.css. */
.aksharkosh-files {
	margin: 2em 0 1em;
	padding-top: 1em;
	border-top: 1px solid var(--aksharkosh-rule, rgba(128, 128, 128, 0.3));
	container-type: inline-size;
}
.aksharkosh-files .ak-files-title {
	margin: 0 0 0.5em;
	font-size: 1.15em;
}
.aksharkosh-files .dl-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	margin-bottom: 0.75em;
	font-size: 0.95em;
}
.aksharkosh-files .ak-file-pick {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	font-size: 0.95em;
}
.aksharkosh-files .ak-confirm {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin-top: 0.75em;
}
.aksharkosh-files .ak-confirm p {
	flex-basis: 100%;
	margin: 0;
	font-weight: 600;
}
.aksharkosh-files [hidden] {
	display: none !important;
}
.aksharkosh-files .dl-button {
	display: inline-block;
	padding: 0.4em 1em;
	border: 1px solid var(--aksharkosh-button-border, currentColor);
	border-radius: 6px;
	background: var(--aksharkosh-button-bg, transparent);
	color: var(--aksharkosh-button-fg, inherit);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}
.aksharkosh-files .dl-button.dl-secondary {
	background: transparent;
	color: inherit;
	border-color: currentColor;
	opacity: 0.8;
}
.aksharkosh-files .ak-files-msg {
	min-height: 1.4em;
	margin: 0.75em 0 0;
}
/* Locked (no plan): nothing to upload, so the empty status line would only add a gap. */
.aksharkosh-files .ak-files-locked:not([hidden]) {
	margin-bottom: 0;
}
.aksharkosh-files .ak-files-locked:not([hidden]) ~ .ak-files-msg:empty {
	display: none;
}
.aksharkosh-files .ak-bad {
	color: var(--aksharkosh-error, #b32d2e);
}
.aksharkosh-files .ak-jobs {
	width: 100%;
	margin-top: 0.75em;
	border-collapse: collapse;
	font-size: 0.95em;
}
.aksharkosh-files .ak-jobs th,
.aksharkosh-files .ak-jobs td {
	padding: 0.45em 0.5em;
	border-bottom: 1px solid var(--aksharkosh-rule, rgba(128, 128, 128, 0.3));
	text-align: left;
	vertical-align: top;
}
.aksharkosh-files .ak-jobs th,
.aksharkosh-files .ak-words,
.aksharkosh-files .ak-actions {
	white-space: nowrap;
}
/* Long file names break anywhere, so they never push the table wider than the box. */
.aksharkosh-files .ak-name {
	overflow-wrap: anywhere;
}
.aksharkosh-files .ak-actions .dl-button + .dl-button {
	margin-left: 0.4em;
}
/* A narrow box (a phone, or the My Account column) shows each file as a short stack instead of a table. */
@container (max-width: 560px) {
	.aksharkosh-files .ak-words::after {
		content: " words";
	}
	.aksharkosh-files .ak-jobs {
		border: 0;
	}
	.aksharkosh-files .ak-jobs thead {
		display: none;
	}
	.aksharkosh-files .ak-name {
		font-weight: 600;
	}
	.aksharkosh-files .ak-jobs tr {
		display: block;
		padding: 0.5em 0;
		border-bottom: 1px solid var(--aksharkosh-rule, rgba(128, 128, 128, 0.3));
	}
	.aksharkosh-files .ak-jobs td {
		display: block;
		padding: 0.15em 0;
		border: 0;
	}
}

/* Files tab, Hindi → Hinglish: the Hinglish-only options are hidden. */
.aksharkosh-files[data-direction="to_hinglish"] .dl-fwd-only {
	display: none;
}
