﻿.article-annotations-mark,
.anime-notes-mark {
	background: transparent;
	border-bottom: 1px dotted rgba(120, 92, 55, 0.65);
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 120ms ease;
}

.article-annotations-mark-private-active,
.anime-notes-mark-private-active,
.article-annotations-mark-public-approved,
.anime-notes-mark-public-approved,
.article-annotations-mark-public-pending,
.anime-notes-mark-public-pending,
.article-annotations-mark-public-rejected,
.anime-notes-mark-public-rejected,
.article-annotations-mark.is-private,
.anime-notes-mark.is-private,
.article-annotations-mark.is-public-approved,
.anime-notes-mark.is-public-approved,
.article-annotations-mark.is-public-pending,
.anime-notes-mark.is-public-pending,
.article-annotations-mark.is-public-rejected,
.anime-notes-mark.is-public-rejected {
	background: transparent;
	border-bottom-color: rgba(120, 92, 55, 0.65);
	border-bottom-style: dotted;
}

.article-annotations-mark.is-multiple,
.anime-notes-mark.is-multiple {
	border-bottom-width: 2px;
}

.article-annotations-mark:hover,
.article-annotations-mark:focus,
.anime-notes-mark:hover,
.anime-notes-mark:focus {
	background-color: rgba(196, 156, 96, 0.08);
	outline: none;
}

.article-annotations-mark.is-active,
.anime-notes-mark.is-active {
	background: rgba(196, 156, 96, 0.08);
}

.article-annotations-mark-pending,
.anime-notes-mark-pending {
	border-bottom-style: dotted;
}
.article-annotations-action-bar,
.anime-notes-selection-toolbar {
	align-items: center;
	background: #fffaf0;
	border: 1px solid rgba(120, 92, 55, 0.28);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(60, 40, 20, 0.12);
	display: flex;
	gap: 0;
	left: 12px;
	line-height: 1;
	padding: 6px 8px;
	position: fixed;
	top: 12px;
	z-index: 99998;
}

.article-annotations-action-bar.article-annotations-tablet {
	bottom: calc(16px + env(safe-area-inset-bottom));
	left: 50%;
	max-width: calc(100vw - 32px);
	right: auto;
	top: auto;
	transform: translateX(-50%);
}
.article-annotations-action-bar.article-annotations-tablet,
.anime-notes-selection-toolbar.article-annotations-tablet {
	bottom: calc(16px + env(safe-area-inset-bottom));
	left: 50%;
	max-width: calc(100vw - 32px);
	right: auto;
	top: auto;
	transform: translateX(-50%);
}

.article-annotations-action-bar[aria-hidden="true"],
.article-annotations-editor[aria-hidden="true"],
.article-annotations-detail-panel[aria-hidden="true"],
.article-annotations-notice[aria-hidden="true"] {
	display: none;
}
.article-annotations-preview[aria-hidden="true"] {
	display: none;
}

.article-annotations-action-button,
.anime-notes-selection-button,
.article-annotations-primary-button,
.article-annotations-secondary-button,
.article-annotations-danger-button {
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.2;
	min-height: 32px;
	padding: 8px 12px;
}

.article-annotations-action-button,
.anime-notes-selection-button {
	background: transparent;
	border-radius: 999px;
	color: #6f4e2f;
	font: inherit;
	line-height: 1;
	min-height: 0;
	padding: 2px 7px;
}

.article-annotations-action-button:hover,
.article-annotations-action-button:focus,
.anime-notes-selection-button:hover,
.anime-notes-selection-button:focus {
	color: #3f2c1d;
	outline: none;
	text-decoration: underline;
}

.article-annotations-primary-button {
	background: #f6e58d;
	color: #1f2933;
}

