[hidden] {
	display: none !important;
}

.notes-app,
.notes-dialog {
	--nb-bg: #ffffff;
	--nb-bg-soft: #f7f7f5;
	--nb-bg-hover: #efefec;
	--nb-bg-active: #e7eefc;
	--nb-border: #e4e4e0;
	--nb-border-strong: #d2d2cc;
	--nb-text: #1f2328;
	--nb-text-soft: #5b616b;
	--nb-text-faint: #9097a1;
	--nb-accent: #2f6fde;
	--nb-accent-hover: #2560c7;
	--nb-accent-soft: #e7eefc;
	--nb-danger: #c93a3a;
	--nb-danger-soft: #fcebeb;
	--nb-warn-bg: #fff7e0;
	--nb-warn-border: #f0d68a;
	--nb-success: #2f8a4f;
	--nb-radius: 8px;
	--nb-shadow: 0 1px 2px rgba(15, 20, 30, 0.06), 0 4px 16px rgba(15, 20, 30, 0.06);
	--nb-shadow-pop: 0 8px 28px rgba(15, 20, 30, 0.16), 0 2px 6px rgba(15, 20, 30, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--nb-text);
	box-sizing: border-box;
}

.notes-app *,
.notes-app *::before,
.notes-app *::after,
.notes-dialog *,
.notes-dialog *::before,
.notes-dialog *::after {
	box-sizing: inherit;
	font-family: inherit;
}

.notes-app svg,
.notes-dialog svg {
	width: 16px;
	height: 16px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.notes-app {
	display: flex;
	max-width: 1280px;
	margin: 12px auto;
	min-height: 480px;
	background: var(--nb-bg);
	border: 1px solid var(--nb-border);
	border-radius: 12px;
	box-shadow: var(--nb-shadow);
	overflow: hidden;
	overflow: clip;
}

.nb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	margin: 0;
	border: 1px solid var(--nb-border-strong);
	border-radius: 6px;
	background: var(--nb-bg);
	color: var(--nb-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}

.nb-btn:hover {
	background: var(--nb-bg-hover);
}

.nb-btn:disabled {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
}

.nb-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nb-accent-soft);
	border-color: var(--nb-accent);
}

.nb-btn-primary {
	background: var(--nb-accent);
	border-color: var(--nb-accent);
	color: #fff;
}

.nb-btn-primary:hover {
	background: var(--nb-accent-hover);
	border-color: var(--nb-accent-hover);
}

.nb-btn-ghost {
	border-color: transparent;
	background: transparent;
	color: var(--nb-text-soft);
}

.nb-btn-ghost:hover {
	background: var(--nb-bg-hover);
	color: var(--nb-text);
}

.nb-btn-icon {
	width: 32px;
	padding: 0;
	border-color: transparent;
	background: transparent;
	color: var(--nb-text-soft);
}

.nb-btn-icon:hover {
	color: var(--nb-text);
}

.nb-btn-sm {
	height: 26px;
	padding: 0 8px;
	font-size: 12px;
}

.notes-sidebar {
	display: flex;
	flex-direction: column;
	width: 272px;
	flex: 0 0 272px;
	background: var(--nb-bg-soft);
	border-right: 1px solid var(--nb-border);
	min-height: 0;
}

.notes-sidebar-top {
	display: flex;
	gap: 6px;
	padding: 12px 12px 8px;
}

.notes-search {
	position: relative;
	flex: 1;
	min-width: 0;
}

.notes-search-icon {
	position: absolute;
	left: 9px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--nb-text-faint);
	pointer-events: none;
}

.notes-app .notes-search-input {
	display: block;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: 32px;
	margin: 0;
	padding: 0 10px 0 30px;
	border: 1px solid var(--nb-border);
	border-radius: 6px;
	background: var(--nb-bg);
	color: var(--nb-text);
	font-size: 13px;
	transition: border-color 0.12s, box-shadow 0.12s;
}

.notes-app .notes-search-input:focus {
	outline: none;
	border-color: var(--nb-accent);
	box-shadow: 0 0 0 3px var(--nb-accent-soft);
}

.notes-new-btn {
	flex: none;
	padding: 0 10px;
}

.notes-search-results {
	margin: 0 12px 8px;
	max-height: 260px;
	overflow-y: auto;
	background: var(--nb-bg);
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	box-shadow: var(--nb-shadow);
	padding: 4px;
	font-size: 13px;
}

