/* ==========================================================================
   NB Knowledge Base v3 — одна колонка, как остальные вкладки ЛК
   ========================================================================== */

/* --- Книжная карусель на обзоре (перед топ-релизами) --- */
@keyframes nb-kb-book-shine {
	0%, 100% { transform: translateX(-120%) skewX(-16deg); opacity: 0; }
	40% { opacity: 0.7; }
	55% { transform: translateX(220%) skewX(-16deg); opacity: 0; }
}

#nb-dashboard-wrapper .nb-kb-book-banner {
	margin: 0 0 12px;
	position: relative;
	z-index: 3;
}
#nb-dashboard-wrapper .nb-kb-book-banner.nb-overview-hidden {
	display: none !important;
}
#nb-dashboard-wrapper .nb-kb-book-banner__shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
	gap: 18px 22px;
	align-items: center;
	padding: 18px 20px 16px;
	border-radius: 20px;
	border: 1px solid rgba(255, 215, 0, 0.32);
	background:
		radial-gradient(ellipse 120% 80% at 0% 0%, rgba(255, 215, 0, 0.08) 0%, transparent 52%),
		radial-gradient(ellipse 80% 60% at 100% 100%, rgba(180, 130, 40, 0.08) 0%, transparent 55%),
		linear-gradient(135deg, rgba(18, 11, 3, 0.99) 0%, rgba(6, 4, 2, 1) 55%, rgba(14, 10, 4, 0.98) 100%);
	overflow: hidden;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 232, 170, 0.08);
}
#nb-dashboard-wrapper .nb-kb-book-banner__mesh,
#nb-dashboard-wrapper .nb-kb-book-banner__shine {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
#nb-dashboard-wrapper .nb-kb-book-banner__mesh {
	background:
		radial-gradient(ellipse 60% 80% at 8% 40%, rgba(255, 215, 0, 0.12) 0%, transparent 58%),
		radial-gradient(ellipse 45% 60% at 92% 20%, rgba(255, 180, 60, 0.08) 0%, transparent 52%);
}
#nb-dashboard-wrapper .nb-kb-book-banner__shine {
	top: 0;
	left: -40%;
	width: 40%;
	height: 100%;
	background: linear-gradient(105deg, transparent 0%, rgba(255, 240, 200, 0.1) 48%, transparent 100%);
	animation: nb-kb-book-shine 10s ease-in-out infinite;
}
#nb-dashboard-wrapper .nb-kb-book-banner__copy {
	position: relative;
	z-index: 2;
	min-width: 0;
}
#nb-dashboard-wrapper .nb-kb-book-banner__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 215, 0, 0.3);
	background: rgba(255, 215, 0, 0.12);
	color: #ffe08a;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
#nb-dashboard-wrapper .nb-kb-book-banner__eyebrow .material-symbols-outlined {
	font-size: 16px;
	font-variation-settings: 'FILL' 1;
}
#nb-dashboard-wrapper .nb-kb-book-banner__title {
	margin: 0 0 8px;
	font-family: var(--nb-font-head, Syne, sans-serif);
	font-size: clamp(1.15rem, 2.2vw, 1.55rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	text-transform: none;
}
#nb-dashboard-wrapper .nb-kb-book-banner__desc {
	margin: 0 0 14px;
	max-width: 420px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 235, 190, 0.62);
}
#nb-dashboard-wrapper .nb-kb-book-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 12px;
	border: 0;
	background: linear-gradient(135deg, #FFD700, #FFB000);
	color: #1a1408;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
	box-shadow: 0 8px 22px rgba(255, 215, 0, 0.22);
	transition: transform 0.18s ease, filter 0.18s ease;
}
#nb-dashboard-wrapper .nb-kb-book-banner__cta .material-symbols-outlined {
	font-size: 18px;
	font-variation-settings: 'FILL' 1;
}
#nb-dashboard-wrapper .nb-kb-book-banner__cta:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