.article-annotations-secondary-button {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.article-annotations-danger-button {
	background: #b42318;
	color: #ffffff;
	margin-left: 8px;
}

.anime-notes-enabled .entry-content ::selection,
.anime-notes-enabled [data-article-annotations-root="true"]::selection,
.anime-notes-enabled [data-article-annotations-root="true"] ::selection {
	background: rgba(196, 156, 96, 0.28);
	color: inherit;
}
.article-annotations-editor,
.article-annotations-detail-panel {
	background: #ffffff;
	border: 1px solid rgba(31, 41, 51, 0.14);
	border-radius: 8px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
	color: #1f2933;
	font-size: 14px;
	line-height: 1.5;
	max-width: 380px;
	padding: 16px;
	position: fixed;
	right: 20px;
	top: 92px;
	width: calc(100vw - 40px);
	z-index: 99999;
}

.article-annotations-editor.anime-notes-modal,
.anime-notes-modal {
	background: #fffdf8;
	border: 1px solid rgba(120, 92, 55, 0.16);
	border-radius: 8px;
	box-shadow: 0 12px 36px rgba(60, 40, 20, 0.16);
	color: #3f3328;
	padding: 18px;
	padding-top: 20px;
}
.article-annotations-detail-panel {
	background: #fffdf8;
	border-color: rgba(120, 92, 55, 0.16);
	box-shadow: 0 12px 36px rgba(60, 40, 20, 0.14);
	color: #3f3328;
}

.article-annotations-note-list-panel,
.anime-notes-note-list-panel {
	padding: 12px;
}

.article-annotations-note-item,
.anime-notes-note-item {
	border: 1px solid rgba(120, 92, 55, 0.14);
	border-radius: 7px;
	margin: 0 0 10px;
	padding: 10px 12px;
}

.article-annotations-note-item:last-child,
.anime-notes-note-item:last-child {
	margin-bottom: 0;
}

.article-annotations-note-item-private-active,
.anime-notes-note-item-private-active {
	background: #fff8df;
}

.article-annotations-note-item-public-approved,
.anime-notes-note-item-public-approved {
	background: #f2f8ed;
}

.article-annotations-note-item-public-pending,
.anime-notes-note-item-public-pending {
	background: #fff4dc;
}

.article-annotations-note-item-public-rejected,
.anime-notes-note-item-public-rejected {
	background: #f5f1ed;
}

.article-annotations-note-item .article-annotations-detail-status,
.anime-notes-note-item .anime-notes-detail-status {
	margin-bottom: 6px;
}

.article-annotations-note-item-content {
	margin: 0;
}

.article-annotations-note-item-meta,
.anime-notes-note-item-meta {
	color: rgba(95, 74, 56, 0.62);
	font-size: 12px;
	line-height: 1.4;
	margin: 6px 0 0;
}

.article-annotations-note-item-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 10px;
}

.article-annotations-note-action {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #6f4e2f;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	padding: 4px 0;
}

.article-annotations-note-action:hover,
.article-annotations-note-action:focus {
	background: transparent;
	box-shadow: none;
	color: #3f2c1d;
	outline: none;
	text-decoration: underline;
}

.article-annotations-note-action-danger {
	color: #7a4a34;
}

.article-annotations-preview {
	background: #fffaf0;
	border: 1px solid rgba(120, 92, 55, 0.22);
	border-radius: 6px;
	box-shadow: 0 8px 22px rgba(60, 40, 20, 0.14);
	color: #3f3328;
	font-size: 13px;
	line-height: 1.5;
	max-width: 280px;
	padding: 8px 10px;
	position: fixed;
	width: max-content;
	z-index: 100000;
}

.article-annotations-preview .article-annotations-detail-status,
.article-annotations-preview .anime-notes-detail-status {
	color: #6f4e2f;
	font-size: 12px;
	margin: 0 0 4px;
}
.article-annotations-preview-content,
.article-annotations-detail-note {
	margin: 0;
	white-space: pre-wrap;
}

.article-annotations-detail-status,
.anime-notes-detail-status {
	color: #6f4e2f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 10px;
}

.article-annotations-detail-status-public-approved,
.anime-notes-detail-status-public-approved {
	color: #587043;
}

.article-annotations-detail-status-public-pending,
.anime-notes-detail-status-public-pending {
	color: #8b6840;
}

.article-annotations-detail-status-public-rejected,
.anime-notes-detail-status-public-rejected {
	color: #74695b;
}

.article-annotations-detail-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 14px;
}

.article-annotations-editor-title,
.article-annotations-detail-title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
}

.article-annotations-editor-selection,
.anime-notes-quote {
	background: #f7f4ed;
	border-left: 3px solid rgba(108, 134, 82, 0.75);
	color: #5f4a38;
	font-size: 16px;
	line-height: 1.7;
	margin: 0 20px 12px 0;
	margin-right: 20px;
	overflow: hidden;
	padding: 8px 10px;
	text-overflow: clip;
	white-space: nowrap;
}
.article-annotations-editor button.article-annotations-editor-close,
.article-annotations-editor button.anime-notes-modal-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	background-color: transparent;
	color: rgba(95, 74, 56, 0.42);
	font: inherit;
	font-size: 20px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	box-shadow: none;
	-webkit-box-shadow: none;
	border-radius: 0;
	outline: none;
	transform: none;
	text-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.article-annotations-editor button.article-annotations-editor-close:hover,