.notes-search-empty {
	padding: 10px;
	color: var(--nb-text-faint);
	text-align: center;
}

.notes-search-result {
	padding: 7px 10px;
	border-radius: 5px;
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.notes-search-result:hover {
	background: var(--nb-bg-hover);
}

.notes-sidebar-scroll {
	flex: 1;
	padding: 0 8px 16px;
}

.notes-tree-section h4 {
	margin: 14px 8px 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nb-text-faint);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.notes-tree-empty {
	padding: 4px 10px;
	color: var(--nb-text-faint);
	font-size: 12px;
}

.notes-app .notes-tree-level {
	list-style: none;
	margin: 0;
	padding: 0 0 0 14px;
}

.notes-app .notes-tree > .notes-tree-level {
	padding-left: 0;
}

.notes-app .notes-tree-node {
	margin: 0;
	padding: 0;
	list-style: none;
}

.notes-tree-row {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 30px;
	padding: 0 6px 0 2px;
	border-radius: 6px;
	color: var(--nb-text-soft);
	cursor: pointer;
	user-select: none;
}

.notes-tree-row:hover {
	background: var(--nb-bg-hover);
	color: var(--nb-text);
}

.notes-tree-row.is-active {
	background: var(--nb-bg-active);
	color: var(--nb-accent);
	font-weight: 600;
}

.notes-tree-caret {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	color: var(--nb-text-faint);
	flex: none;
}

.notes-tree-caret:hover {
	background: var(--nb-border);
	color: var(--nb-text);
}

.notes-tree-caret svg {
	width: 12px;
	height: 12px;
	stroke-width: 2.4;
	transition: transform 0.15s;
}

.notes-tree-node.is-open > .notes-tree-row .notes-tree-caret svg {
	transform: rotate(90deg);
}

.notes-tree-node:not(.is-open) > .notes-tree-level {
	display: none;
}

.notes-tree-icon {
	margin-right: 4px;
	color: var(--nb-text-faint);
}

.notes-tree-row.is-active .notes-tree-icon {
	color: var(--nb-accent);
}

.notes-tree-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13.5px;
}

.notes-tree-add {
	display: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	color: var(--nb-text-faint);
	flex: none;
}

.notes-tree-add svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.2;
}

.notes-tree-add:hover {
	background: var(--nb-border);
	color: var(--nb-text);
}

.notes-tree-row:hover .notes-tree-add,
.notes-tree-row.is-active .notes-tree-add {
	display: inline-flex;
}

@media (hover: none) {
	.notes-tree-add {
		display: inline-flex;
	}
}

.notes-main {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
	background: var(--nb-bg);
}

.notes-empty-state {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--nb-text-faint);
	font-size: 14px;
}

.notes-empty-state svg {
	width: 56px;
	height: 56px;
	stroke-width: 1.4;
	opacity: 0.6;
}

.notes-empty-state p {
	margin: 0;
}

.notes-draft-banner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 16px 0;
	padding: 8px 8px 8px 12px;
	background: var(--nb-warn-bg);
	border: 1px solid var(--nb-warn-border);
	border-radius: var(--nb-radius);
	font-size: 13px;
}

.notes-draft-banner > svg {
	color: #b7860b;
}

.notes-draft-banner-text {
	flex: 1;
	min-width: 180px;
}

.notes-editor-panel {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.notes-editor-header {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 12px 0 16px;
	border-bottom: 1px solid var(--nb-border);
	flex: none;
	position: sticky;
	top: 0;
	z-index: 6;
	background: var(--nb-bg);
}

.notes-sidebar-toggle {
	display: none;
	margin-left: -6px;
}

.notes-mode-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 8px;
	border-radius: 11px;
	background: var(--nb-bg-hover);
	color: var(--nb-text-soft);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.notes-mode-badge:empty {
	display: none;
}

.notes-mode-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nb-text-faint);
}

.notes-mode-badge.is-editing {
	background: var(--nb-accent-soft);
	color: var(--nb-accent);
}

.notes-mode-badge.is-editing::before {
	background: var(--nb-accent);
}

.notes-mode-badge.is-dirty::before {
	background: #d99a06;
}

.notes-status-text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--nb-text-faint);
	font-size: 12.5px;
}

