@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600&display=swap');

:root {
	color-scheme: light;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	--anota-bg: #fafaf7;
	--anota-panel: #fff;
	--anota-soft: #f5f5f3;
	--anota-soft-2: #f3f3f0;
	--anota-border: #edede8;
	--anota-text: #111827;
	--anota-muted: #6b7280;
	--anota-modal: #fff;
	--anota-card-white: #fff;
	--anota-card-yellow: #fef9c3;
	--anota-card-blue: #dbeafe;
	--anota-card-green: #dcfce7;
	--anota-card-pink: #fce7f3;
	--anota-card-lavender: #ede9fe;
	--anota-card-orange: #fed7aa;
	--anota-card-peach: #ffedd5;
	--anota-card-coral: #ffe4e1;
	--anota-card-rose: #ffe4e6;
	--anota-card-purple: #f3e8ff;
	--anota-card-cyan: #cffafe;
	--anota-card-mint: #d1fae5;
	--anota-card-lime: #ecfccb;
	--anota-card-sand: #fef3c7;
	--anota-card-gray: #f3f4f6;
}

.anota-dark {
	color-scheme: dark;
	--anota-bg: #0a0a0a;
	--anota-panel: #111;
	--anota-soft: #1e1e1e;
	--anota-soft-2: #181818;
	--anota-border: #222;
	--anota-text: #ededed;
	--anota-muted: #9a9a9a;
	--anota-modal: #151515;
	--anota-card-white: #1a1a1a;
	--anota-card-yellow: #2a2610;
	--anota-card-blue: #131e2f;
	--anota-card-green: #132619;
	--anota-card-pink: #2a1620;
	--anota-card-lavender: #1e1a2e;
	--anota-card-orange: #332112;
	--anota-card-peach: #2a1e12;
	--anota-card-coral: #321b19;
	--anota-card-rose: #32191f;
	--anota-card-purple: #281b35;
	--anota-card-cyan: #10282c;
	--anota-card-mint: #11291f;
	--anota-card-lime: #202b12;
	--anota-card-sand: #302810;
	--anota-card-gray: #202124;
}

.anota-page,
.anota-page body,
.anota-root {
	min-height: 100%;
}

.anota-page,
.anota-page body {
	margin: 0;
	background: var(--anota-bg);
}

.anota-page {
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
}

.anota-root,
.anota-root *,
.anota-root *::before,
.anota-root *::after {
	box-sizing: border-box;
}

.anota-root {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	-webkit-tap-highlight-color: transparent;
}

.anota-root button,
.anota-root input,
.anota-root textarea,
.anota-root select {
	font: inherit;
	color: inherit;
}

.anota-root button {
	border: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	touch-action: manipulation;
}

.anota-root button:disabled {
	cursor: default;
	opacity: .55;
}

.anota-root input,
.anota-root textarea,
.anota-root select {
	border: 0;
	margin: 0;
}

.anota-root svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.anota-root [hidden] {
	display: none !important;
}

.anota-root :focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}

.anota-serif {
	font-family: Fraunces, Georgia, serif;
}

.anota-loading {
	min-height: 100dvh;
	display: grid;
	place-items: center;
	background: #fafaf7;
	color: #6b7280;
	font-size: 14px;
}

.anota-shell {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	background: var(--anota-bg);
	color: var(--anota-text);
	transition: color .3s, background-color .3s;
	overscroll-behavior-y: contain;
}

.anota-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 30;
	width: 280px;
	display: flex;
	flex-direction: column;
	background: var(--anota-panel);
	border-right: 1px solid var(--anota-border);
	transform: translate3d(-100%, 0, 0);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	padding-top: env(safe-area-inset-top);
	will-change: transform;
}

.anota-menu-open .anota-sidebar {
	transform: translate3d(0, 0, 0);
}

.anota-sidebar-top {
	padding: 24px 24px 16px;
}

.anota-brand-row,
.anota-brand,
.anota-filter-label,
.anota-summary-label,
.anota-card-meta,
.anota-card-actions,
.anota-topbar,
.anota-quick-box,
.anota-tag-row,
.anota-editor-head,
.anota-editor-head-actions,
.anota-editor-footer,
.anota-editor-tools,
.anota-editor-actions,
.anota-focus-top,
.anota-focus-meta,
.anota-check-row,
.anota-auth-brand,
.anota-settings-user,
.anota-settings-tabs,
.anota-toast {
	display: flex;
	align-items: center;
}

.anota-brand-row,
.anota-editor-head,
.anota-focus-top,
.anota-card-meta,
.anota-editor-footer {
	justify-content: space-between;
}

.anota-brand {
	gap: 10px;
	min-width: 0;
}

.anota-brand-mark {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: #111827;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.025em;
}

.anota-dark .anota-brand-mark {
	background: #fff;
	color: #000;
}

.anota-brand-name {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.02em;
}

.anota-brand-badge {
	margin-left: 4px;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--anota-soft-2);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .025em;
}

.anota-icon-button,
.anota-theme-button {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 999px !important;
	background: var(--anota-soft) !important;
}

.anota-theme-button {
	width: 28px;
	height: 28px;
	font-size: 12px;
}

.anota-search-wrap {
	position: relative;
	margin-top: 24px;
}

.anota-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	opacity: .4;
	pointer-events: none;
}

.anota-search,
.anota-field {
	width: 100%;
	outline: 0;
	background: var(--anota-bg);
	border: 1px solid var(--anota-border) !important;
	transition: border-color .15s, background-color .15s;
}

.anota-search {
	height: 40px;
	padding: 0 12px 0 36px !important;
	border-radius: 12px;
	font-size: 13.5px;
}

.anota-search::placeholder,
.anota-quick-input::placeholder,
.anota-field::placeholder,
.anota-editor-title::placeholder,
.anota-editor-content::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.anota-dark .anota-search::placeholder {
	color: #666;
}

.anota-search:focus,
.anota-field:focus {
	border-color: #111827 !important;
}

.anota-dark .anota-search:focus,
.anota-dark .anota-field:focus {
	border-color: #444 !important;
}

.anota-new-button {
	width: 100%;
	height: 44px;
	margin-top: 16px !important;
	border-radius: 12px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #111827 !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	transition: opacity .15s, transform .15s;
}

.anota-dark .anota-new-button {
	background: #fff !important;
	color: #000 !important;
}

.anota-new-button:hover {
	opacity: .9;
}

.anota-new-button:active {
	transform: scale(.98);
}

.anota-new-button svg {
	width: 16px;
	height: 16px;
}

.anota-sidebar-scroll {
	min-height: 0;
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 8px 12px;
}

.anota-sidebar-section + .anota-sidebar-section {
	margin-top: 24px;
}

.anota-section-title {
	margin: 0 12px 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .4;
}

.anota-filter {
	width: 100%;
	height: 36px;
	padding: 0 12px !important;
	border-radius: 10px !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--anota-muted) !important;
	font-size: 13.5px;
	transition: color .15s, background-color .15s;
}