/* Книга */
#nb-dashboard-wrapper .nb-kb-book {
	position: relative;
	z-index: 2;
	perspective: 1400px;
	min-height: 210px;
}
#nb-dashboard-wrapper .nb-kb-book__spine {
	position: absolute;
	left: 14px;
	top: 10px;
	bottom: 48px;
	width: 14px;
	border-radius: 4px 0 0 4px;
	background: linear-gradient(180deg, #c9a227 0%, #8a6a12 45%, #5c4508 100%);
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.35);
	z-index: 1;
}
#nb-dashboard-wrapper .nb-kb-book__pages {
	position: relative;
	min-height: 168px;
	margin-left: 20px;
	transform-style: preserve-3d;
}
#nb-dashboard-wrapper .nb-kb-book__page {
	position: absolute;
	inset: 0 auto auto 0;
	width: calc(100% - 8px);
	min-height: 168px;
	padding: 18px 18px 16px 22px;
	border-radius: 4px 16px 16px 4px;
	background: linear-gradient(165deg, rgba(36, 26, 12, 0.98) 0%, rgba(14, 10, 4, 0.99) 100%);
	border: 1px solid rgba(255, 215, 120, 0.28);
	box-shadow:
		0 16px 36px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 232, 170, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform-origin: left center;
	transform: rotateY(-78deg) translateX(-8px);
	transition: none;
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	overflow: hidden;
}
#nb-dashboard-wrapper .nb-kb-book__page-sheet {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, transparent 14%),
		repeating-linear-gradient(
			180deg,
			transparent 0,
			transparent 22px,
			rgba(255, 215, 0, 0.04) 22px,
			rgba(255, 215, 0, 0.04) 23px
		);
	pointer-events: none;
}
#nb-dashboard-wrapper .nb-kb-book__page.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: rotateY(0) translateX(0);
	z-index: 3;
}
#nb-dashboard-wrapper .nb-kb-book__page.is-flip-out-left {
	opacity: 1;
	visibility: visible;
	z-index: 4;
	animation: nb-kb-flip-out-left 0.6s cubic-bezier(0.4, 0.05, 0.2, 1) forwards;
}
#nb-dashboard-wrapper .nb-kb-book__page.is-flip-out-right {
	opacity: 1;
	visibility: visible;
	z-index: 4;
	animation: nb-kb-flip-out-right 0.6s cubic-bezier(0.4, 0.05, 0.2, 1) forwards;
}
#nb-dashboard-wrapper .nb-kb-book__page.is-flip-in-right {
	animation: nb-kb-flip-in-right 0.6s cubic-bezier(0.4, 0.05, 0.2, 1) forwards;
}
#nb-dashboard-wrapper .nb-kb-book__page.is-flip-in-left {
	animation: nb-kb-flip-in-left 0.6s cubic-bezier(0.4, 0.05, 0.2, 1) forwards;
}

@keyframes nb-kb-flip-out-left {
	0% { transform: rotateY(0); opacity: 1; }
	100% { transform: rotateY(-95deg); opacity: 0; }
}
@keyframes nb-kb-flip-out-right {
	0% { transform: rotateY(0); opacity: 1; }
	100% { transform: rotateY(95deg); opacity: 0; }
}
@keyframes nb-kb-flip-in-right {
	0% { transform: rotateY(88deg); opacity: 0; }
	100% { transform: rotateY(0); opacity: 1; }
}
@keyframes nb-kb-flip-in-left {
	0% { transform: rotateY(-88deg); opacity: 0; }
	100% { transform: rotateY(0); opacity: 1; }
}

#nb-dashboard-wrapper .nb-kb-book__page-ico {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(255, 215, 0, 0.14);
	border: 1px solid rgba(255, 215, 0, 0.32);
	color: #ffd700;
	font-size: 20px;
	font-variation-settings: 'FILL' 1;
}
#nb-dashboard-wrapper .nb-kb-book__page-label {
	position: relative;
	z-index: 1;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 224, 160, 0.55);
}
#nb-dashboard-wrapper .nb-kb-book__page-title {
	position: relative;
	z-index: 1;
	font-family: var(--nb-font-head, Syne, sans-serif);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
}
#nb-dashboard-wrapper .nb-kb-book__page-excerpt {
	position: relative;
	z-index: 1;
	font-size: 12.5px;
	line-height: 1.45;
	color: #a0a0b0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#nb-dashboard-wrapper .nb-kb-book__page-more {
	position: relative;
	z-index: 1;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffe08a;
}
#nb-dashboard-wrapper .nb-kb-book__page-more .material-symbols-outlined {
	font-size: 16px;
}
#nb-dashboard-wrapper .nb-kb-book__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
	margin-left: 20px;
}
#nb-dashboard-wrapper .nb-kb-book__nav {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid rgba(255, 215, 0, 0.22);
	background: rgba(28, 20, 10, 0.7);
	color: #ffe08a;
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}
#nb-dashboard-wrapper .nb-kb-book__nav:hover {
	border-color: rgba(255, 215, 0, 0.5);
	background: rgba(255, 215, 0, 0.1);
}
#nb-dashboard-wrapper .nb-kb-book__nav .material-symbols-outlined {
	font-size: 20px;
}
#nb-dashboard-wrapper .nb-kb-book__dots {
	display: flex;
	align-items: center;
	gap: 6px;
}
#nb-dashboard-wrapper .nb-kb-book__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}
#nb-dashboard-wrapper .nb-kb-book__dot.is-active {
	background: #ffd700;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
	transform: scale(1.15);
}