.notes-status-text.notes-status-error {
	color: var(--nb-danger);
}

.notes-status-text.notes-status-ok {
	color: var(--nb-success);
}

.notes-editor-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
}

.notes-more-wrap {
	position: relative;
	display: inline-flex;
}

.notes-more-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 20;
	min-width: 160px;
	padding: 4px;
	background: var(--nb-bg);
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	box-shadow: var(--nb-shadow-pop);
}

.notes-more-menu button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 5px;
	background: none;
	color: var(--nb-text);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.notes-more-menu button:hover {
	background: var(--nb-bg-hover);
}

.notes-more-menu .notes-menu-danger {
	color: var(--nb-danger);
}

.notes-more-menu .notes-menu-danger:hover {
	background: var(--nb-danger-soft);
}

.notes-editor-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	padding: 6px 12px;
	border-bottom: 1px solid var(--nb-border);
	background: var(--nb-bg);
	flex: none;
	position: sticky;
	top: 52px;
	z-index: 5;
}

.notes-toolbar-sep {
	width: 1px;
	height: 18px;
	margin: 0 6px;
	background: var(--nb-border);
}

.notes-toolbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--nb-text-soft);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.1s, color 0.1s;
}

.notes-toolbar-btn svg {
	width: 17px;
	height: 17px;
}

.notes-toolbar-btn:hover {
	background: var(--nb-bg-hover);
	color: var(--nb-text);
}

.notes-toolbar-btn.is-active {
	background: var(--nb-accent-soft);
	color: var(--nb-accent);
}

.notes-toolbar-btn:disabled {
	opacity: 0.35;
	cursor: default;
	background: transparent;
}

.notes-doc-scroll {
	flex: 1;
}

.notes-doc-wrap {
	max-width: 960px;
	padding: 20px 28px 48px;
}

.notes-app .notes-title-input {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nb-text);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	box-shadow: none;
}

.notes-app .notes-title-input:focus {
	outline: none;
}

.notes-app .notes-title-input[readonly] {
	cursor: default;
}

.notes-app .notes-title-input::placeholder {
	color: var(--nb-border-strong);
}

.notes-doc {
	color: var(--nb-text);
	font-size: 15px;
	line-height: 1.65;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.notes-editor-content,
.notes-editor-content .ProseMirror {
	outline: none;
}

.notes-editor-content .ProseMirror {
	min-height: 300px;
	caret-color: var(--nb-accent);
}

.notes-view-content {
	min-height: 200px;
}

.notes-doc > :first-child,
.notes-doc .ProseMirror > :first-child {
	margin-top: 0;
}

.notes-app .notes-doc p {
	margin: 0 0 0.5em;
	font-size: inherit;
	line-height: inherit;
}

.notes-app .notes-doc h1,
.notes-app .notes-doc h2,
.notes-app .notes-doc h3,
.notes-app .notes-doc h4 {
	margin: 1.2em 0 0.4em;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nb-text);
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
	font-family: inherit;
}

.notes-app .notes-doc h1 {
	font-size: 1.75em;
}

.notes-app .notes-doc h2 {
	font-size: 1.4em;
}

.notes-app .notes-doc h3 {
	font-size: 1.18em;
}

.notes-app .notes-doc h4 {
	font-size: 1em;
}

.notes-app .notes-doc ul,
.notes-app .notes-doc ol {
	margin: 0 0 0.8em;
	padding-left: 1.6em;
}

.notes-app .notes-doc ul {
	list-style: disc outside;
}

.notes-app .notes-doc ul ul {
	list-style-type: circle;
}

.notes-app .notes-doc ol {
	list-style: decimal outside;
}

.notes-app .notes-doc li {
	margin: 0.2em 0;
	padding: 0;
	list-style: inherit;
}

.notes-app .notes-doc li > p {
	margin: 0;
}

.notes-app .notes-doc ul[data-type="taskList"] {
	list-style: none;
	padding-left: 0.2em;
}

.notes-app .notes-doc ul[data-type="taskList"] ul[data-type="taskList"] {
	padding-left: 1.6em;
}

.notes-app .notes-doc ul[data-type="taskList"] > li {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	list-style: none;
}

.notes-app .notes-doc ul[data-type="taskList"] > li > label {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 1.65em;
	margin: 0;
	user-select: none;
}