.anota-filter:hover {
	background: var(--anota-soft);
}

.anota-filter + .anota-filter {
	margin-top: 4px;
}

.anota-filter.is-active {
	background: #111827 !important;
	color: #fff !important;
}

.anota-dark .anota-filter.is-active {
	background: #fff !important;
	color: #000 !important;
}

.anota-filter-label {
	gap: 10px;
	min-width: 0;
}

.anota-filter-label svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.anota-filter-count {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: var(--anota-soft-2);
	font-size: 11px;
	font-weight: 500;
}

.anota-filter.is-active .anota-filter-count {
	background: rgba(255, 255, 255, .15);
}

.anota-summary {
	margin: 24px 12px 0;
	padding: 14px;
	border: 1px solid var(--anota-border);
	border-radius: 14px;
	background: var(--anota-bg);
}

.anota-summary-label {
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	opacity: .6;
}

.anota-summary-label svg {
	width: 14px;
	height: 14px;
}

.anota-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.anota-summary-number {
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.025em;
}

.anota-summary-caption {
	margin-top: 4px;
	font-size: 11px;
	opacity: .5;
}

.anota-summary-copy {
	margin: 12px 0 0;
	font-size: 11px;
	line-height: 1.4;
	opacity: .5;
}

.anota-sidebar-footer {
	padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--anota-border);
}

.anota-profile-button {
	width: 100%;
	min-height: 38px;
	padding: 5px 6px !important;
	border-radius: 10px !important;
	display: flex;
	align-items: center;
	gap: 9px;
	text-align: left;
	transition: background-color .15s;
}

.anota-profile-button:hover {
	background: var(--anota-soft);
}

