/* paste.borsanza.com: mismo estilo que www.borsanza.com (oscuro, naranja y toques de terminal) */

:root {
	color-scheme: dark;
	--bg: #0d0b0a;
	--panel: #171311;
	--panel-2: #1f1916;
	--border: #2e2622;
	--text: #f3ebe2;
	--muted: #9c8f80;
	--accent: #f0b46a;
	--accent-2: #ff6a2b;
	--green: #39d353;
	--red: #ff6b6b;
	--glow-1: rgba(255, 106, 43, .14);
	--glow-2: rgba(240, 180, 106, .06);
	--title-from: #fff3e0;
	--btn-from: #f0b46a;
	--btn-to: #ff6a2b;
	--red-text: #ffb3b3;
	--green-text: #a8f0b4;
	--input: #0f0c0b;
	--input-focus: #110e0c;
	--faint: #6d625a;
	--gutter: #5c524b;
	--border-strong: var(--border-strong);
	--thumb-bg: #000;
	--check-1: #1a1513;
	--check-2: #141110;
	--text-2: #d7cbbf;
	--strong: #fff;
	--inline-code: rgba(255, 255, 255, .07);
	--th: rgba(255, 255, 255, .04);
	--code-bg: #0b0908;
	--radius: 14px;
	--mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}


/* Tema claro: el del sistema, o el elegido con el botón (data-theme, ver includes/lib.php) */
:root[data-theme="light"] {
	color-scheme: light;
	--bg: #faf7f3;
	--panel: #ffffff;
	--panel-2: #f3ede6;
	--border: #e4dbd1;
	--text: #1f1914;
	--muted: #75685b;
	--accent: #b4530f;
	--accent-2: #d9480f;
	--green: #15803d;
	--red: #dc2626;
	--glow-1: rgba(255, 106, 43, .10);
	--glow-2: rgba(240, 180, 106, .10);
	--title-from: #7c2d12;
	--red-text: #b91c1c;
	--green-text: #166534;
	--input: #ffffff;
	--input-focus: #ffffff;
	--faint: #a3958a;
	--gutter: #b3a69b;
	--border-strong: #cdbfb1;
	--thumb-bg: #f1ece6;
	--check-1: #ece7e1;
	--check-2: #f7f4f0;
	--text-2: #3d332b;
	--strong: #000;
	--inline-code: rgba(0, 0, 0, .06);
	--th: rgba(0, 0, 0, .04);
	--code-bg: #fbf9f7;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		color-scheme: light;
		--bg: #faf7f3;
		--panel: #ffffff;
		--panel-2: #f3ede6;
		--border: #e4dbd1;
		--text: #1f1914;
		--muted: #75685b;
		--accent: #b4530f;
		--accent-2: #d9480f;
		--green: #15803d;
		--red: #dc2626;
		--glow-1: rgba(255, 106, 43, .10);
		--glow-2: rgba(240, 180, 106, .10);
		--title-from: #7c2d12;
		--red-text: #b91c1c;
		--green-text: #166534;
		--input: #ffffff;
		--input-focus: #ffffff;
		--faint: #a3958a;
		--gutter: #b3a69b;
		--border-strong: #cdbfb1;
		--thumb-bg: #f1ece6;
		--check-1: #ece7e1;
		--check-2: #f7f4f0;
		--text-2: #3d332b;
		--strong: #000;
		--inline-code: rgba(0, 0, 0, .06);
		--th: rgba(0, 0, 0, .04);
		--code-bg: #fbf9f7;
	}
}

/* Botón de tema (cabecera) */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: 4px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: none;
	color: var(--muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.theme-btn:hover {
	border-color: var(--accent);
	color: var(--text);
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(1200px 500px at 0% -10%, var(--glow-1), transparent 60%),
		radial-gradient(900px 400px at 100% 0%, var(--glow-2), transparent 60%),
		var(--bg);
	color: var(--text);
	font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 20px 32px;
}

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

/* Cabecera */

.top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-bottom: 26px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-size: 1.25rem;
	font-weight: 700;
}

.brand:hover {
	text-decoration: none;
}

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 106, 43, .4);
	border-radius: 10px;
	background: var(--bg);
	color: var(--accent-2);
	font: 700 15px var(--mono);
}

.brand-host {
	color: var(--muted);
	font-weight: 400;
}

.nav {
	display: flex;
	gap: 4px;
}

.nav a {
	padding: 6px 12px;
	border-radius: 999px;
	color: var(--muted);
	font-size: .95rem;
}

.nav a:hover {
	background: var(--panel);
	color: var(--text);
	text-decoration: none;
}

.nav a[aria-current="page"] {
	background: var(--panel-2);
	color: var(--text);
}

/* Portada */