@media (max-width: 900px) {
	#nb-dashboard-wrapper .nb-kb-book-banner__shell {
		grid-template-columns: 1fr;
		padding: 16px 14px 14px;
	}
	#nb-dashboard-wrapper .nb-kb-book {
		min-height: 200px;
		max-width: 420px;
	}
	#nb-dashboard-wrapper .nb-kb-book-banner__title {
		font-size: 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	#nb-dashboard-wrapper .nb-kb-book-banner__shine,
	#nb-dashboard-wrapper .nb-kb-book__page.is-flip-out-left,
	#nb-dashboard-wrapper .nb-kb-book__page.is-flip-out-right,
	#nb-dashboard-wrapper .nb-kb-book__page.is-flip-in-right,
	#nb-dashboard-wrapper .nb-kb-book__page.is-flip-in-left {
		animation: none !important;
	}
}

/* --- Подсказки БЗ на обзоре --- */
#nb-dashboard-wrapper .nb-kb-overview-tips {
	margin: 0 0 18px;
	padding: 16px 16px 14px;
	border-radius: 20px;
	background: linear-gradient(165deg, rgba(28, 20, 8, 0.92) 0%, rgba(10, 7, 3, 0.96) 100%);
	border: 1px solid rgba(255, 215, 120, 0.22);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 232, 170, 0.06);
}
#nb-dashboard-wrapper .nb-kb-overview-tips__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
#nb-dashboard-wrapper .nb-kb-overview-tips__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 215, 0, 0.28);
	background: rgba(255, 215, 0, 0.12);
	color: #ffe08a;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
