/* Match Olight's inline warning, scoped to the KPRO editor. */
#lpp-editor-modal [data-lpp-text-width-warning] {
	margin: 4px 0 0;
	color: #9b280e;
	font-size: 12px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
#lpp-editor-modal #lpp-text-input[aria-invalid=true] { border-color: #b23f20; }
#lpp-editor-modal .lpp-modal__footer-actions:has(#lpp-text-width-summary:not([hidden])) { flex-wrap: wrap; }
#lpp-editor-modal #lpp-text-width-summary { flex: 0 0 100%; margin: 0; text-align: end; }
#lpp-editor-modal:has(.lpp-text-panel:not([hidden]):not(.has-more) #lpp-text-width-warning:not([hidden])) #lpp-text-width-summary {
	display: none;
}
@media (max-width: 900px) {
	#lpp-editor-modal .lpp-text-panel:not(.has-more):has(#lpp-text-width-warning:not([hidden])) {
		grid-template-rows: minmax(var(--lpp-text-warning-entry, 86px), max-content) 50px;
		max-height: none;
	}
	#lpp-editor-modal .lpp-text-entry:has(#lpp-text-width-warning:not([hidden])) {
		padding-block-end: 6px;
	}
}
@media (max-width: 599px), (max-width: 900px) and (min-height: 501px) {
	#lpp-editor-modal .lpp-editor:has(.lpp-text-panel:not([hidden]):not(.has-more) #lpp-text-width-warning:not([hidden])) {
		grid-template-rows: minmax(0, 1fr) var(--lpp-text-warning-dock, 158px) 72px;
	}
	#lpp-editor-modal.lpp-compact-input .lpp-editor:has(.lpp-text-panel:not([hidden]):not(.has-more) #lpp-text-width-warning:not([hidden])) {
		grid-template-rows: minmax(0, 1fr) var(--lpp-text-warning-dock, 158px);
	}
}
@media (max-width: 360px) {
	#lpp-editor-modal { --lpp-text-warning-dock: 174px; --lpp-text-warning-entry: 102px; }
}