.hero h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(1.7rem, 4.5vw, 2.6rem);
	line-height: 1.15;
	background: linear-gradient(90deg, var(--title-from) 0%, var(--accent) 50%, var(--accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero p {
	margin: 8px 0 20px;
	color: var(--muted);
}

.card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--panel);
}

.alert {
	margin-bottom: 14px;
	padding: 10px 14px;
	border: 1px solid rgba(255, 107, 107, .4);
	border-radius: 10px;
	background: rgba(255, 107, 107, .1);
	color: var(--red-text);
}

.notice {
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid rgba(57, 211, 83, .35);
	border-radius: 10px;
	background: rgba(57, 211, 83, .08);
	color: var(--green-text);
}

.paste-form {
	overflow: hidden;
}

.paste-form textarea {
	display: block;
	width: 100%;
	min-height: 340px;
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid var(--border);
	background: var(--input);
	color: var(--text);
	font: 14px/1.6 var(--mono);
	tab-size: 4;
	resize: vertical;
	outline: none;
	white-space: pre;
	overflow-wrap: normal;
}

.paste-form textarea::placeholder {
	color: var(--faint);
}

.paste-form textarea:focus {
	background: var(--input-focus);
}

.drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 18px 0;
	padding: 12px 14px;
	border: 1px dashed var(--border-strong);
	border-radius: 10px;
	color: var(--muted);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.drop:hover,
.drop.over {
	border-color: var(--accent);
	background: rgba(240, 180, 106, .06);
	color: var(--text);
}

.drop.has-file {
	border-style: solid;
	border-color: rgba(57, 211, 83, .5);
	color: var(--text);
}

.drop.too-big {
	border-color: var(--red);
	color: var(--red-text);
}

.drop input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.drop span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.drop-thumb {
	position: relative;
	z-index: 1;
	flex: none;
	max-width: 96px;
	max-height: 64px;
	border-radius: 6px;
	border: 1px solid var(--border-strong);
	object-fit: contain;
	background: var(--thumb-bg);
}

.drop.has-file .drop-icon {
	display: none;
}

.drop small {
	color: var(--muted);
}

.drop-clear {
	position: relative;
	z-index: 1;
	margin-left: auto;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 16px;
	cursor: pointer;
}

.fields {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px 14px;
	padding: 14px 18px 0;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	color: var(--muted);
	font-size: .85rem;
}

.field small {
	opacity: .75;
}

.field-wide {
	grid-column: span 2;
}

.field input,
.field select {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--input);
	color: var(--text);
	font: inherit;
	font-size: .95rem;
}

.field select {
	appearance: none;
	padding-right: 30px;
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.paste-form textarea:focus-visible {
	border-color: var(--accent);
	outline: none;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding: 16px 18px 18px;
}

.form-note {
	color: var(--muted);
	font-size: .85rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--panel-2);
	color: var(--text);
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .1s;
}

.btn:hover {
	border-color: var(--accent);
	text-decoration: none;
}

.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
	color: #1a0d05;
}

.btn-primary:hover {
	border-color: transparent;
	filter: brightness(1.08);
}

.btn:disabled {
	opacity: .6;
	cursor: wait;
}

.features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.features div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
}

.features span {
	color: var(--muted);
	font-size: .9rem;
}

/* Inserción */

.view {
	padding: 20px;
}

.view-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.view-title {
	min-width: 0;
}

.view h1 {
	margin: 0 0 6px;
	font-size: 1.5rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	color: var(--muted);
	font-size: .88rem;
}

.meta .lang:not(:empty) {
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(240, 180, 106, .14);
	color: var(--accent);
}

.view-actions {
	display: flex;
	gap: 8px;
}

.code-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border: 1px solid var(--border);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: var(--panel-2);
}

.code-bar-sep {
	flex: 1;
}

.chip {
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: .85rem;
	line-height: 28px;
	cursor: pointer;
}

.chip:hover {
	border-color: var(--accent);
	color: var(--text);
	text-decoration: none;
}

.chip.on {
	border-color: rgba(240, 180, 106, .5);
	background: rgba(240, 180, 106, .12);
	color: var(--accent);
}

.code {
	display: flex;
	overflow: auto;
	max-height: 75vh;
	border: 1px solid var(--border);
	border-radius: 0 0 12px 12px;
	background: var(--input);
}

.code pre {
	margin: 0;
	padding: 14px 16px;
	font: 13.5px/1.6 var(--mono);
	tab-size: 4;
}

.code .gutter {
	position: sticky;
	left: 0;
	flex: none;
	padding-right: 12px;
	border-right: 1px solid var(--border);
	background: var(--input);
	color: var(--gutter);
	text-align: right;
	user-select: none;
}

.code .source {
	flex: 1;
	min-width: 0;
}