.notes-app .notes-doc ul[data-type="taskList"] > li > label > input {
	width: 1.05em;
	height: 1.05em;
	margin: 0;
	accent-color: var(--nb-accent);
	cursor: pointer;
}

.notes-app .notes-doc ul[data-type="taskList"] > li > label > input:disabled {
	cursor: default;
	opacity: 1;
}

.notes-app .notes-doc ul[data-type="taskList"] > li > div {
	flex: 1 1 auto;
	min-width: 0;
}

.notes-app .notes-doc ul[data-type="taskList"] > li > div > p {
	margin: 0;
}

.notes-app .notes-doc ul[data-type="taskList"] > li[data-checked="true"] > div > p {
	color: var(--nb-text-faint);
	text-decoration: line-through;
}

.notes-app .notes-doc blockquote {
	margin: 0 0 0.8em;
	padding: 2px 0 2px 16px;
	border: 0;
	border-left: 3px solid var(--nb-border-strong);
	background: none;
	color: var(--nb-text-soft);
	font-size: inherit;
}

.notes-app .notes-doc a {
	color: var(--nb-accent);
	text-decoration: underline;
	text-decoration-color: rgba(47, 111, 222, 0.35);
	text-underline-offset: 2px;
}

.notes-app .notes-doc a:hover {
	text-decoration-color: currentColor;
}

.notes-app .notes-doc code {
	padding: 0.15em 0.4em;
	border-radius: 4px;
	background: var(--nb-bg-hover);
	color: #c7254e;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.88em;
}

.notes-app .notes-doc pre {
	margin: 0 0 0.9em;
	padding: 14px 16px;
	border-radius: var(--nb-radius);
	background: #1f2430;
	color: #e6e9ef;
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.6;
}

.notes-app .notes-doc pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

.notes-app .notes-doc hr {
	height: 0;
	margin: 1.6em 0;
	border: 0;
	border-top: 1px solid var(--nb-border);
}

.notes-app .notes-doc img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 12px 0;
	border-radius: 6px;
}

.notes-editor-content img.ProseMirror-selectednode {
	outline: 3px solid var(--nb-accent);
	outline-offset: 2px;
}

.notes-editor-content .note-embed {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	padding: 14px 16px;
	border: 1px dashed var(--nb-border-strong);
	border-radius: var(--nb-radius);
	background: var(--nb-bg-soft);
	color: var(--nb-text-soft);
	font-size: 13px;
}

.notes-view-content iframe.note-embed-frame {
	display: block;
	width: 100%;
	max-width: 640px;
	aspect-ratio: 16 / 9;
	margin: 12px 0;
	border: 0;
	border-radius: var(--nb-radius);
}

.notes-doc ::selection {
	background: rgba(47, 111, 222, 0.2);
}

.notes-dialog {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 24, 32, 0.45);
	animation: notes-fade 0.15s ease-out;
}

.notes-dialog-box {
	display: flex;
	flex-direction: column;
	width: 500px;
	max-width: 100%;
	max-height: 90vh;
	background: var(--nb-bg);
	border-radius: 12px;
	box-shadow: var(--nb-shadow-pop);
	animation: notes-pop 0.18s ease-out;
}

.notes-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 8px 20px;
}

.notes-dialog-head h3 {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--nb-text);
	font-size: 17px;
	font-weight: 700;
	text-transform: none;
	font-family: inherit;
}

.notes-dialog-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 4px 20px 8px;
}

.notes-field-group {
	margin-bottom: 14px;
	padding: 12px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-bg-soft);
}

.notes-field {
	display: block;
	margin: 0;
}

.notes-field + .notes-field {
	margin-top: 10px;
}

.notes-field-label {
	display: block;
	margin-bottom: 6px;
	color: var(--nb-text);
	font-size: 13px;
	font-weight: 600;
}

.notes-field-hint {
	display: block;
	margin-bottom: 4px;
	color: var(--nb-text-soft);
	font-size: 12px;
}

.notes-dialog select,
.notes-dialog textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 7px 10px;
	border: 1px solid var(--nb-border-strong);
	border-radius: 6px;
	background: var(--nb-bg);
	color: var(--nb-text);
	font-size: 13px;
	line-height: 1.4;
}

.notes-dialog select {
	height: 34px;
	padding-top: 0;
	padding-bottom: 0;
}

