.npp-board-message {
	padding: 16px 20px;
	border: 1px solid #dba617;
	background: #fcf9e8;
	border-radius: 8px;
	text-align: center;
}

.npp-board-app {
	font-family: Arial, Helvetica, sans-serif;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 10px;
}

.npp-board-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: start;
}

.npp-board-sidebar {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	padding: 16px 12px;
	position: sticky;
	top: 20px;
}

.npp-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.npp-sidebar-header h3 {
	margin: 0;
	font-size: 1.1rem;
}

.npp-sidebar-add-group {
	border: none;
	background: #2271b1;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
}

.npp-groups-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.npp-group-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin-bottom: 4px;
}

.npp-group-link {
	flex: 1;
	border: none;
	background: transparent;
	text-align: right;
	padding: 10px 12px;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	color: #1d2327;
}

.npp-group-link:hover,
.npp-group-link.is-active {
	background: #f0f6fc;
	color: #2271b1;
	font-weight: 600;
}

.npp-group-actions {
	display: flex;
	gap: 2px;
}

.npp-group-edit,
.npp-group-move {
	border: none;
	background: transparent;
	cursor: pointer;
	color: #646970;
	padding: 4px;
	font-size: 0.75rem;
}

.npp-board-main {
	min-width: 0;
}

.npp-board-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.npp-board-heading {
	margin: 0;
	font-size: 1.8rem;
	color: #1d2327;
}

.npp-board-add-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: #2271b1;
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
}

.npp-board-add-btn:hover {
	background: #135e96;
}

.npp-plus {
	font-size: 1.3rem;
	line-height: 1;
}

.npp-board-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	min-height: 200px;
}

.npp-board-loading,
.npp-board-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #646970;
	padding: 40px 20px;
}

.npp-sticky-note {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	padding: 16px 14px 12px;
	text-align: right;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 8px;
	overflow: visible;
}

.npp-sticky-note:hover {
	transform: translateY(-3px);
}