.code code,
.code code.hljs {
	display: block;
	padding: 0;
	background: transparent;
	color: var(--text);
	white-space: pre;
}

.code.wrap code,
.code.wrap code.hljs {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.code.wrap .gutter {
	display: none;
}

.file {
	margin-top: 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.file-image > a {
	display: block;
	background: repeating-conic-gradient(var(--check-1) 0% 25%, var(--check-2) 0% 50%) 50% / 20px 20px;
	text-align: center;
}

.file-image img {
	display: block;
	max-width: 100%;
	max-height: 70vh;
	margin: 0 auto;
}

.file-info {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--panel-2);
}

.file-icon {
	font-size: 22px;
}

.file-name {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 600;
}

.file-name small {
	color: var(--muted);
	font-weight: 400;
}

/* Textos */

.prose {
	max-width: 760px;
	padding: 26px 30px;
}

.prose h1 {
	margin: 0 0 12px;
	font-size: 1.7rem;
}

.prose h2 {
	margin: 24px 0 6px;
	color: var(--accent);
	font-size: 1.05rem;
}

.prose p,
.prose li {
	color: var(--text-2);
}

.prose-cta {
	margin-top: 26px;
}

.empty {
	padding: 30px;
	text-align: center;
}

.empty h1 {
	margin: 0 0 8px;
	font-size: 1.4rem;
}

.empty p {
	color: var(--muted);
}

/* Pie */

.foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: .85rem;
}

@media (max-width: 760px) {
	.fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.features {
		grid-template-columns: minmax(0, 1fr);
	}

	.paste-form textarea {
		min-height: 260px;
	}

	.prose {
		padding: 20px;
	}

	.view {
		padding: 14px;
	}
}