#nb-dashboard-wrapper .nb-kb-overview-tips__eyebrow .material-symbols-outlined {
	font-size: 16px;
	font-variation-settings: 'FILL' 1;
}
#nb-dashboard-wrapper .nb-kb-overview-tips__hint {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 224, 160, 0.45);
}
#nb-dashboard-wrapper .nb-kb-overview-tips__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#nb-dashboard-wrapper .nb-kb-overview-tip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 14px;
	border: 1px solid rgba(255, 215, 0, 0.12);
	background: rgba(0, 0, 0, 0.22);
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	outline: none !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}
#nb-dashboard-wrapper .nb-kb-overview-tip:hover {
	border-color: rgba(255, 215, 0, 0.4);
	background: rgba(255, 215, 0, 0.07);
}
#nb-dashboard-wrapper .nb-kb-overview-tip__ico {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 215, 0, 0.14);
	border: 1px solid rgba(255, 215, 0, 0.3);
	color: #ffd700;
	font-size: 20px;
	font-variation-settings: 'FILL' 1;
}
#nb-dashboard-wrapper .nb-kb-overview-tip__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
#nb-dashboard-wrapper .nb-kb-overview-tip__title {
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	line-height: 1.3;
}
#nb-dashboard-wrapper .nb-kb-overview-tip__sub {
	font-size: 12.5px;
	color: #a0a0b0;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#nb-dashboard-wrapper .nb-kb-overview-tip__go {
	color: rgba(255, 215, 0, 0.5);
	font-size: 20px;
	flex-shrink: 0;
	transition: transform 0.18s ease, color 0.18s ease;
}
#nb-dashboard-wrapper .nb-kb-overview-tip:hover .nb-kb-overview-tip__go {
	color: #ffd700;
	transform: translateX(3px);
}
#nb-dashboard-wrapper .nb-kb-overview-tips__all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: #ffe08a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}
#nb-dashboard-wrapper .nb-kb-overview-tips__all .material-symbols-outlined {
	font-size: 18px;
}
#nb-dashboard-wrapper .nb-kb-overview-tips__all:hover {
	color: #ffd700;
}
@media (max-width: 640px) {
	#nb-dashboard-wrapper .nb-kb-overview-tip__sub {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}


/* --- Кнопка в шапке около баланса --- */
#nb-dashboard-wrapper .nb-dash-top-help { cursor: pointer; flex-shrink: 0; }
#nb-dashboard-wrapper .nb-dash-top-pill-graphic--help {
	width: 40px; height: 40px; border-radius: 12px; position: relative;
	background: radial-gradient(circle at 30% 25%, rgba(255,236,160,.4), rgba(255,215,0,.12) 45%, transparent 70%),
		linear-gradient(160deg, rgba(255,215,0,.2), rgba(180,130,40,.1));
	border: 1px solid rgba(255,215,0,.42); color: #ffd700;
	box-shadow: inset 0 1px 0 rgba(255,240,180,.16), 0 0 18px rgba(255,215,0,.12);
}
#nb-dashboard-wrapper .nb-dash-top-pill-graphic--help .material-symbols-outlined {
	font-size: 22px; font-variation-settings: 'FILL' 1;
	filter: drop-shadow(0 0 10px rgba(255,215,0,.45));
}
#nb-dashboard-wrapper .nb-dash-top-help-spark {
	position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%;
	background: #ffe08a; box-shadow: 0 0 10px rgba(255,215,0,.85);
}
#nb-dashboard-wrapper .nb-dash-top-help-title {
	font-family: var(--nb-font-head, Syne, sans-serif);
	font-size: 13px; font-weight: 700; color: #fff4b8; white-space: nowrap;
}
#nb-dashboard-wrapper .nb-dash-top-help:hover { background: rgba(255,215,0,.1); }
#nb-dashboard-wrapper .nb-dash-top-help.active { background: rgba(255,215,0,.12); }
@media (max-width: 1024px) {
	#nb-dashboard-wrapper .nb-dash-top-help { padding: 6px 10px 6px 8px; min-height: 44px; }
	#nb-dashboard-wrapper .nb-dash-top-pill-graphic--help { width: 34px; height: 34px; border-radius: 10px; }
	#nb-dashboard-wrapper .nb-dash-top-help-title { font-size: 12px; }
}
@media (max-width: 480px) {
	#nb-dashboard-wrapper .nb-dash-top-help-body { display: none; }
	#nb-dashboard-wrapper .nb-dash-top-help { padding: 6px 8px; min-width: 44px; justify-content: center; }
	#nb-dashboard-wrapper .nb-dash-top-help-spark { display: none; }
}
#nb-dashboard-wrapper .nb-sidebar-mobile-balances .nb-dash-top-help--sidebar { order: -1; }
#nb-dashboard-wrapper .nb-dash-top-help--sidebar .nb-dash-top-help-title { font-size: 13px; color: #fff4b8; }

/* ========== Page shell ========== */
@keyframes su-kb-spin { to { transform: rotate(360deg); } }
@keyframes su-kb-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

#nb-kb-wrapper.nb-kb-skin-v3 {
	/* Палитра как у nb-music-submission / каталога — тёмно-золотая, без фиолета */
	--kb-bg: #0d0a06;
	--kb-gold: #FFD700;
	--kb-gold-hover: #FFB000;
	--kb-gold-soft: rgba(255, 215, 0, 0.15);
	--kb-line: rgba(255, 215, 120, 0.22);
	--kb-border: rgba(255, 215, 0, 0.12);
	--kb-muted: #a0a0b0;
	--kb-card: linear-gradient(165deg, rgba(28, 20, 8, 0.92) 0%, rgba(10, 7, 3, 0.96) 100%);
	--kb-card-hover: linear-gradient(165deg, rgba(34, 24, 10, 0.95) 0%, rgba(14, 10, 4, 0.98) 100%);
	--kb-head: var(--nb-font-head, 'Syne', 'Clash Display', sans-serif);
	--kb-body: 'Manrope', 'Plus Jakarta Sans', 'Inter', sans-serif;
	--kb-r: 20px;
	--kb-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(255, 215, 0, 0.04), 0 1px 0 rgba(255,255,255,0.03) inset;

	font-family: var(--kb-body);
	color: #fff;
	width: 100%;
	max-width: 920px;
	margin: 0;
	padding: 0 0 48px;
	position: relative;
	animation: su-kb-in .35s ease;
	-webkit-font-smoothing: antialiased;
}