.notes-dialog textarea {
	resize: vertical;
	min-height: 56px;
}

.notes-dialog select:focus,
.notes-dialog textarea:focus {
	outline: none;
	border-color: var(--nb-accent);
	box-shadow: 0 0 0 3px var(--nb-accent-soft);
}

.notes-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 2px 0 8px;
	color: var(--nb-text-soft);
	font-size: 13px;
	cursor: pointer;
}

.notes-checkbox-label input {
	margin: 3px 0 0;
	accent-color: var(--nb-accent);
}

.notes-share-invalid {
	margin-bottom: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	background: var(--nb-danger-soft);
	color: var(--nb-danger);
	font-size: 13px;
}

.notes-dialog-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px 16px;
	border-top: 1px solid var(--nb-border);
}

.notes-share-copy-parent {
	margin-right: auto;
}

.notes-share-copy-parent[hidden] + .nb-btn {
	margin-left: auto;
}

.nb-btn-danger {
	background: var(--nb-danger);
	border-color: var(--nb-danger);
	color: #fff;
}

.nb-btn-danger:hover {
	background: #b03030;
	border-color: #b03030;
}

.notes-actions-left {
	margin-right: auto;
}

.notes-diff-box {
	width: 820px;
}

.notes-diff-summary {
	margin: 0;
	padding: 0 20px 10px;
	color: var(--nb-text-soft);
	font-size: 13px;
	line-height: 1.6;
}

.notes-diff-legend {
	display: flex;
	gap: 8px;
	padding: 0 20px 10px;
}

.notes-diff-tag {
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.notes-diff-tag.is-del {
	background: #fdecec;
	color: #a52a2a;
}

.notes-diff-tag.is-ins {
	background: #e6f5ea;
	color: #1f7a3d;
}

.notes-diff-body {
	flex: 1;
	min-height: 120px;
	max-height: 58vh;
	overflow-y: auto;
	margin: 0 20px 12px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	font-size: 13.5px;
	line-height: 1.6;
}

.notes-diff-row {
	display: flex;
	border-bottom: 1px solid var(--nb-bg-hover);
}

.notes-diff-row:last-child {
	border-bottom: 0;
}

.notes-diff-sign {
	flex: none;
	width: 26px;
	padding: 4px 0;
	text-align: center;
	font-weight: 700;
	user-select: none;
}

.notes-diff-text {
	flex: 1;
	min-width: 0;
	padding: 4px 10px 4px 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.notes-diff-row.is-eq {
	color: var(--nb-text-faint);
}

.notes-diff-row.is-del {
	background: #fdf1f1;
	color: #7a2020;
}

.notes-diff-row.is-del .notes-diff-sign {
	color: #c93a3a;
}

.notes-diff-row.is-ins {
	background: #eef8f1;
	color: #1d5c32;
}

.notes-diff-row.is-ins .notes-diff-sign {
	color: #2f8a4f;
}

.notes-diff-text del {
	background: #f6c4c4;
	color: inherit;
	text-decoration: line-through;
	text-decoration-color: rgba(122, 32, 32, 0.5);
	border-radius: 2px;
}

.notes-diff-text ins {
	background: #b9e4c6;
	color: inherit;
	text-decoration: none;
	border-radius: 2px;
}

.notes-diff-blank {
	font-style: italic;
	opacity: 0.7;
}

.notes-diff-more {
	display: block;
	width: 100%;
	margin: 0;
	padding: 5px 10px;
	border: 0;
	border-bottom: 1px solid var(--nb-bg-hover);
	background: var(--nb-bg-soft);
	color: var(--nb-accent);
	font-size: 12.5px;
	text-align: left;
	cursor: pointer;
}

.notes-diff-more:hover {
	background: var(--nb-bg-hover);
}

.notes-diff-empty {
	padding: 24px;
	color: var(--nb-text-faint);
	text-align: center;
}

.notes-history-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 24vh;
	overflow-y: auto;
	margin: 0 20px 12px;
}

.notes-history-list:empty {
	display: none;
}

.notes-history-item {
	display: flex;
	gap: 12px;
	align-items: baseline;
	width: 100%;
	margin: 0;
	padding: 7px 10px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-bg);
	color: var(--nb-text);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.notes-history-item:hover {
	background: var(--nb-bg-hover);
}

.notes-history-item.is-active {
	border-color: var(--nb-accent);
	background: var(--nb-accent-soft);
}

.notes-history-when {
	flex: none;
	font-weight: 600;
}

.notes-history-meta {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: var(--nb-text-soft);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.notes-error-state p {
	max-width: 360px;
	color: var(--nb-text-soft);
	text-align: center;
}

.notes-session-box {
	width: 400px;
	align-items: center;
	padding: 28px 24px 22px;
	text-align: center;
}

.notes-session-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--nb-accent-soft);
	color: var(--nb-accent);
}