.article-annotations-editor button.article-annotations-editor-close:focus,
.article-annotations-editor button.article-annotations-editor-close:active,
.article-annotations-editor button.article-annotations-editor-close:focus-visible,
.article-annotations-editor button.anime-notes-modal-close:hover,
.article-annotations-editor button.anime-notes-modal-close:focus,
.article-annotations-editor button.anime-notes-modal-close:active,
.article-annotations-editor button.anime-notes-modal-close:focus-visible {
	border: 0;
	background: transparent;
	background-color: transparent;
	color: rgba(95, 74, 56, 0.75);
	box-shadow: none;
	-webkit-box-shadow: none;
	border-radius: 0;
	outline: none;
	transform: none;
	text-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.article-annotations-editor-textarea,
.article-annotations-edit-textarea,
.anime-notes-textarea {
	border: 1px solid rgba(120, 92, 55, 0.28);
	background: #fffefa;
	border-radius: 6px;
	box-sizing: border-box;
	color: #3f3328;
	font: inherit;
	min-height: 96px;
	padding: 10px;
	resize: vertical;
	width: 100%;
}

.article-annotations-editor-textarea:focus,
.article-annotations-edit-textarea:focus,
.anime-notes-textarea:focus {
	border-color: rgba(120, 92, 55, 0.55);
	box-shadow: 0 0 0 2px rgba(196, 156, 96, 0.12);
	outline: none;
}

.article-annotations-visibility-control,
.anime-notes-visibility-control {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: flex-start;
	margin-top: 0;
	min-width: 0;
	user-select: none;
}

.article-annotations-visibility-options,
.anime-notes-visibility-options {
	display: inline-flex;
	gap: 6px;
}

.article-annotations-visibility-option,
.anime-notes-visibility-option {
	border: 1px solid rgba(120, 92, 55, 0.24);
	background: transparent;
	border-radius: 999px;
	color: #6f4e2f;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	padding: 6px 9px;
}

.article-annotations-visibility-option.is-selected,
.anime-notes-visibility-option.is-selected {
	background: #f5ead0;
	border-color: rgba(120, 92, 55, 0.42);
	color: #3f3328;
}

.article-annotations-visibility-option:focus,
.anime-notes-visibility-option:focus {
	border-color: rgba(120, 92, 55, 0.55);
	box-shadow: 0 0 0 2px rgba(196, 156, 96, 0.12);
	outline: none;
}

.article-annotations-visibility-hint,
.anime-notes-visibility-hint {
	color: #7a6048;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
	max-width: 260px;
}

.article-annotations-login-hint {
	background: #fff7e6;
	border-radius: 6px;
	color: #7a4b00;
	margin: 12px 0 0;
	padding: 8px 10px;
}

.article-annotations-editor-actions {
	align-items: flex-end;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 14px;
}
.article-annotations-submit-button {
	min-width: 84px;
}
.article-annotations-primary-button.anime-notes-submit,
.anime-notes-submit {
	background: #f2dc7a;
	color: #3f3328;
	border: 0;
	border-radius: 6px;
}
.article-annotations-primary-button.anime-notes-submit:hover,
.article-annotations-primary-button.anime-notes-submit:focus,
.anime-notes-submit:hover,
.anime-notes-submit:focus {
	background: #ead16b;
	box-shadow: 0 0 0 2px rgba(196, 156, 96, 0.14);
	outline: none;
}

.article-annotations-editor .article-annotations-secondary-button,
.article-annotations-detail-panel .article-annotations-secondary-button {
	background: #eef1f4;
	color: #1f2933;
}

.article-annotations-detail-field {
	border-top: 1px solid rgba(31, 41, 51, 0.1);
	padding: 10px 0;
}

.article-annotations-detail-label {
	color: #64748b;
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
}

.article-annotations-detail-field p {
	margin: 0;
	white-space: pre-wrap;
}

.article-annotations-notice {
	background: #1f2933;
	border-radius: 8px;
	bottom: 20px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
	color: #ffffff;
	font-size: 14px;
	left: 50%;
	max-width: min(420px, calc(100vw - 32px));
	padding: 10px 14px;
	position: fixed;
	transform: translateX(-50%);
	z-index: 100000;
}

.article-annotations-notice-success {
	background: #285943;
}

.article-annotations-notice-error {
	background: #8a1f17;
}

@media (max-width: 600px) {
	.article-annotations-editor button.article-annotations-editor-close,
	.article-annotations-editor button.anime-notes-modal-close {
		width: 36px;
		height: 36px;
		line-height: 36px;
		font-size: 22px;
	}
}
@media (max-width: 680px) {
	.article-annotations-action-bar.article-annotations-mobile {
		border-radius: 999px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		box-sizing: border-box;
		justify-content: center;
		left: 50%;
		max-width: calc(100vw - 32px);
		overflow-x: hidden;
		padding: 6px 8px;
		top: auto;
		transform: translateX(-50%);
		width: auto;
	}

	.article-annotations-editor,
	.article-annotations-detail-panel {
		border-radius: 10px 10px 0 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		max-height: 70vh;
		max-width: none;
		overflow: hidden;
		right: 0;
		top: auto;
		width: 100%;
	}
}

@media print {
	.article-annotations-action-bar,
	.article-annotations-editor,
	.article-annotations-detail-panel,
	.article-annotations-preview,
	.article-annotations-notice {
		display: none;
	}

	.article-annotations-mark {
		border-bottom-color: currentColor;
	}
}
.article-annotations-admin-filters {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 16px 0;
}

.article-annotations-admin-filters label {
	font-weight: 600;
}

.article-annotations-admin-table td,
.article-annotations-admin-table th {
	vertical-align: top;
}

.article-annotations-admin-action-form {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.article-annotations-status {
	border-radius: 999px;
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 5px 8px;
}

.article-annotations-status-pending {
	background: #fff3cd;
	color: #7a4b00;
}

.article-annotations-status-approved {
	background: #d7f4e4;
	color: #135f3d;
}

.article-annotations-status-rejected {
	background: #fde2e2;
	color: #8a1f17;
}

.article-annotations-status-deleted {
	background: #e5e7eb;
	color: #4b5563;
}

.article-annotations-status-active {
	background: #e0f2fe;
	color: #075985;
}
.article-annotations-action-bar,
.article-annotations-editor,
.article-annotations-detail-panel,
.article-annotations-preview,
.article-annotations-notice,
.article-annotations-editor *,
.article-annotations-detail-panel *,
.article-annotations-preview * {
	box-sizing: border-box;
}

body.admin-bar .article-annotations-editor,
body.admin-bar .article-annotations-detail-panel {
	top: 124px;
}

.article-annotations-settings-table th,
.article-annotations-settings-table td {
	vertical-align: top;
}

.article-annotations-post-types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	max-width: 720px;
}

.article-annotations-post-type-option {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

.article-annotations-setting-description {
	max-width: 680px;
}

.article-annotations-danger-note {
	background: #fff7e6;
	border-left: 4px solid #b42318;
	color: #4b2f00;
	margin: 10px 0 0;
	max-width: 720px;
	padding: 8px 10px;
}

@media (max-width: 600px) {
	.article-annotations-editor button.article-annotations-editor-close,
	.article-annotations-editor button.anime-notes-modal-close {
		width: 36px;
		height: 36px;
		line-height: 36px;
		font-size: 22px;
	}
}
@media (max-width: 680px) {
	.article-annotations-action-bar.article-annotations-mobile {
		border-radius: 999px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		box-sizing: border-box;
		justify-content: center;
		left: 50%;
		max-width: calc(100vw - 32px);
		overflow-x: hidden;
		padding: 6px 8px;
		top: auto;
		transform: translateX(-50%);
		width: auto;
	}
.article-annotations-action-button,
	.article-annotations-primary-button,
	.article-annotations-secondary-button,
	.article-annotations-danger-button {
		min-height: 44px;
	}

	.article-annotations-editor,
	.article-annotations-detail-panel {
		max-height: 76vh;
		overflow: hidden;
		padding-bottom: 12px;
	}

	.article-annotations-editor-selection {
	background: #f7f7f2;
	border-left: 3px solid #87986a;
	margin: 0 20px 12px 0;
	margin-right: 20px;
	overflow: hidden;
	padding: 8px 10px;
	text-overflow: clip;
	white-space: nowrap;
}

	.article-annotations-detail-note {
		flex: 1 1 auto;
		min-height: 0;
		overflow: auto;
	}

	.article-annotations-editor-textarea,
.article-annotations-edit-textarea {
	border: 1px solid rgba(31, 41, 51, 0.18);
	border-radius: 6px;
	box-sizing: border-box;
	font: inherit;
	min-height: 96px;
	padding: 10px;
	resize: vertical;
	width: 100%;
}

.article-annotations-editor-actions,
	.article-annotations-detail-actions {
		background: #ffffff;
		flex: 0 0 auto;
		margin-top: auto;
		padding-bottom: env(safe-area-inset-bottom);
		padding-top: 8px;
		position: static;
	}
}

@media (max-width: 480px) {
	.article-annotations-action-bar.article-annotations-mobile {
		max-width: calc(100vw - 24px);
	}

	.article-annotations-action-button {
		flex: 0 0 auto;
		padding-left: 7px;
		padding-right: 7px;
	}

	.article-annotations-editor,
	.article-annotations-detail-panel {
		font-size: 14px;
		max-height: 72vh;
		padding-left: 14px;
		padding-right: 14px;
	}

	.article-annotations-editor-selection {
	background: #f7f7f2;
	border-left: 3px solid #87986a;
	margin: 0 20px 12px 0;
	margin-right: 20px;
	overflow: hidden;
	padding: 8px 10px;
	text-overflow: clip;
	white-space: nowrap;
}

	.article-annotations-editor-textarea,
.article-annotations-edit-textarea {
	border: 1px solid rgba(31, 41, 51, 0.18);
	border-radius: 6px;
	box-sizing: border-box;
	font: inherit;
	min-height: 96px;
	padding: 10px;
	resize: vertical;
	width: 100%;
}

.article-annotations-editor-actions {
		align-items: center;
		flex-direction: row;
	}

	.article-annotations-danger-button {
		margin-left: 0;
		margin-top: 8px;
		width: 100%;
	}
}


@media (max-width: 600px) {
	.article-annotations-editor button.article-annotations-editor-close,
	.article-annotations-editor button.anime-notes-modal-close {
		width: 36px;
		height: 36px;
		line-height: 36px;
		font-size: 22px;
	}
}
@media (max-width: 680px) {
	.article-annotations-action-button.anime-notes-selection-button {
		min-height: 32px;
	}
}@media (max-width: 820px) and (orientation: landscape) {
	.article-annotations-action-bar.article-annotations-mobile {
		border-radius: 999px;
		bottom: 12px;
		left: 50%;
		max-width: calc(100vw - 24px);
		padding: 6px 8px;
		transform: translateX(-50%);
		width: auto;
	}

	.article-annotations-editor,
	.article-annotations-detail-panel {
		border-radius: 8px;
		bottom: 12px;
		left: auto;
		max-height: calc(100vh - 24px);
		max-width: 380px;
		right: 12px;
		top: 12px;
		width: calc(100vw - 24px);
	}
}

@media (min-width: 681px) and (max-width: 1024px) {
	.article-annotations-action-bar {
		max-width: calc(100vw - 48px);
	}

	.article-annotations-editor,
	.article-annotations-detail-panel {
		max-width: 420px;
		right: 24px;
		top: 76px;
		width: calc(100vw - 48px);
	}

	body.admin-bar .article-annotations-editor,
	body.admin-bar .article-annotations-detail-panel {
		top: 108px;
	}
}
@media (max-width: 600px) {
	.article-annotations-editor button.article-annotations-editor-close,
	.article-annotations-editor button.anime-notes-modal-close {
		width: 36px;
		height: 36px;
		line-height: 36px;
		font-size: 22px;
	}
}
@media (max-width: 680px) {
	.article-annotations-editor.anime-notes-modal {
		background: #fffdf8;
	}

	.article-annotations-editor-selection.anime-notes-quote {
		background: #f7f4ed;
		border-left: 3px solid rgba(108, 134, 82, 0.75);
		color: #5f4a38;
	}

	.article-annotations-editor-textarea.anime-notes-textarea {
		border: 1px solid rgba(120, 92, 55, 0.28);
		background: #fffefa;
		color: #3f3328;
	}

	.article-annotations-editor-actions {
		background: #fffdf8;
	}
}