#nb-dashboard-wrapper #nb-kb-wrapper.nb-kb-skin-v3 {
	max-width: 920px;
	min-width: 0;
	width: 100%;
}

#nb-kb-wrapper.nb-kb-mode-standalone.nb-kb-skin-v3 {
	max-width: 960px;
	margin: 24px auto;
	padding: 8px 16px 56px;
}

#nb-kb-wrapper.nb-kb-skin-v3 * { box-sizing: border-box; }

/* Без нативных button — только span[role=button], чтобы не было системного прямоугольника */
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-chip-btn,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-row,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-back,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-search-clear,
#nb-kb-wrapper .nb-kb-chip-btn,
#nb-kb-wrapper .nb-kb-row,
#nb-kb-wrapper .nb-kb-back,
#nb-kb-wrapper .nb-kb-search-clear {
	-webkit-appearance: none !important;
	appearance: none !important;
	-webkit-tap-highlight-color: transparent !important;
	outline: none !important;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-chip-btn:focus,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-chip-btn:focus-visible,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-row:focus,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-row:focus-visible,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-search-input:focus,
#nb-dashboard-wrapper #nb-kb-wrapper .nb-kb-search-input:focus-visible,
#nb-kb-wrapper .nb-kb-chip-btn:focus,
#nb-kb-wrapper .nb-kb-row:focus,
#nb-kb-wrapper .nb-kb-search-input:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* Header — как заголовок вкладки ЛК */
#nb-kb-wrapper .nb-kb-page-head { margin: 0 0 22px; }
#nb-kb-wrapper .nb-kb-page-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 10px; padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--kb-line);
	background: var(--kb-gold-soft);
	color: #ffe08a;
	font-size: 11px; font-weight: 800;
	letter-spacing: .1em; text-transform: uppercase;
}
#nb-kb-wrapper .nb-kb-page-eyebrow .material-symbols-outlined {
	font-size: 16px; font-variation-settings: 'FILL' 1;
}
#nb-kb-wrapper .nb-kb-page-title {
	font-family: var(--kb-head) !important;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
	font-weight: 800 !important;
	letter-spacing: -1px;
	text-transform: uppercase;
	margin: 0 0 10px !important;
	color: #fff !important;
	line-height: 1.1;
	text-shadow: 0 4px 20px rgba(0,0,0,.45);
}
#nb-kb-wrapper .nb-kb-page-sub {
	margin: 0;
	max-width: 540px;
	color: var(--kb-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* Search */
#nb-kb-wrapper .nb-kb-toolbar { margin-bottom: 14px; }
#nb-kb-wrapper .nb-kb-search {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 16px;
	border-radius: 16px;
	background: rgba(28, 20, 10, 0.55);
	border: 1px solid var(--kb-border);
	box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.03);
	transition: border-color .2s ease, box-shadow .2s ease;
}
#nb-kb-wrapper .nb-kb-search:focus-within {
	border-color: rgba(255,215,0,.45);
	/* без внешней «рамки-прямоугольника» — только цвет бордера */
	box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.04);
}
#nb-kb-wrapper .nb-kb-search > .material-symbols-outlined {
	color: var(--kb-gold); font-size: 22px;
}
#nb-kb-wrapper .nb-kb-search-input {
	flex: 1; min-width: 0;
	background: transparent;
	border: 0;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	color: #fff; font-size: 15px; font-weight: 500;
}
#nb-kb-wrapper .nb-kb-search-input:focus,
#nb-kb-wrapper .nb-kb-search-input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	background: transparent;
}
#nb-kb-wrapper .nb-kb-search-input::placeholder { color: rgba(255,255,255,.32); }
#nb-kb-wrapper .nb-kb-search-clear {
	display: inline-flex; padding: 2px; border-radius: 8px; color: #777;
}
#nb-kb-wrapper .nb-kb-search-clear:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Chips — горизонтальные разделы со стрелками */
#nb-kb-wrapper .nb-kb-chips-rail {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	max-width: 100%;
	margin: 0 0 10px;
	min-width: 0;
}
#nb-kb-wrapper .nb-kb-chips-nav {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid var(--kb-border);
	background: rgba(28, 20, 10, 0.75);
	color: #ffe08a;
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}
#nb-kb-wrapper .nb-kb-chips-nav:hover {
	border-color: rgba(255, 215, 0, 0.45);
	background: rgba(255, 215, 0, 0.1);
}
#nb-kb-wrapper .nb-kb-chips-nav.is-disabled {
	opacity: 0.28;
	pointer-events: none;
}
#nb-kb-wrapper .nb-kb-chips-nav .material-symbols-outlined {
	font-size: 22px;
}
#nb-kb-wrapper .nb-kb-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px 6px;
	margin: 0;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 215, 0, 0.35) transparent;
	cursor: grab;
}
#nb-kb-wrapper .nb-kb-chips.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}
#nb-kb-wrapper .nb-kb-chips::-webkit-scrollbar {
	height: 4px;
}
#nb-kb-wrapper .nb-kb-chips::-webkit-scrollbar-thumb {
	background: rgba(255, 215, 0, 0.35);
	border-radius: 4px;
}