.notes-dialog .notes-session-icon svg {
	width: 24px;
	height: 24px;
}

.notes-session-box h3 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var(--nb-text);
	font-size: 17px;
	font-weight: 700;
	text-transform: none;
	font-family: inherit;
}

.notes-session-box p {
	margin: 0 0 20px;
	color: var(--nb-text-soft);
	font-size: 13.5px;
	line-height: 1.6;
}

.notes-session-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.notes-dialog a.nb-btn,
.notes-dialog a.nb-btn:hover {
	text-decoration: none;
}

.notes-dialog a.nb-btn-primary,
.notes-dialog a.nb-btn-primary:hover {
	color: #fff;
}

@keyframes notes-fade {
	from {
		opacity: 0;
	}
}

@keyframes notes-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
}

.notes-app.notes-landing {
	display: block;
	min-height: 0;
	padding: 40px 24px 32px;
}

.notes-landing-hero {
	max-width: 680px;
	margin: 0 auto 32px;
	text-align: center;
}

.notes-landing h1,
.notes-landing h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: var(--nb-text);
}

.notes-landing h1 {
	font-size: 28px;
	line-height: 1.3;
}

.notes-landing h2 {
	font-size: 15px;
}

.notes-landing-lead {
	margin: 12px 0 20px;
	font-size: 16px;
	color: var(--nb-text-soft);
}

.notes-landing-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.notes-landing a.nb-btn {
	height: 40px;
	padding: 0 20px;
	font-size: 14px;
	text-decoration: none;
}

.notes-landing a.nb-btn,
.notes-landing a.nb-btn:hover {
	color: var(--nb-text);
}

.notes-landing a.nb-btn-primary,
.notes-landing a.nb-btn-primary:hover {
	color: #fff;
}

.notes-landing-note {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--nb-text-faint);
}

.notes-landing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 16px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.notes-landing-card {
	padding: 16px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-bg);
}

.notes-landing-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 10px;
	border-radius: 8px;
	background: var(--nb-accent-soft);
	color: var(--nb-accent);
}

.notes-landing .notes-landing-icon svg {
	width: 20px;
	height: 20px;
}

.notes-landing-card p {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--nb-text-soft);
}

@media (max-width: 800px) {
	.notes-app {
		position: relative;
		margin: 8px 0;
		min-height: 420px;
		border-radius: 10px;
	}

	.notes-sidebar {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 30;
		width: 86%;
		max-width: 320px;
		overflow-y: auto;
		box-shadow: var(--nb-shadow-pop);
		transform: translateX(-105%);
		transition: transform 0.2s ease;
	}

	.notes-app.sidebar-open .notes-sidebar {
		transform: none;
	}

	.notes-app.no-note .notes-sidebar {
		position: static;
		width: 100%;
		max-width: none;
		flex: 1;
		box-shadow: none;
		border-right: 0;
		transform: none;
	}

	.notes-app.no-note:not(.notes-app-guest) .notes-main {
		display: none;
	}

	.notes-sidebar-toggle {
		display: inline-flex;
	}

	.notes-editor-header {
		padding: 0 8px 0 12px;
		gap: 6px;
	}

	.notes-editor-actions .nb-btn span {
		display: none;
	}

	.notes-editor-actions .nb-btn {
		padding: 0 9px;
	}

	.notes-editor-toolbar {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 4px 8px;
		scrollbar-width: none;
	}

	.notes-editor-toolbar::-webkit-scrollbar {
		display: none;
	}

	.notes-toolbar-btn {
		min-width: 36px;
		height: 36px;
		flex: none;
	}

	.notes-doc-wrap {
		padding: 14px 14px 40px;
	}

	.notes-app .notes-title-input {
		font-size: 22px;
	}
}