.anota-avatar {
	width: 28px;
	height: 28px;
	border-radius: 9px;
	display: grid;
	place-items: center;
	background: var(--anota-soft);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.anota-profile-copy {
	min-width: 0;
	flex: 1 1 auto;
}

.anota-profile-name,
.anota-profile-version {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.anota-profile-name {
	font-size: 12px;
	font-weight: 500;
}

.anota-profile-version {
	font-size: 10px;
	opacity: .4;
}

.anota-profile-button > svg {
	width: 14px;
	height: 14px;
	opacity: .4;
}

.anota-main {
	width: 100%;
	min-width: 0;
	min-height: 100vh;
	min-height: 100dvh;
}

.anota-topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	gap: 12px;
	padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
	border-bottom: 1px solid var(--anota-border);
	background: rgba(250, 250, 247, .8);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.anota-dark .anota-topbar {
	background: rgba(10, 10, 10, .8);
}

.anota-menu-button {
	width: 36px;
	height: 36px;
	border: 1px solid var(--anota-border) !important;
	border-radius: 10px !important;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: var(--anota-panel) !important;
}

.anota-menu-button svg {
	width: 16px;
	height: 16px;
}

.anota-quick {
	position: relative;
	min-width: 0;
	max-width: 720px;
	flex: 1 1 auto;
}

.anota-quick-box {
	height: 52px;
	gap: 12px;
	padding: 0 16px;
	border: 1px solid var(--anota-border);
	border-radius: 16px;
	background: var(--anota-panel);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.anota-dark .anota-quick-box {
	background: #151515;
	border-color: #232323;
}

.anota-quick-spark {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: var(--anota-soft);
}

.anota-quick-input {
	min-width: 0;
	flex: 1 1 auto;
	outline: 0;
	background: transparent;
	font-size: 15px;
}

.anota-quick-save {
	height: 32px;
	padding: 0 14px !important;
	border-radius: 999px !important;
	flex: 0 0 auto;
	background: #111827 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
}

.anota-dark .anota-quick-save {
	background: #fff !important;
	color: #000 !important;
}

.anota-suggestion {
	position: absolute;
	left: 8px;
	top: calc(100% + 4px);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	white-space: nowrap;
}

.anota-suggestion-label {
	opacity: .5;
}

.anota-suggestion-auto {
	opacity: .4;
}

.anota-desktop-state {
	display: none;
	margin-left: auto;
	font-size: 12px;
	opacity: .4;
	white-space: nowrap;
}

.anota-content {
	padding: 32px 16px calc(80px + env(safe-area-inset-bottom));
}

.anota-masonry {
	column-count: 1;
	column-gap: 16px;
}

.anota-load-more {
	display: block;
	height: 40px;
	margin: 16px auto 0 !important;
	padding: 0 16px !important;
	border: 1px solid var(--anota-border) !important;
	border-radius: 999px !important;
	background: var(--anota-panel) !important;
	font-size: 12px;
	font-weight: 500;
}

.anota-card {
	position: relative;
	display: inline-block;
	width: 100%;
	margin: 0 0 16px;
	padding: 16px;
	break-inside: avoid;
	border: 1px solid transparent;
	border-radius: 18px;
	vertical-align: top;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
	touch-action: manipulation;
}

.anota-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.anota-card[data-color="white"] { background: var(--anota-card-white); border-color: var(--anota-border); }
.anota-card[data-color="yellow"] { background: var(--anota-card-yellow); }
.anota-card[data-color="blue"] { background: var(--anota-card-blue); }
.anota-card[data-color="green"] { background: var(--anota-card-green); }
.anota-card[data-color="pink"] { background: var(--anota-card-pink); }
.anota-card[data-color="lavender"] { background: var(--anota-card-lavender); }
.anota-card[data-color="orange"] { background: var(--anota-card-orange); }
.anota-card[data-color="peach"] { background: var(--anota-card-peach); }
.anota-card[data-color="coral"] { background: var(--anota-card-coral); }
.anota-card[data-color="rose"] { background: var(--anota-card-rose); }
.anota-card[data-color="purple"] { background: var(--anota-card-purple); }
.anota-card[data-color="cyan"] { background: var(--anota-card-cyan); }
.anota-card[data-color="mint"] { background: var(--anota-card-mint); }
.anota-card[data-color="lime"] { background: var(--anota-card-lime); }
.anota-card[data-color="sand"] { background: var(--anota-card-sand); }
.anota-card[data-color="gray"] { background: var(--anota-card-gray); }

.anota-dark .anota-card {
	border-color: #222;
}

.anota-card-pin {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: #111827;
	color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.anota-dark .anota-card-pin {
	background: #fff;
	color: #000;
}

.anota-card-pin svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.anota-card-title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.anota-card-copy {
	display: -webkit-box;
	overflow: hidden;
	margin: 8px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	opacity: .7;
	white-space: pre-wrap;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.anota-card-tasks {
	margin-top: 12px;
}

.anota-card-task {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 28px;
	min-width: 0;
	font-size: 13px;
	line-height: 1.3;
}

.anota-card-task + .anota-card-task {
	margin-top: 6px;
}

.anota-check-box {
	width: 16px;
	height: 16px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: rgba(255, 255, 255, .6);
}

.anota-check-box.is-done {
	border-color: #111827;
	background: #111827;
	color: #fff;
}

.anota-dark .anota-check-box.is-done {
	border-color: #fff;
	background: #fff;
	color: #000;
}

.anota-check-box svg {
	width: 12px;
	height: 12px;
}

.anota-card-check {
	width: 24px;
	height: 24px;
	border: 1px solid rgba(17, 24, 39, .18) !important;
	border-radius: 8px !important;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: rgba(255, 255, 255, .52) !important;
	transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

.anota-card-check:hover {
	transform: scale(1.05);
	border-color: rgba(17, 24, 39, .4) !important;
}

.anota-card-check:active {
	transform: scale(.94);
}

.anota-card-check.is-done {
	border-color: #111827 !important;
	background: #111827 !important;
	color: #fff;
}

.anota-dark .anota-card-check {
	border-color: rgba(255, 255, 255, .22) !important;
	background: rgba(0, 0, 0, .18) !important;
}

.anota-dark .anota-card-check.is-done {
	border-color: #fff !important;
	background: #fff !important;
	color: #000;
}

.anota-card-check svg {
	width: 13px;
	height: 13px;
}

.anota-task-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.anota-task-text.is-done {
	text-decoration: line-through;
	opacity: .5;
}

.anota-more-tasks {
	margin-top: 6px;
	font-size: 11px;
	opacity: .5;
}

.anota-progress {
	height: 6px;
	margin-top: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(0, 0, 0, .1);
}

.anota-dark .anota-progress {
	background: rgba(255, 255, 255, .1);
}

.anota-progress-bar {
	height: 100%;
	border-radius: inherit;
	background: #111827;
	transition: width .15s;
}

.anota-dark .anota-progress-bar {
	background: #fff;
}

.anota-tag-row {
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}

.anota-tag,
.anota-task-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 500;
}

.anota-tag[data-style="slate"] { background: #0f172a; color: #fff; }
.anota-tag[data-style="indigo"] { background: #e0e7ff; color: #4338ca; }
.anota-tag[data-style="amber"] { background: #fef08a; color: #854d0e; }
.anota-tag[data-style="green"] { background: #bbf7d0; color: #166534; }
.anota-tag[data-style="red"] { background: #fecaca; color: #991b1b; }
.anota-tag[data-style="violet"] { background: #ddd6fe; color: #5b21b6; }
.anota-tag[data-style="cyan"] { background: #cffafe; color: #155e75; }
.anota-tag[data-style="teal"] { background: #ccfbf1; color: #115e59; }
.anota-tag[data-style="pink"] { background: #fce7f3; color: #9d174d; }
.anota-tag[data-style="orange"] { background: #ffedd5; color: #9a3412; }

.anota-dark .anota-tag[data-style="slate"] { background: #fff; color: #000; }
.anota-dark .anota-tag[data-style="indigo"] { background: #2a2a4a; color: #a5b4fc; }
.anota-dark .anota-tag[data-style="amber"] { background: #3a3210; color: #fef08a; }
.anota-dark .anota-tag[data-style="green"] { background: #1a3320; color: #86efac; }
.anota-dark .anota-tag[data-style="red"] { background: #331a1a; color: #fca5a5; }
.anota-dark .anota-tag[data-style="violet"] { background: #261a3a; color: #c4b5fd; }
.anota-dark .anota-tag[data-style="cyan"] { background: #11313a; color: #67e8f9; }
.anota-dark .anota-tag[data-style="teal"] { background: #12332e; color: #5eead4; }
.anota-dark .anota-tag[data-style="pink"] { background: #341726; color: #f9a8d4; }
.anota-dark .anota-tag[data-style="orange"] { background: #371f12; color: #fdba74; }

.anota-task-badge {
	background: rgba(0, 0, 0, .05);
}

.anota-dark .anota-task-badge {
	background: rgba(255, 255, 255, .1);
}

.anota-task-badge svg {
	width: 12px;
	height: 12px;
}

.anota-card-meta {
	gap: 8px;
	margin-top: 12px;
}

.anota-card-date {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	opacity: .4;
}

.anota-card-date svg {
	width: 12px;
	height: 12px;
}

.anota-card-date.is-due {
	opacity: .75;
}

.anota-card-actions {
	gap: 4px;
	opacity: 0;
	transition: opacity .15s;
}

.anota-card:hover .anota-card-actions,
.anota-card:focus-within .anota-card-actions {
	opacity: 1;
}

.anota-card-action {
	width: 28px;
	height: 28px;
	border-radius: 999px !important;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .8) !important;
	backdrop-filter: blur(8px);
}

.anota-dark .anota-card-action {
	background: rgba(0, 0, 0, .4) !important;
}

.anota-card-action svg {
	width: 14px;
	height: 14px;
}

.anota-palette {
	position: absolute;
	right: 8px;
	bottom: 48px;
	z-index: 10;
	display: grid;
	grid-template-columns: repeat(8, 28px);
	gap: 6px;
	max-width: calc(100vw - 32px);
	padding: 8px;
	border: 1px solid var(--anota-border);
	border-radius: 14px;
	background: var(--anota-panel);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.anota-color-dot {
	width: 28px;
	height: 28px;
	border: 2px solid transparent !important;
	border-radius: 999px !important;
}

.anota-color-dot.is-active {
	border-color: #111827 !important;
}

.anota-dark .anota-color-dot.is-active {
	border-color: #fff !important;
}

.anota-color-dot[data-color="white"] { background: var(--anota-card-white) !important; }
.anota-color-dot[data-color="yellow"] { background: var(--anota-card-yellow) !important; }
.anota-color-dot[data-color="blue"] { background: var(--anota-card-blue) !important; }
.anota-color-dot[data-color="green"] { background: var(--anota-card-green) !important; }
.anota-color-dot[data-color="pink"] { background: var(--anota-card-pink) !important; }
.anota-color-dot[data-color="lavender"] { background: var(--anota-card-lavender) !important; }
.anota-color-dot[data-color="orange"] { background: var(--anota-card-orange) !important; }
.anota-color-dot[data-color="peach"] { background: var(--anota-card-peach) !important; }
.anota-color-dot[data-color="coral"] { background: var(--anota-card-coral) !important; }
.anota-color-dot[data-color="rose"] { background: var(--anota-card-rose) !important; }
.anota-color-dot[data-color="purple"] { background: var(--anota-card-purple) !important; }
.anota-color-dot[data-color="cyan"] { background: var(--anota-card-cyan) !important; }
.anota-color-dot[data-color="mint"] { background: var(--anota-card-mint) !important; }
.anota-color-dot[data-color="lime"] { background: var(--anota-card-lime) !important; }
.anota-color-dot[data-color="sand"] { background: var(--anota-card-sand) !important; }
.anota-color-dot[data-color="gray"] { background: var(--anota-card-gray) !important; }

.anota-empty {
	max-width: 720px;
	margin: 48px auto 0;
	text-align: center;
}

.anota-empty-card {
	position: relative;
	width: 280px;
	height: 200px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--anota-border);
	border-radius: 24px;
	display: grid;
	place-items: center;
	background: var(--anota-panel);
}

.anota-empty-pattern {
	position: absolute;
	inset: 0;
	opacity: .03;
	background-image: radial-gradient(#000 1px, transparent 1px);
	background-size: 16px 16px;
}

.anota-dark .anota-empty-pattern {
	background-image: radial-gradient(#fff 1px, transparent 1px);
}

.anota-empty-inner {
	position: relative;
	z-index: 1;
}

.anota-empty-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	background: var(--anota-bg);
	font-size: 24px;
}

.anota-empty-title {
	font-size: 14px;
	font-weight: 500;
}

.anota-empty-copy {
	margin-top: 4px;
	font-size: 12px;
	opacity: .5;
}

.anota-empty-examples {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	max-width: 720px;
	margin-top: 32px;
	text-align: left;
}

.anota-example {
	padding: 16px !important;
	border: 1px solid var(--anota-border) !important;
	border-radius: 16px !important;
	background: var(--anota-panel) !important;
	text-align: left;
	transition: border-color .15s, box-shadow .15s;
}

.anota-example:hover {
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.anota-example-title {
	font-size: 13px;
	font-weight: 500;
}

.anota-example-copy {
	margin-top: 4px;
	font-size: 12px;
	opacity: .5;
}

.anota-backdrop,
.anota-menu-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.anota-menu-backdrop {
	z-index: 25;
	background: rgba(0, 0, 0, .2);
	backdrop-filter: blur(4px);
}

.anota-modal-layer {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.anota-editor,
.anota-settings {
	position: relative;
	z-index: 1;
	width: 100%;
	max-height: 92vh;
	max-height: 92dvh;
	overflow: hidden;
	border-radius: 24px 24px 0 0;
	display: flex;
	flex-direction: column;
	background: var(--anota-modal);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
	animation: anota-in .25s ease;
}

.anota-dark .anota-editor,
.anota-dark .anota-settings {
	border: 1px solid #232323;
}

@keyframes anota-in {
	from { opacity: 0; transform: translateY(12px) scale(.99); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.anota-editor-head {
	min-height: 65px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--anota-border);
}

.anota-save-state {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	opacity: .5;
}

.anota-save-state svg {
	width: 16px;
	height: 16px;
}

.anota-editor-head-actions,
.anota-editor-actions,
.anota-editor-tools {
	gap: 6px;
}

.anota-editor-head .anota-icon-button,
.anota-editor-actions .anota-icon-button {
	width: 32px;
	height: 32px;
}

.anota-editor-head .anota-icon-button svg,
.anota-editor-actions .anota-icon-button svg {
	width: 16px;
	height: 16px;
}

.anota-icon-button.is-pinned {
	background: #111827 !important;
	color: #fff !important;
}

.anota-dark .anota-icon-button.is-pinned {
	background: #fff !important;
	color: #000 !important;
}

.anota-editor-body,
.anota-settings-body {
	min-height: 0;
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 24px;
}

.anota-editor-title {
	width: 100%;
	outline: 0;
	background: transparent;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -.02em;
}

.anota-editor-title::placeholder {
	color: #d1d5db;
}

.anota-dark .anota-editor-title::placeholder {
	color: #3a3a3a;
}

.anota-editor-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.anota-tag-choice {
	padding: 4px 10px !important;
	border: 1px solid var(--anota-border) !important;
	border-radius: 999px !important;
	font-size: 11.5px;
	font-weight: 500;
	opacity: .6;
	transition: opacity .15s;
}

.anota-tag-choice:hover,
.anota-tag-choice.is-active {
	opacity: 1;
}

.anota-tag-choice:not(.is-active) {
	background: transparent !important;
	color: inherit !important;
}

.anota-tag-choice.is-active {
	border-color: transparent !important;
}

.anota-schedule-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 16px;
	padding: 12px;
	border: 1px solid var(--anota-border);
	border-radius: 14px;
	background: var(--anota-bg);
}

.anota-conflict {
	margin-top: 16px;
	padding: 12px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: #fffbeb;
	color: #854d0e;
	font-size: 12px;
}

.anota-dark .anota-conflict {
	border-color: #55470e;
	background: #2a2610;
	color: #fef08a;
}

.anota-conflict strong,
.anota-conflict span {
	display: block;
}

.anota-conflict span {
	margin-top: 3px;
	opacity: .8;
}

.anota-conflict > div {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
}

.anota-conflict button {
	padding: 5px 9px !important;
	border: 1px solid currentColor !important;
	border-radius: 999px !important;
	font-size: 11px;
	font-weight: 600;
}

.anota-field-label {
	display: block;
	font-size: 11px;
	font-weight: 500;
	opacity: .58;
}

.anota-field {
	height: 42px;
	margin-top: 5px !important;
	padding: 0 12px !important;
	border-radius: 11px;
	font-size: 13px;
}

.anota-field-area {
	height: auto;
	min-height: 92px;
	padding: 11px 12px !important;
	resize: vertical;
}

.anota-editor-content {
	width: 100%;
	min-height: 160px;
	margin-top: 20px !important;
	outline: 0;
	resize: none;
	background: transparent;
	font-size: 15px;
	line-height: 1.6;
}

.anota-checklist {
	margin-top: 24px;
}

.anota-check-row {
	gap: 10px;
}

.anota-check-row + .anota-check-row {
	margin-top: 8px;
}

.anota-check-toggle {
	width: 20px;
	height: 20px;
	border: 1px solid #d1d5db !important;
	border-radius: 7px !important;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.anota-check-toggle.is-done {
	border-color: #111827 !important;
	background: #111827 !important;
	color: #fff;
}

.anota-dark .anota-check-toggle.is-done {
	border-color: #fff !important;
	background: #fff !important;
	color: #000;
}

.anota-check-toggle svg {
	width: 12px;
	height: 12px;
}

.anota-check-input {
	min-width: 0;
	flex: 1 1 auto;
	outline: 0;
	background: transparent;
	font-size: 14px;
}

.anota-check-input.is-done {
	text-decoration: line-through;
	opacity: .5;
}

.anota-check-remove {
	width: 24px;
	height: 24px;
	border-radius: 999px !important;
	display: grid;
	place-items: center;
	background: var(--anota-soft) !important;
	opacity: 0;
	transition: opacity .15s;
}

.anota-check-row:hover .anota-check-remove,
.anota-check-row:focus-within .anota-check-remove {
	opacity: 1;
}

.anota-check-remove svg {
	width: 12px;
	height: 12px;
}

.anota-add-task {
	margin-top: 10px !important;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	opacity: .6;
}

.anota-add-task:hover {
	opacity: 1;
}

.anota-add-task svg {
	width: 14px;
	height: 14px;
}

.anota-editor-footer {
	gap: 8px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--anota-border);
	background: var(--anota-bg);
}

.anota-editor-tools {
	min-width: 0;
	flex-wrap: wrap;
}

.anota-pill-button {
	height: 32px;
	padding: 0 12px !important;
	border: 1px solid var(--anota-border) !important;
	border-radius: 999px !important;
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--anota-panel) !important;
	font-size: 12.5px;
	font-weight: 500;
}

.anota-pill-button.is-active {
	border-color: transparent !important;
	background: #111827 !important;
	color: #fff !important;
}

.anota-dark .anota-pill-button.is-active {
	background: #fff !important;
	color: #000 !important;
}

.anota-pill-button svg {
	width: 16px;
	height: 16px;
}

.anota-editor-colors {
	display: none;
	align-items: center;
	gap: 4px;
}

.anota-editor-colors .anota-color-dot {
	width: 24px;
	height: 24px;
}

.anota-delete-button {
	background: #fef2f2 !important;
	color: #dc2626 !important;
}

.anota-dark .anota-delete-button {
	background: #2a1a1a !important;
}

.anota-save-button {
	height: 32px;
	padding: 0 16px !important;
	border-radius: 999px !important;
	background: #111827 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
}

.anota-dark .anota-save-button {
	background: #fff !important;
	color: #000 !important;
}

.anota-focus {
	position: fixed;
	inset: 0;
	z-index: 50;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--anota-bg);
	color: var(--anota-text);
}

.anota-focus-inner {
	max-width: 680px;
	margin: 0 auto;
	padding: calc(40px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
}

.anota-focus-top {
	gap: 16px;
	margin-bottom: 40px;
}

.anota-focus-exit {
	height: 36px;
	padding: 0 16px !important;
	border: 1px solid var(--anota-border) !important;
	border-radius: 999px !important;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--anota-panel) !important;
	font-size: 13px;
}

.anota-focus-exit svg {
	width: 16px;
	height: 16px;
}

.anota-focus-meta {
	gap: 8px;
	font-size: 11px;
	opacity: .4;
}

.anota-focus-meta svg {
	width: 12px;
	height: 12px;
}

.anota-focus-title {
	margin: 0;
	font-size: 40px;
	font-weight: 600;
	line-height: .95;
	letter-spacing: -.03em;
}

.anota-focus-rule {
	height: 1px;
	margin-top: 32px;
	background: var(--anota-border);
}

.anota-focus-content {
	margin-top: 32px;
	font-size: 18px;
	line-height: 1.7;
	white-space: pre-wrap;
	opacity: .8;
}

.anota-settings {
	max-width: 620px;
}

.anota-settings-user {
	gap: 12px;
}

.anota-settings-user .anota-avatar {
	width: 38px;
	height: 38px;
	font-size: 14px;
}

.anota-settings-title {
	font-size: 14px;
	font-weight: 600;
}

.anota-settings-email {
	font-size: 11px;
	opacity: .5;
}

.anota-settings-title,
.anota-settings-email {
	display: block;
}

.anota-settings-tabs {
	gap: 4px;
	margin-bottom: 22px;
	padding: 4px;
	border-radius: 12px;
	background: var(--anota-soft);
}

.anota-settings-tab {
	height: 34px;
	padding: 0 14px !important;
	border-radius: 9px !important;
	font-size: 12px;
	font-weight: 500;
}

.anota-settings-tab.is-active {
	background: var(--anota-panel) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.anota-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.anota-form-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
}

.anota-form-help {
	margin: 0 0 16px;
	font-size: 12px;
	opacity: .55;
}

.anota-form-action {
	height: 40px;
	padding: 0 16px !important;
	border-radius: 11px !important;
	justify-self: start;
	background: #111827 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
}

.anota-dark .anota-form-action {
	background: #fff !important;
	color: #000 !important;
}

.anota-divider {
	height: 1px;
	margin: 24px 0;
	background: var(--anota-border);
}

.anota-category-create {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 8px;
	align-items: end;
}

.anota-style-select {
	width: 112px;
}

.anota-category-list {
	margin-top: 18px;
}

.anota-category-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--anota-border);
}

.anota-category-item:last-child {
	border-bottom: 0;
}

.anota-category-name {
	min-width: 0;
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 500;
}

.anota-category-delete {
	width: 30px;
	height: 30px;
	border-radius: 999px !important;
	display: grid;
	place-items: center;
	color: #dc2626 !important;
}

.anota-category-delete:hover {
	background: #fef2f2 !important;
}

.anota-category-delete svg {
	width: 14px;
	height: 14px;
}

.anota-logout {
	margin-top: 22px !important;
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	color: #dc2626 !important;
}

.anota-logout svg {
	width: 14px;
	height: 14px;
}

.anota-auth {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
	background: #fafaf7;
	color: #111827;
}

.anota-auth-card {
	width: 100%;
	max-width: 420px;
	padding: 28px;
	border: 1px solid #edede8;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(17, 24, 39, .08);
}

.anota-auth-brand {
	gap: 10px;
	justify-content: center;
	margin-bottom: 28px;
}

.anota-auth-title {
	margin: 0;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -.02em;
}

.anota-auth-copy {
	margin: 6px 0 22px;
	font-size: 13px;
	color: #6b7280;
}

.anota-auth-form {
	display: grid;
	gap: 14px;
}

.anota-auth .anota-field {
	background: #fafaf7;
	border-color: #edede8 !important;
}

.anota-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	color: #6b7280;
}

.anota-checkbox-label {
	display: flex;
	align-items: center;
	gap: 7px;
}

.anota-auth-link {
	color: #111827 !important;
	font-size: 12px;
	font-weight: 500;
}

.anota-auth-submit {
	height: 44px;
	border-radius: 12px !important;
	background: #111827 !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
}

.anota-auth-switch {
	margin: 18px 0 0;
	text-align: center;
	font-size: 12px;
	color: #6b7280;
}

.anota-inline-message {
	padding: 10px 12px;
	border-radius: 10px;
	background: #f3f3f0;
	font-size: 12px;
	line-height: 1.45;
}

.anota-inline-message.is-error {
	background: #fef2f2;
	color: #991b1b;
}

.anota-toast-stack {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 90;
	display: grid;
	gap: 8px;
	pointer-events: none;
}

.anota-toast {
	max-width: min(360px, calc(100vw - 32px));
	gap: 9px;
	padding: 11px 14px;
	border: 1px solid var(--anota-border);
	border-radius: 12px;
	background: var(--anota-panel);
	color: var(--anota-text);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
	font-size: 12.5px;
	animation: anota-toast-in .2s ease;
}

.anota-toast.is-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

@keyframes anota-toast-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: #e5e7eb;
}

.anota-dark ::-webkit-scrollbar-thumb {
	background: #2a2a2a;
}

@media (hover: none) {
	.anota-card-actions {
		opacity: 1;
	}

	.anota-check-remove {
		opacity: .6;
	}
}

@media (min-width: 620px) {
	.anota-schedule-panel,
	.anota-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.anota-sidebar {
		transform: translate3d(0, 0, 0);
	}

	.anota-main {
		margin-left: 280px;
	}

	.anota-menu-button,
	.anota-menu-backdrop {
		display: none !important;
	}

	.anota-topbar {
		padding: 16px 32px;
		border-bottom-color: transparent;
	}

	.anota-desktop-state {
		display: block;
	}

	.anota-content {
		padding-right: 32px;
		padding-left: 32px;
	}

	.anota-masonry {
		column-count: 2;
	}

	.anota-empty-examples {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.anota-modal-layer {
		align-items: center;
	}

	.anota-editor,
	.anota-settings {
		width: calc(100% - 32px);
		max-height: 86vh;
		max-height: 86dvh;
		border-radius: 24px;
	}

	.anota-editor {
		max-width: 640px;
	}

	.anota-editor-colors {
		display: flex;
	}

	.anota-focus-inner {
		padding: 80px 40px;
	}

	.anota-focus-title {
		font-size: 52px;
	}
}

@media (min-width: 1200px) {
	.anota-masonry {
		column-count: 3;
	}
}

@media (max-width: 479px) {
	.anota-sidebar {
		width: min(280px, calc(100vw - 44px));
	}

	.anota-topbar {
		gap: 8px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.anota-quick-box {
		gap: 8px;
		padding: 0 11px;
	}

	.anota-quick-spark {
		width: 28px;
		height: 28px;
	}

	.anota-quick-save {
		width: 32px;
		padding: 0 !important;
		font-size: 0;
	}

	.anota-quick-save::after {
		content: '↵';
		font-size: 14px;
	}

	.anota-editor-head {
		padding-right: 16px;
		padding-left: 16px;
	}

	.anota-save-state span:last-child {
		display: none;
	}

	.anota-editor-body,
	.anota-settings-body {
		padding: 20px 16px;
	}

	.anota-editor-footer {
		align-items: flex-end;
	}

	.anota-editor-tools {
		gap: 5px;
	}

	.anota-pill-button {
		padding: 0 9px !important;
		font-size: 11.5px;
	}

	.anota-editor-actions {
		flex: 0 0 auto;
	}

	.anota-category-create {
		grid-template-columns: 1fr;
	}

	.anota-style-select {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.anota-root *,
	.anota-root *::before,
	.anota-root *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* PWA installation control: presentation only; install capability remains browser-owned. */
.anota-install-card {
	margin: 0;
}

.anota-install-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.anota-install-action svg {
	width: 15px;
	height: 15px;
}

@supports (-webkit-touch-callout: none) {
	.anota-editor-body,
	.anota-settings-body,
	.anota-content,
	.anota-focus {
		-webkit-overflow-scrolling: touch;
	}
}


/* Native-like viewport and touch behavior. Keeps the existing visual design intact. */
html.anota-page {
	width: 100%;
	height: 100%;
	overflow: hidden;
	overscroll-behavior-y: contain;
}

html.anota-page body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	overscroll-behavior-y: contain;
}

.anota-root {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}

.anota-shell {
	height: 100%;
	min-height: 0;
	overflow: hidden;
	overscroll-behavior-x: auto;
	overscroll-behavior-y: contain;
}

.anota-main {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.anota-topbar {
	position: relative;
	top: auto;
	flex: 0 0 auto;
}

.anota-content {
	min-height: 0;
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: auto;
	overscroll-behavior-y: contain;
	touch-action: pan-y pinch-zoom;
}

.anota-sidebar {
	height: 100%;
	padding-bottom: env(safe-area-inset-bottom);
}

.anota-sidebar-scroll,
.anota-editor-body,
.anota-settings-body,
.anota-focus {
	touch-action: pan-y pinch-zoom;
	overscroll-behavior-x: auto;
	overscroll-behavior-y: contain;
}

.anota-root button,
.anota-root [role="button"] {
	-webkit-touch-callout: none;
}

@media (max-width: 767px) {
	/* iOS zooms focused controls below 16px. Keep zoom available; size fields correctly instead. */
	.anota-search,
	.anota-quick-input,
	.anota-field,
	.anota-check-input,
	.anota-editor-content {
		font-size: 16px;
	}
}

@media (hover: none) and (pointer: coarse) {
	/* Expensive live blurs can cause scroll jank on mobile GPUs. */
	.anota-topbar,
	.anota-backdrop,
	.anota-menu-backdrop {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.anota-topbar {
		background: rgba(250, 250, 247, .97);
	}

	.anota-dark .anota-topbar {
		background: rgba(10, 10, 10, .97);
	}

	.anota-card:hover {
		transform: none;
		box-shadow: none;
	}
}

/* UX polish: clearer filters/checklists and mobile touch targets. */
.anota-category-filters .anota-filter[data-style] {
	position: relative;
	padding-left: 14px !important;
}

.anota-category-filters .anota-filter[data-style]::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 50%;
	width: 4px;
	height: 20px;
	border-radius: 999px;
	background: #94a3b8;
	transform: translateY(-50%);
}

.anota-category-filters .anota-filter[data-style="indigo"]::before { background: #6366f1; }
.anota-category-filters .anota-filter[data-style="amber"]::before { background: #eab308; }
.anota-category-filters .anota-filter[data-style="green"]::before { background: #22c55e; }
.anota-category-filters .anota-filter[data-style="red"]::before { background: #ef4444; }
.anota-category-filters .anota-filter[data-style="violet"]::before { background: #8b5cf6; }
.anota-category-filters .anota-filter[data-style="cyan"]::before { background: #06b6d4; }
.anota-category-filters .anota-filter[data-style="teal"]::before { background: #14b8a6; }
.anota-category-filters .anota-filter[data-style="pink"]::before { background: #ec4899; }
.anota-category-filters .anota-filter[data-style="orange"]::before { background: #f97316; }

.anota-profile-button {
	min-height: 46px;
}

.anota-profile-name {
	font-size: 13px;
	font-weight: 600;
}

.anota-form-grid-single {
	grid-template-columns: minmax(0, 1fr) !important;
}

.anota-editor-mode {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	margin-top: 18px;
	padding: 4px;
	border: 1px solid var(--anota-border);
	border-radius: 14px;
	background: var(--anota-soft);
}

.anota-mode-button {
	min-height: 40px;
	padding: 0 14px !important;
	border-radius: 10px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--anota-muted) !important;
}

.anota-mode-button.is-active {
	background: var(--anota-panel) !important;
	color: var(--anota-text) !important;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .08);
}

.anota-mode-button.is-busy,
.anota-mode-button:disabled {
	opacity: .62;
	cursor: wait;
}

.anota-mode-button svg {
	width: 16px;
	height: 16px;
}

.anota-color-row {
	display: grid;
	gap: 7px;
	margin-top: 16px;
}

.anota-tool-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--anota-muted);
}

.anota-editor-colors {
	display: flex;
	width: 100%;
	gap: 7px;
	overflow-x: auto;
	padding: 2px 2px 6px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.anota-editor-colors::-webkit-scrollbar {
	display: none;
}

.anota-editor-colors .anota-color-dot {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border: 1px solid rgba(17, 24, 39, .10) !important;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
}

.anota-dark .anota-editor-colors .anota-color-dot {
	border-color: rgba(255, 255, 255, .12) !important;
}

.anota-checklist {
	display: grid;
	gap: 8px;
}

.anota-check-row {
	min-height: 48px;
	gap: 8px;
	padding: 5px 7px 5px 8px;
	border: 1px solid var(--anota-border);
	border-radius: 13px;
	background: var(--anota-panel);
}

.anota-check-row + .anota-check-row {
	margin-top: 0;
}

.anota-check-toggle {
	width: 32px;
	height: 32px;
	border-radius: 9px !important;
}

.anota-check-input {
	min-height: 36px;
	font-size: 15px;
}

.anota-check-remove {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
}

.anota-add-task {
	min-height: 42px;
	margin-top: 2px !important;
	padding: 0 12px !important;
	border: 1px dashed var(--anota-border) !important;
	border-radius: 12px !important;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	opacity: .72;
}

.anota-pill-button,
.anota-save-button,
.anota-editor-actions .anota-icon-button {
	min-height: 40px;
}

.anota-pill-button {
	height: 40px;
	padding-inline: 14px !important;
}

.anota-save-button {
	height: 40px;
	min-width: 92px;
}

.anota-save-button.is-busy {
	opacity: .72;
	cursor: progress;
}

.anota-editor-footer {
	position: relative;
	z-index: 2;
	background: var(--anota-panel);
}

/* Preserve native horizontal navigation gestures while keeping vertical scrolling browser-owned. */
.anota-content,
.anota-sidebar-scroll,
.anota-editor-body,
.anota-settings-body,
.anota-focus {
	touch-action: auto;
}

@media (max-width: 767px) {
	.anota-modal-layer {
		align-items: stretch;
	}

	.anota-editor,
	.anota-settings {
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		border-radius: 0;
		box-shadow: none;
	}

	.anota-editor-head {
		padding-top: calc(12px + env(safe-area-inset-top));
	}

	.anota-editor-footer {
		align-items: center;
		padding-bottom: calc(10px + env(safe-area-inset-bottom));
	}

	.anota-editor-tools {
		flex: 0 0 auto;
	}

	.anota-pill-button {
		min-width: 96px;
		justify-content: center;
		font-size: 13px;
	}

	.anota-save-button {
		min-width: 104px;
		font-size: 14px;
	}

	.anota-color-row {
		margin-top: 14px;
	}

	.anota-editor-colors .anota-color-dot {
		width: 30px;
		height: 30px;
		flex-basis: 30px;
	}

	.anota-check-toggle,
	.anota-check-remove {
		width: 36px;
		height: 36px;
	}
}

@media (hover: none) and (pointer: coarse) {
	.anota-check-remove {
		opacity: .72;
	}

	.anota-mode-button,
	.anota-pill-button,
	.anota-save-button,
	.anota-add-task {
		touch-action: manipulation;
	}
}

/* v1.3.0 touch-target refinement. */
@media (max-width: 767px) {
	.anota-mode-button,
	.anota-pill-button,
	.anota-save-button,
	.anota-add-task {
		min-height: 44px;
	}

	.anota-pill-button,
	.anota-save-button {
		height: 44px;
	}

	.anota-check-row {
		min-height: 52px;
	}

	.anota-check-toggle,
	.anota-check-remove {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.anota-check-input {
		min-height: 40px;
		font-size: 16px;
	}

	.anota-editor-colors .anota-color-dot {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}
}


/* Semantic color accents for category filters. */
.anota-filter[data-style="indigo"]:not(.is-active) .anota-filter-label svg { color: #4f46e5; }
.anota-filter[data-style="amber"]:not(.is-active) .anota-filter-label svg { color: #d97706; }
.anota-filter[data-style="green"]:not(.is-active) .anota-filter-label svg { color: #16a34a; }
.anota-filter[data-style="red"]:not(.is-active) .anota-filter-label svg { color: #dc2626; }
.anota-filter[data-style="violet"]:not(.is-active) .anota-filter-label svg { color: #7c3aed; }
.anota-filter[data-style="cyan"]:not(.is-active) .anota-filter-label svg { color: #0891b2; }
.anota-filter[data-style="teal"]:not(.is-active) .anota-filter-label svg { color: #0f766e; }
.anota-filter[data-style="pink"]:not(.is-active) .anota-filter-label svg { color: #db2777; }
.anota-filter[data-style="orange"]:not(.is-active) .anota-filter-label svg { color: #ea580c; }

@media (max-width: 767px) {
	.anota-card-check {
		width: 30px;
		height: 30px;
		border-radius: 10px !important;
	}
	.anota-card-task {
		min-height: 34px;
	}
	.anota-palette {
		position: fixed;
		left: 50%;
		right: auto;
		bottom: calc(18px + env(safe-area-inset-bottom));
		transform: translateX(-50%);
		grid-template-columns: repeat(8, 28px);
	}
}

/* v1.2.2 Stable Pro — color system, save feedback and mobile performance. */
:root {
	--anota-card-amber: #fde68a;
	--anota-card-red: #fee2e2;
	--anota-card-magenta: #fae8ff;
	--anota-card-indigo: #e0e7ff;
	--anota-card-sky: #e0f2fe;
	--anota-card-teal: #ccfbf1;
	--anota-card-olive: #eef0bd;
	--anota-card-brown: #f4e5d8;
	--anota-success: #15803d;
	--anota-warning: #b45309;
	--anota-danger: #b91c1c;
	--anota-info: #0369a1;
}

.anota-dark {
	--anota-card-amber: #352c0d;
	--anota-card-red: #321719;
	--anota-card-magenta: #32163a;
	--anota-card-indigo: #1d2340;
	--anota-card-sky: #10293a;
	--anota-card-teal: #10312e;
	--anota-card-olive: #282b13;
	--anota-card-brown: #2d211b;
	--anota-success: #86efac;
	--anota-warning: #fcd34d;
	--anota-danger: #fca5a5;
	--anota-info: #7dd3fc;
}

.anota-card[data-color="amber"] { background: var(--anota-card-amber); }
.anota-card[data-color="red"] { background: var(--anota-card-red); }
.anota-card[data-color="magenta"] { background: var(--anota-card-magenta); }
.anota-card[data-color="indigo"] { background: var(--anota-card-indigo); }
.anota-card[data-color="sky"] { background: var(--anota-card-sky); }
.anota-card[data-color="teal"] { background: var(--anota-card-teal); }
.anota-card[data-color="olive"] { background: var(--anota-card-olive); }
.anota-card[data-color="brown"] { background: var(--anota-card-brown); }

.anota-color-dot[data-color="amber"] { background: var(--anota-card-amber) !important; }
.anota-color-dot[data-color="red"] { background: var(--anota-card-red) !important; }
.anota-color-dot[data-color="magenta"] { background: var(--anota-card-magenta) !important; }
.anota-color-dot[data-color="indigo"] { background: var(--anota-card-indigo) !important; }
.anota-color-dot[data-color="sky"] { background: var(--anota-card-sky) !important; }
.anota-color-dot[data-color="teal"] { background: var(--anota-card-teal) !important; }
.anota-color-dot[data-color="olive"] { background: var(--anota-card-olive) !important; }
.anota-color-dot[data-color="brown"] { background: var(--anota-card-brown) !important; }

/* Category identity remains visible even when the note itself uses another color. */
.anota-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 16px;
	right: 16px;
	height: 3px;
	border-radius: 0 0 999px 999px;
	background: #64748b;
	opacity: .78;
	pointer-events: none;
}

.anota-card[data-primary-style="indigo"]::before { background: #6366f1; }
.anota-card[data-primary-style="amber"]::before { background: #eab308; }
.anota-card[data-primary-style="green"]::before { background: #22c55e; }
.anota-card[data-primary-style="red"]::before { background: #ef4444; }
.anota-card[data-primary-style="violet"]::before { background: #8b5cf6; }
.anota-card[data-primary-style="cyan"]::before { background: #06b6d4; }
.anota-card[data-primary-style="teal"]::before { background: #14b8a6; }
.anota-card[data-primary-style="pink"]::before { background: #ec4899; }
.anota-card[data-primary-style="orange"]::before { background: #f97316; }

.anota-save-state {
	opacity: .72;
	transition: color .15s ease, opacity .15s ease;
}

.anota-save-state[data-state="saved"] [data-save-label] {
	color: var(--anota-success);
	font-weight: 600;
}

.anota-save-state[data-state="saving"] [data-save-label] {
	color: var(--anota-info);
	font-weight: 600;
}

.anota-save-state[data-state="dirty"] [data-save-label] {
	color: var(--anota-warning);
	font-weight: 600;
}

.anota-save-state[data-state="error"] [data-save-label] {
	color: var(--anota-danger);
	font-weight: 700;
}

.anota-toast.is-success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.anota-dark .anota-toast.is-success {
	border-color: #225c35;
	background: #10291a;
	color: #bbf7d0;
}

.anota-card.is-just-saved {
	animation: anota-saved-pulse .75s ease-out;
}

@keyframes anota-saved-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .28); }
	45% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .14); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Keep colored cards readable in both themes without changing stored note color. */
.anota-card {
	color: var(--anota-text);
}

.anota-dark .anota-card[data-color]:not([data-color="white"]) {
	border-color: rgba(255, 255, 255, .07);
}

.anota-dark .anota-card[data-color]:not([data-color="white"]) .anota-card-copy,
.anota-dark .anota-card[data-color]:not([data-color="white"]) .anota-task-text {
	color: rgba(255, 255, 255, .86);
}

/* Large palettes stay compact and thumb-friendly. */
.anota-palette {
	grid-template-columns: repeat(8, 28px);
	max-height: min(240px, 45dvh);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.anota-editor-colors {
	overscroll-behavior-inline: contain;
	touch-action: pan-x;
}

/* Performance: avoid expensive compositing on touch devices; keep controls at 44px+. */
@media (hover: none) and (pointer: coarse) {
	.anota-card,
	.anota-card-action,
	.anota-color-dot,
	.anota-check-toggle,
	.anota-card-check {
		-webkit-tap-highlight-color: transparent;
	}

	.anota-card-action {
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	.anota-card {
		transition: border-color .12s ease, background-color .12s ease;
	}

	.anota-color-dot {
		transition: transform .1s ease, border-color .1s ease;
	}

	.anota-color-dot:active,
	.anota-card-check:active,
	.anota-check-toggle:active {
		transform: scale(.94);
	}
}

@media (max-width: 767px) {
	.anota-content {
		padding-bottom: calc(24px + env(safe-area-inset-bottom));
	}

	.anota-card {
		margin-bottom: 12px;
		border-radius: 17px;
	}

	.anota-card-actions {
		gap: 6px;
	}

	.anota-card-action {
		width: 36px;
		height: 36px;
	}

	.anota-palette {
		width: min(304px, calc(100vw - 24px));
		padding: 10px;
		grid-template-columns: repeat(8, minmax(0, 1fr));
		gap: 7px;
	}

	.anota-palette .anota-color-dot {
		width: 100%;
		aspect-ratio: 1;
		height: auto;
		min-width: 0;
	}

	.anota-editor-colors .anota-color-dot {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.anota-toast-stack {
		right: 12px;
		left: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
	}

	.anota-toast {
		width: 100%;
		max-width: none;
		justify-content: center;
	}
}

@media (min-width: 768px) {
	.anota-content {
		scrollbar-gutter: stable;
	}
}

/* v1.2.4 Stable Pro — semantic checklist intelligence. */
.anota-suggestion-detail {
	display: inline-flex;
	align-items: center;
	max-width: min(42vw, 260px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
	opacity: .62;
}

.anota-task-semantic {
	margin-left: auto;
	flex: 0 0 auto;
	padding: 3px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .015em;
	background: rgba(15, 23, 42, .08);
	color: #334155;
}

.anota-task-semantic[data-style="green"] { background: #dcfce7; color: #166534; }
.anota-task-semantic[data-style="amber"] { background: #fef3c7; color: #92400e; }
.anota-task-semantic[data-style="cyan"] { background: #cffafe; color: #155e75; }
.anota-task-semantic[data-style="teal"] { background: #ccfbf1; color: #115e59; }
.anota-task-semantic[data-style="violet"] { background: #ede9fe; color: #5b21b6; }
.anota-task-semantic[data-style="orange"] { background: #ffedd5; color: #9a3412; }
.anota-task-semantic[data-style="pink"] { background: #fce7f3; color: #9d174d; }
.anota-task-semantic[data-style="indigo"] { background: #e0e7ff; color: #4338ca; }
.anota-task-semantic[data-style="red"] { background: #fee2e2; color: #991b1b; }

.anota-dark .anota-task-semantic { background: rgba(255, 255, 255, .08); color: #cbd5e1; }
.anota-dark .anota-task-semantic[data-style="green"] { background: #15351f; color: #86efac; }
.anota-dark .anota-task-semantic[data-style="amber"] { background: #3b2f0d; color: #fde68a; }
.anota-dark .anota-task-semantic[data-style="cyan"] { background: #0d3440; color: #67e8f9; }
.anota-dark .anota-task-semantic[data-style="teal"] { background: #10352f; color: #5eead4; }
.anota-dark .anota-task-semantic[data-style="violet"] { background: #2b1b43; color: #c4b5fd; }
.anota-dark .anota-task-semantic[data-style="orange"] { background: #3a2112; color: #fdba74; }
.anota-dark .anota-task-semantic[data-style="pink"] { background: #37162a; color: #f9a8d4; }
.anota-dark .anota-task-semantic[data-style="indigo"] { background: #24254d; color: #a5b4fc; }
.anota-dark .anota-task-semantic[data-style="red"] { background: #3a1717; color: #fca5a5; }

@media (max-width: 767px) {
	.anota-suggestion {
		max-width: calc(100vw - 32px);
		overflow: hidden;
	}
	.anota-suggestion-detail {
		max-width: 34vw;
	}
	.anota-task-semantic {
		padding: 3px 6px;
		font-size: 8px;
	}
}