#nb-kb-wrapper .nb-kb-chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid var(--kb-border);
	background: rgba(28, 20, 10, 0.55);
	color: rgba(255,255,255,.72);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
	-webkit-tap-highlight-color: transparent;
	outline: none !important;
	user-select: none;
}
#nb-kb-wrapper .nb-kb-chip-btn:focus,
#nb-kb-wrapper .nb-kb-chip-btn:focus-visible,
#nb-kb-wrapper .nb-kb-chip-btn:active {
	outline: none !important;
}
#nb-kb-wrapper .nb-kb-chip-btn .material-symbols-outlined {
	font-size: 18px; color: rgba(255,224,160,.65);
}
#nb-kb-wrapper .nb-kb-chip-btn em {
	font-style: normal;
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	color: rgba(255,255,255,.45);
}
#nb-kb-wrapper .nb-kb-chip-btn:hover {
	color: #fff8e8;
	border-color: rgba(255,216,124,.28);
	background: rgba(255,215,0,.06);
}
#nb-kb-wrapper .nb-kb-chip-btn.is-active {
	color: #1a1408;
	background: linear-gradient(135deg, var(--kb-gold), var(--kb-gold-hover));
	border-color: rgba(255, 215, 0, 0.65);
	/* без внешнего glow — в горизонтальном скролле он обрезается и «застывает» */
	box-shadow: none;
}
#nb-kb-wrapper .nb-kb-chip-btn.is-active .material-symbols-outlined,
#nb-kb-wrapper .nb-kb-chip-btn.is-active em {
	color: rgba(26,20,8,.75);
	background: rgba(0,0,0,.1);
}
#nb-kb-wrapper .nb-kb-chip-btn--video {
	border-color: rgba(255, 215, 0, 0.42);
	background: rgba(255, 215, 0, 0.1);
	color: #ffe08a;
}
#nb-kb-wrapper .nb-kb-chip-btn--video .material-symbols-outlined {
	color: #ffd700;
	font-variation-settings: 'FILL' 1;
}
#nb-kb-wrapper .nb-kb-video-section {
	margin-bottom: 24px;
}
#nb-kb-wrapper .nb-kb-video-card {
	display: grid;
	gap: 14px;
	padding: 16px;
	border-radius: var(--kb-r);
	border: 1px solid rgba(255, 215, 0, 0.28);
	background:
		radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 215, 0, 0.1) 0%, transparent 55%),
		var(--kb-card);
	box-shadow: var(--kb-shadow);
}
#nb-kb-wrapper .nb-kb-video-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}
#nb-kb-wrapper .nb-kb-video-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 215, 0, 0.3);
	background: rgba(255, 215, 0, 0.12);
	color: #ffe08a;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
#nb-kb-wrapper .nb-kb-video-badge .material-symbols-outlined {
	font-size: 16px;
	font-variation-settings: 'FILL' 1;
}
#nb-kb-wrapper .nb-kb-video-copy strong {
	font-family: var(--kb-head);
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}
#nb-kb-wrapper .nb-kb-video-copy p {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 235, 190, 0.62);
}
#nb-kb-wrapper .nb-kb-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	border: 1px solid rgba(255, 215, 0, 0.18);
}
#nb-kb-wrapper .nb-kb-video-frame video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}
#nb-kb-wrapper .nb-kb-video-ext {
	display: inline-flex;
	align-items: center;
	margin-top: 2px;
	color: #ffe08a;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
