/* Временный отзыв о доске. Удалить вместе с js/php. */
.nb-fb-btn {
	position: fixed;
	right: 0;
	top: 42%;
	z-index: 1030;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 12px 8px;
	border: 1px solid rgba(20, 20, 20, 0.12);
	border-right: 0;
	border-radius: 8px 0 0 8px;
	background: #fff;
	color: #1a1a1a;
	font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.nb-fb-btn-in { display: inline-flex; align-items: center; gap: 6px; }
.nb-fb-btn.is-nudge { animation: nb-fb-nudge-desk .85s ease-in-out 1; }
@keyframes nb-fb-nudge-desk {
	0%, 100% { transform: rotate(180deg); }
	20% { transform: rotate(180deg) translateY(-6px); }
	40% { transform: rotate(180deg) translateY(4px); }
	60% { transform: rotate(180deg) translateY(-3px); }
	80% { transform: rotate(180deg) translateY(2px); }
}
.nb-fb-btn:hover { background: #eff6ff; color: #1d4ed8; }
html.nb-dk .nb-fb-btn {
	background: #2c2c2e;
	color: #f3f4f6;
	border-color: #3f3f46;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
html.nb-dk .nb-fb-btn:hover { background: #1e3a5f; color: #93c5fd; }
.nb-fb-btn svg { width: 16px; height: 16px; flex: none; transform: rotate(180deg); }

.nb-fb-ov {
	position: fixed; inset: 0; z-index: 20050;
	background: rgba(28, 28, 30, .45);
	display: flex; align-items: center; justify-content: center;
	padding: 24px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1a1a1a;
	box-sizing: border-box;
}
.nb-fb-box {
	width: min(480px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
html.nb-dk .nb-fb-ov { color: #f3f4f6; }
html.nb-dk .nb-fb-box { background: #2c2c2e; border-color: #3f3f46; }
.nb-fb-h {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(20, 20, 20, .08);
	font-size: 18px; font-weight: 700;
}
html.nb-dk .nb-fb-h { border-color: rgba(240, 240, 240, .12); }
.nb-fb-x {
	width: 36px; height: 36px; border: 0; border-radius: 8px;
	background: transparent; color: inherit; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.nb-fb-x:hover { background: rgba(20, 20, 20, .06); }
html.nb-dk .nb-fb-x:hover { background: rgba(240, 240, 240, .08); }
.nb-fb-b { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.nb-fb-p { margin: 0; font-size: 14px; line-height: 1.45; }
.nb-fb-p + .nb-fb-p { margin-top: -4px; }
.nb-fb-muted { color: #6b6b6b; }
html.nb-dk .nb-fb-muted { color: #9ca3af; }
.nb-fb-link {
	align-self: flex-start;
	color: #2563eb; font-size: 14px; font-weight: 600;
	background: none; border: 0; padding: 0; cursor: pointer;
	text-decoration: none;
}
.nb-fb-link:hover { color: #1d4ed8; }
html.nb-dk .nb-fb-link { color: #93c5fd; }
html.nb-dk .nb-fb-link:hover { color: #93c5fd; }

.nb-fb-changes {
	margin: 0;
	padding: 12px;
	border-radius: 12px;
	background: #f0f0f0;
	font-size: 14px; line-height: 1.45;
}
html.nb-dk .nb-fb-changes { background: #1c1c1e; }
.nb-fb-changes-lead { margin: 0 0 10px; font-weight: 600; }
.nb-fb-changes h3 { margin: 12px 0 6px; font-size: 14px; font-weight: 700; }
.nb-fb-changes p { margin: 0 0 6px; }
.nb-fb-changes p:last-child { margin-bottom: 0; }

.nb-fb-label { font-size: 12px; font-weight: 600; color: #8a8a8a; letter-spacing: .1em; text-transform: uppercase; }
html.nb-dk .nb-fb-label { color: #a1a1a6; }
.nb-fb-text {
	width: 100%; min-height: 120px; box-sizing: border-box;
	padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 1.4;
	border: 1px solid #d1d5db; background: #fff; color: #1a1a1a;
	font-family: inherit; resize: vertical;
}
html.nb-dk .nb-fb-text {
	background: #2a2a2e; border-color: #3f3f46; color: #f3f4f6;
}
.nb-fb-text::placeholder { color: #6b7280; }
html.nb-dk .nb-fb-text::placeholder { color: #9ca3af; }
.nb-fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nb-fb-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nb-fb-pick {
	display: inline-flex; align-items: center; gap: 6px;
	height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
	border: 1px solid #d1d5db; background: #fff; color: #1a1a1a; cursor: pointer;
}
html.nb-dk .nb-fb-pick { background: #2a2a2e; border-color: #3f3f46; color: #f3f4f6; }
.nb-fb-pick:hover { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
html.nb-dk .nb-fb-pick:hover { background: #1e3a5f; color: #93c5fd; }
.nb-fb-hint { font-size: 12px; color: #6b6b6b; }
html.nb-dk .nb-fb-hint { color: #9ca3af; }
.nb-fb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-fb-thumb {
	width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
	background: #f0f0f0;
}
html.nb-dk .nb-fb-thumb { background: #1c1c1e; }
.nb-fb-err { font-size: 14px; color: #ed1c24; }
.nb-fb-ok { font-size: 14px; font-weight: 600; }
.nb-fb-send {
	display: inline-flex; align-items: center; justify-content: center;
	height: 38px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
	border: 0; background: #2563eb; color: #fff; cursor: pointer; align-self: flex-start;
}
.nb-fb-send:hover { background: #1d4ed8; }
.nb-fb-send:disabled { opacity: .6; cursor: default; }

@media (max-width: 720px) {
	.nb-fb-btn {
		top: auto;
		right: auto;
		left: 12px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		writing-mode: horizontal-tb;
		transform: none;
		padding: 8px 12px;
		border-radius: 999px;
		border-right: 1px solid rgba(20, 20, 20, 0.12);
	}
	html.nb-dk .nb-fb-btn { border-right-color: #3f3f46; }
	.nb-fb-btn svg { transform: none; }
	.nb-fb-btn.is-nudge { animation-name: nb-fb-nudge-mob; }
	@keyframes nb-fb-nudge-mob {
		0%, 100% { transform: none; }
		20% { transform: translateY(-5px); }
		40% { transform: translateY(3px); }
		60% { transform: translateY(-3px); }
		80% { transform: translateY(1px); }
	}
}
@media (prefers-reduced-motion: reduce) {
	.nb-fb-btn.is-nudge { animation: none; }
}
