

#texteditor-view {
	height: 100%;
}

.texteditor-page {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.texteditor-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
	flex-shrink: 0;
}

.texteditor-title {
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--text);
}

.texteditor-status {
	flex: 1;
	font-size: 0.76rem;
	color: var(--text-faint);
}

.texteditor-save-btn {
	padding: 6px 14px;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--accent-contrast);
	background: var(--accent);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.texteditor-save-btn:hover {
	background: var(--accent-strong);
}

.texteditor-save-btn:disabled {
	background: var(--surface-3);
	color: var(--text-faint);
	cursor: default;
}

.texteditor-area {
	flex: 1;
	width: 100%;
	padding: 14px 16px;
	border: none;
	outline: none;
	resize: none;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.9rem;
	line-height: 1.55;
	white-space: pre;
	overflow: auto;
}