#nb-kb-wrapper .nb-kb-video-ext:hover {
	text-decoration: underline;
}
#nb-kb-wrapper .nb-kb-video-search-hit {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(255, 215, 0, 0.32);
	background: rgba(255, 215, 0, 0.1);
	color: #ffe08a;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
#nb-kb-wrapper .nb-kb-video-search-hit .material-symbols-outlined {
	font-size: 22px;
	font-variation-settings: 'FILL' 1;
	color: #ffd700;
}

/* Stage / loader */
#nb-kb-wrapper .nb-kb-stage { position: relative; min-height: 120px; }
#nb-kb-wrapper .nb-kb-loader {
	position: absolute; inset: 0; z-index: 5;
	display: flex; align-items: center; justify-content: center;
	background: rgba(2,0,8,.25); border-radius: var(--kb-r);
	backdrop-filter: blur(2px);
}
#nb-kb-wrapper .nb-kb-loader[hidden] { display: none !important; }
#nb-kb-wrapper .nb-kb-spinner {
	width: 36px; height: 36px; border-radius: 50%;
	border: 3px solid rgba(255,255,255,.1);
	border-top-color: var(--kb-gold);
	animation: su-kb-spin .7s linear infinite;
}
#nb-kb-wrapper .nb-kb-panel { animation: su-kb-in .3s ease; }

/* Sections */
#nb-kb-wrapper .nb-kb-section { margin-bottom: 22px; }
#nb-kb-wrapper .nb-kb-section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 10px; margin-bottom: 10px; padding: 0 2px;
}
#nb-kb-wrapper .nb-kb-section-head h2 {
	margin: 0;
	font-family: var(--kb-head);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,224,160,.7);
}
#nb-kb-wrapper .nb-kb-section-head span {
	font-size: 12px; font-weight: 700; color: rgba(255,255,255,.3);
}

/* Rows — чистые строки, не карточки-монстры */
#nb-kb-wrapper .nb-kb-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	border-radius: var(--kb-r);
	background: var(--kb-card);
	border: 1px solid var(--kb-line);
	box-shadow: var(--kb-shadow);
}

#nb-kb-wrapper .nb-kb-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid transparent;
	transition: background .18s ease, border-color .18s ease;
	-webkit-tap-highlight-color: transparent;
	outline: none !important;
}
#nb-kb-wrapper .nb-kb-row:hover {
	background: rgba(255,215,0,.08);
	border-color: rgba(255,215,120,.28);
}
#nb-kb-wrapper .nb-kb-row:focus,
#nb-kb-wrapper .nb-kb-row:focus-visible,
#nb-kb-wrapper .nb-kb-row:active {
	outline: none !important;
	background: rgba(255,215,0,.08);
	border-color: rgba(255,215,120,.28);
}

#nb-kb-wrapper .nb-kb-row-ico {
	width: 40px; height: 40px; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px;
	background: var(--kb-gold-soft);
	border: 1px solid rgba(255,215,0,.28);
	color: var(--kb-gold);
	font-size: 20px;
	font-variation-settings: 'FILL' 1;
}
#nb-kb-wrapper .nb-kb-row-main {
	flex: 1; min-width: 0;
	display: flex; flex-direction: column; gap: 3px;
}
#nb-kb-wrapper .nb-kb-row-title {
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.3;
	color: #fff;
}
#nb-kb-wrapper .nb-kb-row-sub {
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--kb-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#nb-kb-wrapper .nb-kb-row-go {
	color: rgba(255,215,0,.45);
	font-size: 20px;
	flex-shrink: 0;
	transition: transform .18s ease, color .18s ease;
}
#nb-kb-wrapper .nb-kb-row:hover .nb-kb-row-go {
	color: var(--kb-gold);
	transform: translateX(3px);
}

#nb-kb-wrapper .nb-kb-empty {
	padding: 36px 16px;
	text-align: center;
	color: rgba(255,255,255,.4);
	font-weight: 600;
}

