.ngrt-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(13, 242, 255, 0.25);
	border-radius: 6px;
	background: rgba(5, 10, 18, 0.82);
	margin-bottom: 10px;
}

.ngrt-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
}

.ngrt-more {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ngrt-more-summary {
	list-style: none;
	user-select: none;
}

.ngrt-more-summary::-webkit-details-marker {
	display: none;
}

.ngrt-more-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	right: 0;
	display: grid;
	gap: 6px;
	width: min(420px, 86vw);
	max-height: min(360px, 52vh);
	overflow: auto;
	padding: 8px;
	border: 1px solid rgba(13, 242, 255, 0.35);
	border-radius: 8px;
	background: rgba(3, 8, 14, 0.98);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(13, 242, 255, 0.16);
}

.ngrt-more:not([open]) .ngrt-more-panel {
	display: none;
}

.ngrt-more-panel .ngrt-group {
	width: 100%;
	box-sizing: border-box;
}

.ngrt-toolbar.ngrt-profile-message .ngrt-more,
.ngrt-toolbar.ngrt-profile-compact .ngrt-more,
.ngrt-toolbar.ngrt-profile-publication .ngrt-more {
	position: static;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.ngrt-toolbar.ngrt-profile-message .ngrt-more[open],
.ngrt-toolbar.ngrt-profile-compact .ngrt-more[open],
.ngrt-toolbar.ngrt-profile-publication .ngrt-more[open] {
	flex: 1 0 100%;
}

.ngrt-toolbar.ngrt-profile-message .ngrt-more-panel,
.ngrt-toolbar.ngrt-profile-compact .ngrt-more-panel,
.ngrt-toolbar.ngrt-profile-publication .ngrt-more-panel {
	position: static;
	width: 100%;
	max-height: 150px;
	margin-top: 5px;
	padding: 5px;
	box-sizing: border-box;
	box-shadow: inset 0 0 14px rgba(13, 242, 255, 0.08);
}

.ngrt-label {
	color: #8beeff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-right: 2px;
}

.ngrt-button,
.ngrt-select,
.ngrt-toolbar input[type="color"] {
	min-height: 30px;
	border: 1px solid rgba(13, 242, 255, 0.45);
	border-radius: 4px;
	background: rgba(6, 18, 28, 0.95);
	color: #e7fbff;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

.ngrt-button {
	padding: 5px 8px;
}

.ngrt-button-mini {
	padding: 5px 6px;
	font-size: 12px;
}

.ngrt-color-wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ngrt-button:hover,
.ngrt-select:hover {
	background: rgba(13, 242, 255, 0.16);
}

.ngrt-editor,
.ngrt-bbcode {
	width: 100%;
	max-width: 100%;
	min-height: 260px;
	padding: 16px;
	box-sizing: border-box;
	border: 1px solid rgba(13, 242, 255, 0.35);
	border-radius: 6px;
	background: rgba(2, 5, 10, 0.38);
	color: #e7fbff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.65;
	outline: none;
	overflow-x: hidden;
	overflow-y: auto;
}

.ngrt-bbcode {
	resize: vertical;
	font-family: Consolas, monospace;
}

.ngrt-editor:focus {
	border-color: #0df2ff;
	box-shadow: 0 0 14px rgba(13, 242, 255, 0.16);
}

.ngrt-preview-controls {
	display: flex;
	justify-content: flex-end;
	margin: 10px 0;
}

.ngrt-preview {
	margin-bottom: 12px;
	padding: 16px;
	border: 1px solid rgba(13, 242, 255, 0.24);
	border-radius: 6px;
	background: rgba(3, 9, 16, 0.82);
}

.ngrt-preview[hidden] {
	display: none;
}

.ngrt-editor-previewing {
	opacity: 0.72;
}

.ngrt-content {
	color: #dffcff;
	font-size: 16px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ngrt-content p,
.ngrt-editor p {
	margin: 0 0 14px;
}

.ngrt-content > :first-child,
.ngrt-editor > :first-child {
	margin-top: 0;
}

.ngrt-content > :last-child,
.ngrt-editor > :last-child {
	margin-bottom: 0;
}

.ngrt-content h2,
.ngrt-content h3,
.ngrt-content h4,
.ngrt-editor h2,
.ngrt-editor h3,
.ngrt-editor h4 {
	color: #0df2ff;
	margin: 22px 0 12px;
	line-height: 1.2;
}

.ngrt-content ul,
.ngrt-content ol,
.ngrt-editor ul,
.ngrt-editor ol {
	margin: 0 0 14px;
	padding-left: 28px;
}

.ngrt-content ul,
.ngrt-editor ul {
	list-style: disc;
}

.ngrt-content ol,
.ngrt-editor ol {
	list-style: decimal;
}

.ngrt-content ul ul,
.ngrt-editor ul ul {
	list-style: circle;
}

.ngrt-content ol ol,
.ngrt-editor ol ol {
	list-style: lower-alpha;
}

.ngrt-content li,
.ngrt-editor li {
	margin: 0 0 6px;
}

.ngrt-content li:last-child,
.ngrt-editor li:last-child {
	margin-bottom: 0;
}

.ngrt-content a,
.ngrt-editor a {
	color: #71f6ff;
	text-decoration: underline;
}

.ngrt-content img,
.ngrt-editor img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid rgba(13, 242, 255, 0.35);
}

.ngrt-content iframe,
.ngrt-editor iframe {
	width: min(100%, 720px);
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 6px;
}

.ngrt-content table,
.ngrt-editor table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0;
}

.ngrt-content th,
.ngrt-content td,
.ngrt-editor th,
.ngrt-editor td {
	border: 1px solid rgba(13, 242, 255, 0.25);
	padding: 8px;
	vertical-align: top;
}

.ngrt-content th,
.ngrt-editor th {
	background: rgba(13, 242, 255, 0.12);
	color: #e7fbff;
}

.ngrt-content blockquote,
.ngrt-editor blockquote,
.ngrt-content .quote-box,
.ngrt-editor .quote-box {
	margin: 16px 0;
	padding: 12px 14px;
	border-left: 3px solid #0df2ff;
	background: rgba(13, 242, 255, 0.08);
	border-radius: 4px;
}

.ngrt-content blockquote > :last-child,
.ngrt-editor blockquote > :last-child,
.ngrt-content .quote-box > :last-child,
.ngrt-editor .quote-box > :last-child {
	margin-bottom: 0;
}

.ngrt-content .rp-box,
.ngrt-editor .rp-box,
.ngrt-content .hrp-box,
.ngrt-editor .hrp-box {
	margin: 16px 0;
	padding: 14px;
	border-radius: 6px;
	border: 1px solid rgba(13, 242, 255, 0.24);
	background: rgba(0, 0, 0, 0.28);
}

.ngrt-content .rp-box,
.ngrt-editor .rp-box {
	border-left: 3px solid #00ffcc;
}

.ngrt-content .hrp-box,
.ngrt-editor .hrp-box {
	border-left: 3px solid #ffcc00;
}

.ngrt-content .spoiler-container,
.ngrt-editor .spoiler-container {
	margin: 14px 0;
	padding: 12px;
	border: 1px dashed rgba(255, 204, 0, 0.45);
	border-radius: 6px;
}

.ngrt-content .spoiler-toggle,
.ngrt-editor .spoiler-toggle {
	border: 1px solid rgba(255, 204, 0, 0.55);
	border-radius: 4px;
	background: rgba(255, 204, 0, 0.12);
	color: #ffdf68;
	padding: 5px 8px;
	cursor: pointer;
}

.ngrt-content .spoiler-content.hidden,
.ngrt-editor .spoiler-content.hidden {
	display: none;
}

.ngrt-content pre,
.ngrt-editor pre,
.ngrt-content code,
.ngrt-editor code {
	font-family: Consolas, monospace;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
}

.ngrt-content code,
.ngrt-editor code {
	padding: 2px 5px;
}

.ngrt-content pre,
.ngrt-editor pre {
	padding: 12px;
	overflow: auto;
}

.ngrt-content hr,
.ngrt-editor hr {
	border: 0;
	border-top: 1px solid rgba(13, 242, 255, 0.35);
	margin: 18px 0;
}

.inbox-rich-editor-wrap .ngrt-editor,
.job-apply-rich-host .ngrt-editor,
.job-description-rich-editor.ngrt-editor,
.ng-vyral-editor.ngrt-editor,
.announcement-editor.ngrt-editor,
.jong-textarea.ngrt-editor {
	min-height: 120px;
	max-height: 340px;
	font-size: 14px;
	line-height: 1.55;
}

.inbox-rich-editor-wrap .ngrt-toolbar,
.job-apply-rich-host .ngrt-toolbar,
.job-description-rich-editor + .ngrt-toolbar,
.ng-vyral-editor.ngrt-editor ~ .ngrt-toolbar,
.announcement-editor.ngrt-editor ~ .ngrt-toolbar,
.jong-textarea.ngrt-editor ~ .ngrt-toolbar {
	font-size: 12px;
	gap: 6px;
	padding: 8px;
}

.ngrt-toolbar.ngrt-profile-message,
.ngrt-toolbar.ngrt-profile-compact,
.ngrt-toolbar.ngrt-profile-publication {
	gap: 4px;
	padding: 5px;
	margin-bottom: 6px;
	align-items: center;
	border-radius: 8px;
}

.ngrt-toolbar.ngrt-profile-message .ngrt-group,
.ngrt-toolbar.ngrt-profile-compact .ngrt-group,
.ngrt-toolbar.ngrt-profile-publication .ngrt-group {
	gap: 4px;
	padding: 4px;
	border-radius: 7px;
}

.ngrt-toolbar.ngrt-profile-message .ngrt-label {
	display: none;
}

.ngrt-toolbar.ngrt-profile-message .inbox-rich-media-group,
.ngrt-toolbar.ngrt-profile-compact .inbox-rich-media-group,
.ngrt-toolbar.ngrt-profile-publication .inbox-rich-media-group {
	margin-left: auto;
}

.ngrt-toolbar.ngrt-profile-compact .ngrt-label,
.ngrt-toolbar.ngrt-profile-publication .ngrt-label {
	font-size: 10px;
	letter-spacing: 0.05em;
	margin-right: 0;
}

.ngrt-toolbar.ngrt-profile-message .ngrt-button,
.ngrt-toolbar.ngrt-profile-message .ngrt-select,
.ngrt-toolbar.ngrt-profile-message input[type="color"],
.ngrt-toolbar.ngrt-profile-compact .ngrt-button,
.ngrt-toolbar.ngrt-profile-compact .ngrt-select,
.ngrt-toolbar.ngrt-profile-compact input[type="color"],
.ngrt-toolbar.ngrt-profile-publication .ngrt-button,
.ngrt-toolbar.ngrt-profile-publication .ngrt-select,
.ngrt-toolbar.ngrt-profile-publication input[type="color"] {
	min-height: 24px;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 6px;
}

.ngrt-toolbar.ngrt-profile-message input[type="color"],
.ngrt-toolbar.ngrt-profile-compact input[type="color"],
.ngrt-toolbar.ngrt-profile-publication input[type="color"] {
	width: 28px;
	padding: 2px;
}

.ngrt-toolbar.ngrt-profile-message .ngrt-button-mini,
.ngrt-toolbar.ngrt-profile-compact .ngrt-button-mini,
.ngrt-toolbar.ngrt-profile-publication .ngrt-button-mini {
	padding: 2px 5px;
	font-size: 10px;
}

.ngrt-editor.ngrt-profile-message,
.ngrt-editor.ngrt-profile-compact,
.ngrt-editor.ngrt-profile-publication {
	padding: 10px;
	min-height: 110px;
	font-size: 14px;
	line-height: 1.45;
}

.ngrt-profile-message.ngrt-bbcode,
.ngrt-profile-compact.ngrt-bbcode,
.ngrt-profile-publication.ngrt-bbcode {
	min-height: 110px;
	font-size: 13px;
	line-height: 1.4;
}

.job-rich-description,
.work-rich-content {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.45;
}

.job-apply-rich-host {
	width: 100%;
	margin-top: 8px;
}

@media (max-width: 720px) {
	.ngrt-toolbar {
		padding: 10px;
		gap: 8px;
	}

	.ngrt-group {
		width: 100%;
	}

	.ngrt-toolbar.ngrt-profile-message .ngrt-group,
	.ngrt-toolbar.ngrt-profile-compact .ngrt-group,
	.ngrt-toolbar.ngrt-profile-publication .ngrt-group {
		width: auto;
	}

	.ngrt-button,
	.ngrt-select,
	.ngrt-toolbar input[type="color"] {
		min-height: 34px;
	}

	.ngrt-editor,
	.ngrt-bbcode {
		min-height: 220px;
		padding: 12px;
	}
}
