/* ── Fluxer-style inline editor ────────────────────────────────
   Lives in-place of the normal message body when the user edits.
   Rounded contenteditable box with the current text, an emoji
   button pinned top-right, and a keyboard-hint footer underneath
   telling the user how to save or cancel. */

.wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.3125rem;
	margin-top: 0.125rem;
	max-width: 100%;
}

.box {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.625rem 0.75rem;
	border-radius: 0.5rem;
	background-color: var(--background-secondary);
	border: 1px solid var(--background-modifier-accent);
}

.editor {
	flex: 1;
	min-width: 0;
	min-height: 1.25rem;
	max-height: 320px;
	overflow-y: auto;
	font-size: 0.9375rem;
	line-height: 1.375rem;
	color: var(--text-primary);
	outline: none;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.editor:empty::before {
	content: attr(data-placeholder);
	color: var(--text-tertiary);
	pointer-events: none;
}

.emojiButton {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: none;
	border-radius: 50%;
	background-color: transparent;
	color: var(--text-tertiary);
	cursor: pointer;
	transition: background-color 0.12s, color 0.12s;
}

.emojiButton:hover {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.hint {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding-left: 0.25rem;
	font-size: 0.75rem;
	color: var(--text-tertiary);
}

.hint strong {
	color: var(--brand-primary, #4641d9);
	font-weight: 600;
	cursor: pointer;
}

.hint strong:hover {
	text-decoration: underline;
}

.hintSeparator {
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background-color: var(--text-tertiary);
	margin: 0 0.125rem;
}

.error {
	font-size: 0.75rem;
	color: var(--status-danger);
	padding-left: 0.25rem;
}