.npp-sticky-note.color-yellow:hover { background: #fff59d; }
.npp-sticky-note.color-pink:hover { background: #f8bbd0; }
.npp-sticky-note.color-green:hover { background: #c8e6c9; }
.npp-sticky-note.color-blue:hover { background: #bbdefb; }
.npp-sticky-note.color-orange:hover { background: #ffe0b2; }
.npp-sticky-note.color-purple:hover { background: #e1bee7; }
.npp-sticky-note.color-gray:hover { background: #eeeeee; }

.npp-sticky-note::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 22px 22px 0;
	border-color: transparent rgba(0, 0, 0, 0.08) transparent transparent;
}

.npp-sticky-note.color-yellow { background: #fff59d; }
.npp-sticky-note.color-pink { background: #f8bbd0; }
.npp-sticky-note.color-green { background: #c8e6c9; }
.npp-sticky-note.color-blue { background: #bbdefb; }
.npp-sticky-note.color-orange { background: #ffe0b2; }
.npp-sticky-note.color-purple { background: #e1bee7; }
.npp-sticky-note.color-gray { background: #eeeeee; }

.npp-sticky-menu-btn {
	position: absolute;
	top: 8px;
	left: 8px;
	border: none;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 4px;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	z-index: 2;
	color: #1d2327;
}

.npp-sticky-menu {
	position: absolute;
	top: 38px;
	left: 8px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	z-index: 10;
	min-width: 140px;
	overflow: hidden;
}

.npp-sticky-menu[hidden],
.npp-color-popup[hidden] {
	display: none !important;
}

.npp-sticky-menu button {
	display: block;
	width: 100%;
	border: none;
	background: #fff;
	color: #1d2327;
	text-align: right;
	padding: 10px 14px;
	cursor: pointer;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.4;
}

.npp-sticky-menu button:hover {
	background: #f6f7f7;
	color: #1d2327;
}

.npp-sticky-menu [data-action="delete"] {
	color: #d63638;
}

.npp-sticky-menu [data-action="delete"]:hover {
	color: #b32d2e;
	background: #fcf0f1;
}

.npp-color-popup {
	position: absolute;
	top: 38px;
	left: 8px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: 130px;
}

.npp-color-swatch {
	width: 28px;
	height: 28px;
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
}

.npp-color-swatch.is-selected {
	border-color: #1d2327;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d2327;
}

.npp-color-swatch.color-yellow { background: #fff59d; }
.npp-color-swatch.color-pink { background: #f8bbd0; }
.npp-color-swatch.color-green { background: #c8e6c9; }
.npp-color-swatch.color-blue { background: #bbdefb; }
.npp-color-swatch.color-orange { background: #ffe0b2; }
.npp-color-swatch.color-purple { background: #e1bee7; }
.npp-color-swatch.color-gray { background: #eeeeee; }

.npp-color-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.npp-sticky-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.npp-badge {
	font-size: 0.72rem;
	background: rgba(255, 255, 255, 0.55);
	padding: 2px 8px;
	border-radius: 12px;
	color: #1d2327;
}

.npp-view-modal-wrap {
	padding: 24px;
}

.npp-view-card {
	position: relative;
	width: min(760px, 100%);
	max-height: 90vh;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.npp-view-hero {
	padding: 24px 24px 20px;
	color: #1d2327;
}

.npp-view-hero.color-yellow { background: linear-gradient(135deg, #fff59d, #fff176); }
.npp-view-hero.color-pink { background: linear-gradient(135deg, #f8bbd0, #f48fb1); }
.npp-view-hero.color-green { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); }
.npp-view-hero.color-blue { background: linear-gradient(135deg, #bbdefb, #90caf9); }
.npp-view-hero.color-orange { background: linear-gradient(135deg, #ffe0b2, #ffcc80); }
.npp-view-hero.color-purple { background: linear-gradient(135deg, #e1bee7, #ce93d8); }
.npp-view-hero.color-gray { background: linear-gradient(135deg, #eeeeee, #e0e0e0); }

.npp-view-hero-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.npp-view-badge {
	background: rgba(255, 255, 255, 0.65);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

.npp-view-close {
	border: none;
	background: rgba(255, 255, 255, 0.7);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.4rem;
	cursor: pointer;
	color: #1d2327;
	line-height: 1;
}

.npp-view-hero h3 {
	margin: 0;
	font-size: 1.6rem;
	line-height: 1.3;
}

.npp-view-subtitle {
	margin: 8px 0 0;
	opacity: 0.85;
	font-size: 1rem;
}

.npp-view-scroll {
	padding: 20px 24px 28px;
	overflow: auto;
}

.npp-view-section {
	margin-bottom: 22px;
	padding: 16px 18px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 1px solid #eef0f2;
}

.npp-view-section:last-child {
	margin-bottom: 0;
}

.npp-view-section-title {
	margin: 0 0 12px;
	font-size: 0.95rem;
	color: #2271b1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.npp-view-text {
	margin: 0;
	line-height: 1.7;
	color: #2c3338;
}

.npp-view-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.npp-view-gallery-item {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.npp-view-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.npp-view-videos {
	display: grid;
	gap: 16px;
}

.npp-view-video-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.npp-view-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.npp-view-video-player {
	width: 100%;
	border-radius: 10px;
	background: #000;
}

.npp-view-passwords-grid {
	display: grid;
	gap: 10px;
}

.npp-view-pass-card {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 12px 14px;
}

.npp-view-pass-label {
	font-weight: 600;
	margin-bottom: 8px;
	color: #1d2327;
}

.npp-view-pass-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.npp-view-btn {
	border: 1px solid #c3c4c7;
	background: #fff;
	color: #1d2327;
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.85rem;
}

.npp-view-btn:hover {
	background: #f0f6fc;
	border-color: #2271b1;
	color: #2271b1;
}

.npp-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}

.npp-media-thumb {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1;
	background: #f0f0f1;
}

.npp-media-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.npp-media-remove {
	position: absolute;
	top: 4px;
	left: 4px;
	border: none;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}

.npp-media-list {
	display: grid;
	gap: 8px;
	margin-bottom: 10px;
}

.npp-video-edit-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f6f7f7;
	border-radius: 8px;
}

.npp-video-label {
	color: #1d2327;
	font-weight: 600;
}

.npp-media-remove-text {
	border: none;
	background: transparent;
	color: #d63638;
	cursor: pointer;
	font-size: 0.85rem;
}

.npp-media-actions {
	margin-bottom: 10px;
}

.npp-youtube-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.npp-youtube-row input {
	flex: 1;
	min-width: 200px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	padding: 8px 10px;
}

.npp-sticky-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 8px;
	border: none;
	background: transparent;
	text-align: right;
	padding: 8px 0 0;
	cursor: pointer;
	width: 100%;
	font: inherit;
	color: inherit;
}

.npp-sticky-body:hover,
.npp-sticky-body:focus {
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.npp-view-body .npp-view-field {
	margin-bottom: 16px;
}

.npp-view-body .npp-view-field strong {
	display: block;
	margin-bottom: 6px;
	color: #1d2327;
}

.npp-view-body .npp-view-field p,
.npp-view-body .npp-view-field div {
	margin: 0;
	line-height: 1.6;
	color: #2c3338;
}

.npp-view-password-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f1;
}

.npp-view-password-item:last-child {
	border-bottom: none;
}

.npp-view-password-label {
	font-weight: 600;
	min-width: 80px;
	color: #1d2327;
}

.npp-view-password-value-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.npp-view-password-value {
	font-family: Consolas, Monaco, monospace;
	background: #f6f7f7;
	padding: 4px 8px;
	border-radius: 4px;
	color: #1d2327;
}

.npp-view-empty {
	color: #646970;
	margin: 0;
}

.npp-view-footer .npp-btn-secondary {
	color: #1d2327;
}

.npp-view-password-value-wrap .npp-btn-secondary {
	color: #1d2327;
}

.npp-sticky-title {
	font-weight: 700;
	font-size: 1.05rem;
	color: #1d2327;
	line-height: 1.3;
	word-break: break-word;
	padding-top: 8px;
}

.npp-sticky-description {
	font-size: 0.9rem;
	color: #3c434a;
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	word-break: break-word;
	flex: 1;
}

.npp-sticky-group {
	font-size: 0.75rem;
	color: #50575e;
	background: rgba(255, 255, 255, 0.45);
	padding: 2px 8px;
	border-radius: 10px;
	align-self: flex-start;
}

.npp-sticky-add {
	background: #f0f0f1;
	border: 2px dashed #c3c4c7;
	box-shadow: none;
	color: #50575e;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.npp-sticky-add:hover {
	background: #e8e8e9;
	transform: none;
	box-shadow: none;
}

.npp-sticky-add .npp-sticky-title {
	font-size: 2rem;
	font-weight: 400;
	padding-top: 0;
}

.npp-modal[hidden] {
	display: none !important;
}

.npp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.npp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.npp-modal-dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.npp-modal-sm {
	width: min(420px, 100%);
}

.npp-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #dcdcde;
}

.npp-modal-header h3 {
	margin: 0;
	font-size: 1.2rem;
}

.npp-modal-close {
	border: none;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #50575e;
}

.npp-modal-body {
	padding: 20px;
}

.npp-form-field {
	margin-bottom: 16px;
}

.npp-form-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.npp-form-field input,
.npp-form-field textarea,
.npp-form-field select {
	width: 100%;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	padding: 8px 10px;
	font: inherit;
	box-sizing: border-box;
}

.npp-new-group-input {
	margin-top: 8px;
}

.npp-password-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

.npp-password-field-wrap {
	display: flex;
	gap: 4px;
}

.npp-password-field-wrap input {
	flex: 1;
}

.npp-btn-primary,
.npp-btn-secondary,
.npp-btn-danger,
.npp-btn-icon {
	cursor: pointer;
	border-radius: 4px;
	font: inherit;
}

.npp-btn-primary {
	border: none;
	background: #2271b1;
	color: #fff;
	padding: 8px 16px;
}

.npp-btn-secondary {
	border: 1px solid #8c8f94;
	background: #f6f7f7;
	color: #1d2327;
	padding: 8px 14px;
}

.npp-btn-danger {
	border: none;
	background: #d63638;
	color: #fff;
	padding: 8px 14px;
}

.npp-btn-icon {
	border: 1px solid #c3c4c7;
	background: #fff;
	padding: 6px 10px;
	min-width: 36px;
}

.npp-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid #dcdcde;
}

.npp-modal-actions {
	display: flex;
	gap: 8px;
	margin-right: auto;
}

@media (max-width: 768px) {
	.npp-board-layout {
		grid-template-columns: 1fr;
	}

	.npp-board-sidebar {
		position: static;
	}

	.npp-board-header {
		flex-direction: column;
		align-items: stretch;
	}

	.npp-password-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.npp-modal-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.npp-modal-actions {
		justify-content: stretch;
	}

	.npp-modal-actions button {
		flex: 1;
	}
}