/* Article */
#nb-kb-wrapper .nb-kb-article {
	padding: 22px 22px 28px;
	border-radius: var(--kb-r);
	background: var(--kb-card);
	border: 1px solid var(--kb-line);
	box-shadow: var(--kb-shadow);
	animation: su-kb-in .3s ease;
}
#nb-kb-wrapper .nb-kb-back {
	display: inline-flex; align-items: center; gap: 6px;
	margin-bottom: 14px;
	padding: 8px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255,215,0,.28);
	background: rgba(255,215,0,.08);
	color: #ffe08a;
	font-size: 11px; font-weight: 800;
	letter-spacing: .06em; text-transform: uppercase;
}
#nb-kb-wrapper .nb-kb-back:hover {
	color: #1a1408;
	background: linear-gradient(135deg, #FFD700, #FFB000);
	border-color: transparent;
}
#nb-kb-wrapper .nb-kb-article-meta {
	display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
#nb-kb-wrapper .nb-kb-meta {
	display: inline-flex;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1);
	color: rgba(255,235,190,.7);
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em;
}
#nb-kb-wrapper .nb-kb-article-title {
	font-family: var(--kb-head) !important;
	font-size: clamp(1.4rem, 2.8vw, 2rem) !important;
	font-weight: 800 !important;
	letter-spacing: -.5px;
	text-transform: uppercase;
	margin: 0 0 18px !important;
	color: #fff !important;
	line-height: 1.15;
}
#nb-kb-wrapper .nb-kb-article-body {
	color: var(--kb-muted);
	font-size: 15.5px;
	line-height: 1.75;
	max-width: 720px;
}
#nb-kb-wrapper .nb-kb-article-body h2,
#nb-kb-wrapper .nb-kb-article-body h3 {
	color: #fff;
	font-family: var(--kb-head);
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin: 28px 0 12px;
	display: flex; align-items: center; gap: 10px;
}
#nb-kb-wrapper .nb-kb-article-body h2::before,
#nb-kb-wrapper .nb-kb-article-body h3::before {
	content: '';
	width: 3px; height: 18px;
	border-radius: 2px;
	background: var(--kb-gold);
	box-shadow: 0 0 10px rgba(255,215,0,.4);
}
#nb-kb-wrapper .nb-kb-article-body p { margin: 0 0 14px; }
#nb-kb-wrapper .nb-kb-article-body ul,
#nb-kb-wrapper .nb-kb-article-body ol { margin: 0 0 14px; padding-left: 20px; }
#nb-kb-wrapper .nb-kb-article-body a {
	color: var(--kb-gold) !important;
	font-weight: 700;
	text-decoration: none !important;
}
#nb-kb-wrapper .nb-kb-article-body a:hover { text-decoration: underline !important; }
#nb-kb-wrapper .nb-kb-article-body img {
	max-width: 100%; height: auto;
	border-radius: 14px;
	border: 1px solid rgba(255,215,0,.22);
	margin: 14px 0;
}
#nb-kb-wrapper .nb-kb-related {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,216,124,.16);
}
#nb-kb-wrapper .nb-kb-related .nb-kb-list {
	background: rgba(28, 20, 10, 0.45);
	box-shadow: none;
}

/* Mobile */
@media (max-width: 768px) {
	#nb-kb-wrapper.nb-kb-skin-v3 { padding-bottom: 32px; }
	#nb-kb-wrapper .nb-kb-page-title { font-size: 1.55rem !important; }
	#nb-kb-wrapper .nb-kb-page-sub { font-size: 14px; }
	#nb-kb-wrapper .nb-kb-article { padding: 16px; border-radius: 16px; }
	#nb-kb-wrapper .nb-kb-list { padding: 6px; border-radius: 16px; }
	#nb-kb-wrapper .nb-kb-row { padding: 11px 10px; }
	#nb-kb-wrapper .nb-kb-row-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
	#nb-kb-wrapper .nb-kb-row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	#nb-kb-wrapper .nb-kb-chip-btn { padding: 9px 12px; font-size: 12.5px; }
	#nb-kb-wrapper .nb-kb-video-card { padding: 12px; }
	#nb-kb-wrapper .nb-kb-video-copy strong { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
	#nb-kb-wrapper.nb-kb-skin-v3,
	#nb-kb-wrapper .nb-kb-panel,
	#nb-kb-wrapper .nb-kb-article { animation: none; }
}