@media (max-width: 460px) {
	.wrap {
		padding: 14px 16px 24px;
	}

	.brand-host {
		display: none;
	}

	.fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-wide {
		grid-column: auto;
	}

	.form-actions .btn {
		width: 100%;
	}

	.view-actions {
		width: 100%;
	}

	.view-actions .btn {
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* Markdown con formato (results/view.php) */
.md {
	padding: 6px 22px 22px;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.md > :first-child {
	margin-top: 12px;
}

.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 {
	margin: 1.4em 0 .5em;
	line-height: 1.25;
	color: var(--text);
}

.md h1 { font-size: 1.8em; }
.md h2 { font-size: 1.45em; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
.md h3 { font-size: 1.2em; }
.md h4, .md h5, .md h6 { font-size: 1em; }

.md p, .md ul, .md ol, .md blockquote, .md table, .md pre {
	margin: 0 0 1em;
}

.md ul, .md ol {
	padding-left: 1.6em;
}

.md li + li {
	margin-top: .25em;
}

.md a {
	color: var(--accent);
}

.md strong {
	font-weight: 700;
	color: var(--strong);
}

.md code {
	padding: .15em .4em;
	border-radius: 5px;
	background: var(--inline-code);
	font-family: var(--mono);
	font-size: .9em;
}

.md pre {
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--code-bg);
	overflow-x: auto;
}

.md pre code,
.md pre code.hljs {
	padding: 0;
	background: none;
	font-size: .88em;
}

.md blockquote {
	padding: 2px 16px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
}

.md table {
	display: block;
	max-width: 100%;
	border-collapse: collapse;
	overflow-x: auto;
}

.md th, .md td {
	padding: 6px 12px;
	border: 1px solid var(--border);
}

.md th {
	background: var(--th);
}

.md hr {
	margin: 1.6em 0;
	border: 0;
	border-top: 1px solid var(--border);
}

.md img {
	max-width: 100%;
	border-radius: 8px;
}

.md-ext {
	padding: 6px 12px;
	border: 1px dashed var(--border);
	border-radius: 8px;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: .9em;
	cursor: pointer;
}

.md-ext:hover {
	border-color: var(--accent);
	color: var(--text);
}

/* Vistas especiales (view.js): tabla (.csv), árbol (.json) y salida de terminal (.term) */
.fmt {
	overflow: auto;
	max-height: 75vh;
	border: 1px solid var(--border);
	border-radius: 0 0 12px 12px;
	background: var(--input);
}

.fmt > p {
	margin: 0;
	padding: 18px 20px;
}

.fmt-info {
	padding: 0 4px;
	color: var(--faint);
	font-size: .82rem;
}

.fmt-note {
	color: var(--muted);
	font-size: .88rem;
}

table.csv {
	min-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .88rem;
}

.csv th, .csv td {
	max-width: 420px;
	padding: 6px 12px;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.csv th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--panel-2);
	color: var(--text);
	font-weight: 650;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
}

.csv th:hover, .csv th.sorted {
	color: var(--accent);
}

.csv th.csv-n {
	cursor: default;
	color: var(--faint);
}

.csv-arrow {
	font-size: .75em;
}

.csv td.csv-n {
	color: var(--faint);
	text-align: right;
	font-family: var(--mono);
	font-size: .8rem;
}

.csv .csv-n {
	position: sticky;
	left: 0;
	background: var(--panel-2);
	width: 1%;
}

.csv th.csv-n {
	z-index: 2;
}

.csv td.csv-num {
	text-align: right;
	font-family: var(--mono);
	font-variant-numeric: tabular-nums;
}

.csv td.csv-missing {
	background: var(--th);
}

.csv tbody tr:hover td {
	background: var(--th);
}

.j-tree, .j-pretty {
	margin: 0;
	padding: 14px 18px;
	font-family: var(--mono);
	font-size: .86rem;
	line-height: 1.6;
}

.j-pretty code.hljs {
	padding: 0;
	background: none;
}

.j-kids {
	padding-left: 1.4em;
	border-left: 1px dotted var(--border);
	margin-left: .3em;
}

.j-line {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.j-node > summary {
	list-style: none;
	cursor: pointer;
	white-space: nowrap;
}

.j-node > summary::-webkit-details-marker {
	display: none;
}

.j-node > summary::before {
	content: "▸";
	display: inline-block;
	width: 1.1em;
	margin-left: -1.1em;
	color: var(--faint);
	transition: transform .12s;
}

.j-node[open] > summary::before {
	transform: rotate(90deg);
}

.j-tree > .j-node {
	margin-left: 1.1em;
}

.j-ell {
	color: var(--faint);
}

.j-node[open] > summary .j-ell {
	display: none;
}

.j-count {
	margin-left: .8em;
	color: var(--faint);
	font-family: var(--sans, inherit);
	font-size: .8em;
}

.j-node[open] > summary .j-count {
	opacity: .6;
}

.j-key { color: #e06c75; }
.j-idx { color: var(--faint); }
.j-str { color: #98c379; }
.j-num { color: #d19a66; }
.j-bool, .j-null { color: #c678dd; }
.j-punct { color: var(--muted); }

:root[data-theme="light"] .j-key { color: #c03a2b; }
:root[data-theme="light"] .j-str { color: #3f7d1b; }
:root[data-theme="light"] .j-num { color: #a3560b; }
:root[data-theme="light"] .j-bool, :root[data-theme="light"] .j-null { color: #8a3fb5; }

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .j-key { color: #c03a2b; }
	:root:not([data-theme="dark"]) .j-str { color: #3f7d1b; }
	:root:not([data-theme="dark"]) .j-num { color: #a3560b; }
	:root:not([data-theme="dark"]) .j-bool, :root:not([data-theme="dark"]) .j-null { color: #8a3fb5; }
}

.j-more {
	margin: 4px 0;
	padding: 3px 10px;
	border: 1px dashed var(--border);
	border-radius: 6px;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: .85em;
	cursor: pointer;
}

.j-more:hover {
	border-color: var(--accent);
	color: var(--text);
}

.j-error {
	padding: 16px 20px;
}

.j-error p {
	margin: 0 0 10px;
}

.j-error-title {
	color: var(--red-text);
	font-weight: 650;
}

.j-error-msg {
	color: var(--muted);
	font-family: var(--mono);
	font-size: .85rem;
}

.j-error-code {
	margin: 0 0 12px;
	padding: 10px 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--code-bg);
	font-family: var(--mono);
	font-size: .85rem;
	overflow-x: auto;
}

.j-error-code > span {
	display: block;
	padding: 0 12px;
	white-space: pre;
}

.j-error-line {
	background: rgba(224, 85, 97, .14);
}

.j-error-n {
	display: inline-block;
	width: 3em;
	color: var(--faint);
}

.j-error-caret {
	color: var(--red-text);
	font-weight: 700;
}

/* La salida de terminal, siempre sobre fondo oscuro, como en una terminal */
.fmt-term {
	--term-bg: #101216;
	--term-fg: #d7dae0;
	--a0: #3f4451; --a1: #e05561; --a2: #8cc265; --a3: #d18f52;
	--a4: #4aa5f0; --a5: #c162de; --a6: #42b3c2; --a7: #d7dae0;
	--a8: #5c6370; --a9: #ff616e; --a10: #a5e075; --a11: #f0c060;
	--a12: #4dc4ff; --a13: #de73ff; --a14: #4cd1e0; --a15: #ffffff;
	background: var(--term-bg);
	color-scheme: dark;
}

.term {
	margin: 0;
	padding: 14px 18px;
	color: var(--term-fg);
	font-family: var(--mono);
	font-size: .86rem;
	line-height: 1.45;
	white-space: pre;
	width: max-content;
	min-width: 100%;
	box-sizing: border-box;
}

.fmt-term.wrap .term {
	width: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
