/* Another Pattern Voice - frontend

   Another Pattern Sound Effects v0.7.1 の frontend.css をベースにしています。
   効果音プラグインと同じ .ap-se-* クラスを使うことで、
   Another Pattern Site UI のテーマ／JA-EN切替、
   Another Pattern Gacha Ads の .ap-se-download 監視をそのまま利用します。
   ボイス固有の調整は末尾の .ap-vo-library セクションにまとめています。 */


.ap-se-library {
	--ap-se-red: #e60012;
	--ap-se-orange: #f58220;
	--ap-se-blue: #5794ca;
	--ap-se-blue-active: #cfe4f5;
	--ap-se-border: #d6dbe3;
	--ap-se-text: #20242c;
	--ap-se-muted: #6b7280;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	color: var(--ap-se-text) !important;
	color-scheme: light;
}

.ap-se-library *,
.ap-se-library *::before,
.ap-se-library *::after {
	box-sizing: border-box;
}

/* タブ */
.ap-se-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
}

.ap-se-tabs a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 108px;
	min-height: 44px;
	padding: 10px 22px !important;
	border: 1px solid var(--ap-se-border) !important;
	border-radius: 5px !important;
	background: #f3f4f6 !important;
	color: #272b33 !important;
	font-size: 14px;
	font-weight: 800 !important;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.ap-se-tabs a:hover,
.ap-se-tabs a:focus-visible,
.ap-se-tabs a.is-active {
	border-color: var(--ap-se-red) !important;
	background: var(--ap-se-red) !important;
	color: #fff !important;
	transform: translateY(-1px);
	outline: none;
}

.ap-se-list-title {
	margin: 0 0 14px !important;
	padding: 0 0 9px !important;
	border-bottom: 2px solid var(--ap-se-red);
	color: var(--ap-se-text) !important;
	font-size: clamp(21px, 2.2vw, 28px) !important;
	font-weight: 900 !important;
	line-height: 1.35;
}

/* 一覧は全端末で1列 */
.ap-se-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 16px;
	width: 100%;
}

/* =========================
   PC版（901px以上）
   左：編集UI / 右：DLパネル
   ========================= */
.ap-se-card {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 150px;
	grid-template-areas:
		"main download"
		"message download";
	gap: 8px 16px;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 14px !important;
	border: 1px solid var(--ap-se-border) !important;
	border-radius: 8px !important;
	background: #fff !important;
	box-shadow: 0 3px 12px rgba(20, 31, 50, .06) !important;
}

.ap-se-main {
	grid-area: main;
	min-width: 0;
}

/* PC上段：タイトル / お気に入り / 操作 */
.ap-se-toolbar {
	display: grid;
	grid-template-columns: minmax(190px, 1fr) 44px auto;
	gap: 9px;
	align-items: center;
	margin-bottom: 7px;
	min-width: 0;
}

.ap-se-title {
	overflow: hidden;
	margin: 0 !important;
	padding: 8px 11px !important;
	border: 1px solid #d26919 !important;
	border-radius: 5px !important;
	background: var(--ap-se-orange) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap-se-favorite {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px;
	padding: 0 !important;
	border: 1px solid #cfd4dc !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: #e4b700 !important;
	font-size: 28px !important;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}

.ap-se-favorite.is-active {
	background: #fff8cf !important;
	color: #e5ad00 !important;
}

.ap-se-controls {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.ap-se-speed,
.ap-se-toggle,
.ap-se-reset {
	min-height: 44px;
	border: 1px solid #cbd1da !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: #252a34 !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}

.ap-se-speed {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.ap-se-speed > span {
	padding: 0 9px;
}

.ap-se-speed select {
	height: 42px;
	min-width: 72px;
	padding: 0 7px;
	border: 0 !important;
	border-left: 1px solid #dde1e7 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #252a34 !important;
}

.ap-se-toggle,
.ap-se-reset {
	padding: 8px 12px !important;
	cursor: pointer;
	white-space: nowrap;
}

.ap-se-toggle span {
	font-weight: 800;
}

.ap-se-toggle.is-active {
	border-color: #75a7d1 !important;
	background: var(--ap-se-blue-active) !important;
}

/* PC下段：再生ボタン + 波形 */
.ap-se-player-row {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	min-width: 0;
}

.ap-se-play {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 56px !important;
	height: 64px !important;
	min-width: 56px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 5px !important;
	background: #17181c !important;
	color: #fff !important;
	font-size: 18px !important;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}

.ap-se-play:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.ap-se-wave-column {
	min-width: 0;
}

.ap-se-wave-shell {
	position: relative;
	min-width: 0;
	height: 68px;
	touch-action: none;
}

.ap-se-waveform {
	width: 100%;
	height: 64px;
}

.ap-se-waveform ::part(region) {
	border-left: 2px solid rgba(239, 68, 68, .70);
	border-right: 2px solid rgba(239, 68, 68, .70);
}

/* WaveSurferの再生カーソルは非表示。
   トリミング後に残る黒い縦線を出さない。 */
.ap-se-waveform ::part(cursor) {
	display: none !important;
	width: 0 !important;
	opacity: 0 !important;
}

/* Regionsの左右ハンドルが表示される環境では赤で統一 */
.ap-se-waveform ::part(region-handle-left),
.ap-se-waveform ::part(region-handle-right) {
	width: 3px !important;
	background: rgba(239, 68, 68, .88) !important;
}

.ap-se-fade-marker {
	position: absolute;
	z-index: 8;
	top: 4px;
	height: 56px;
	min-width: 8px;
	margin: 0;
	padding: 0;
	transform: none;
	background: rgba(75, 145, 205, .42);
	cursor: ew-resize;
	touch-action: none;
	user-select: none;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .20));
}

/* フェードイン：
   左下 → 右上へ伸びる青い三角。右端をドラッグして長さ変更 */
.ap-se-fade-in-marker {
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
	border-right: 2px solid rgba(37, 99, 235, .85);
}

/* フェードアウト：
   左上 → 右下へ伸びる青い三角。左端をドラッグして長さ変更 */
.ap-se-fade-out-marker {
	clip-path: polygon(0 0, 100% 100%, 0 100%);
	border-left: 2px solid rgba(37, 99, 235, .85);
}

/* ドラッグする境界を視認しやすくする */
.ap-se-fade-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 10px;
	background: rgba(37, 99, 235, .18);
	cursor: ew-resize;
	touch-action: none;
}

.ap-se-fade-in-marker .ap-se-fade-handle {
	right: 0;
}

.ap-se-fade-out-marker .ap-se-fade-handle {
	left: 0;
}

.ap-se-time {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	justify-content: center;
	margin-top: -1px;
	color: #555e6c !important;
	font-size: 12px !important;
	line-height: 1.2;
}

.ap-se-selection-time {
	margin-left: 8px;
	font-weight: 700;
}

/* 右側ダウンロード */
.ap-se-download-panel {
	grid-area: download;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding-left: 2px;
}

.ap-se-edit-status {
	color: #e00013 !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	line-height: 1.35;
}

.ap-se-download-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ap-se-download {
	min-width: 72px;
	min-height: 42px;
	padding: 8px 13px !important;
	border: 1px solid #28679d !important;
	border-radius: 6px !important;
	background: var(--ap-se-blue) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.ap-se-download:hover,
.ap-se-download:focus-visible {
	background: #397eb9 !important;
	outline: none;
}

.ap-se-download:disabled {
	border-color: #a9afb8 !important;
	background: #c5cad1 !important;
	cursor: not-allowed;
}

.ap-se-download-count {
	color: #343a45 !important;
	font-size: 12px !important;
	font-weight: 700;
}

.ap-se-message {
	grid-area: message;
	min-height: 18px;
	padding-left: 66px;
	color: #266b42 !important;
	font-size: 12px !important;
}

.ap-se-message.is-error {
	color: #c21e2c !important;
}

.ap-se-empty {
	padding: 18px;
	border: 1px solid var(--ap-se-border);
	border-radius: 7px;
	background: #f8f9fb;
	color: var(--ap-se-text) !important;
}

.ap-se-pagination {
	margin: 26px 0 0;
}

.ap-se-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ap-se-pagination a,
.ap-se-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 6px 10px;
	border: 1px solid #cbd1da;
	border-radius: 4px;
	background: #fff;
	color: #222 !important;
	text-decoration: none !important;
}

.ap-se-pagination .current {
	border-color: var(--ap-se-red);
	background: var(--ap-se-red);
	color: #fff !important;
}

/* 操作部が収まりにくい中間幅 */
@media (max-width: 1180px) and (min-width: 901px) {
	.ap-se-toolbar {
		grid-template-columns: minmax(170px, 1fr) 44px;
	}

	.ap-se-controls {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

/* =========================
   スマホ・タブレット版（900px以下）
   タイトル+星 → 再生+波形 → 操作 → DL
   ========================= */
@media (max-width: 900px) {
	.ap-se-card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"main"
			"download"
			"message";
		gap: 8px;
		padding: 11px !important;
	}

	.ap-se-toolbar {
		grid-template-columns: minmax(0, 1fr) 42px;
		gap: 7px;
		margin-bottom: 7px;
	}

	.ap-se-title {
		font-size: 13px !important;
		padding: 7px 9px !important;
	}

	.ap-se-favorite {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px;
		font-size: 25px !important;
	}

	.ap-se-controls {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		justify-content: stretch;
		order: 3;
	}

	.ap-se-speed,
	.ap-se-toggle,
	.ap-se-reset {
		width: 100%;
		min-width: 0;
		min-height: 42px;
		font-size: 11px !important;
	}

	.ap-se-speed {
		justify-content: center;
	}

	.ap-se-speed > span {
		padding: 0 5px;
	}

	.ap-se-speed select {
		min-width: 54px;
		padding: 0 4px;
	}

	.ap-se-toggle,
	.ap-se-reset {
		padding: 7px 5px !important;
		white-space: normal;
		line-height: 1.25;
	}

	.ap-se-reset {
		grid-column: 1 / 2;
	}

	.ap-se-player-row {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 7px;
	}

	.ap-se-play {
		width: 48px !important;
		height: 60px !important;
		min-width: 48px;
	}

	.ap-se-wave-shell {
		height: 62px;
	}

	.ap-se-waveform {
		height: 58px;
	}

	.ap-se-fade-marker {
		top: 4px;
		height: 50px;
		min-width: 10px;
	}

	.ap-se-time {
		font-size: 11px !important;
	}

	.ap-se-download-panel {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 7px 10px;
		padding: 0 0 0 55px;
	}

	.ap-se-edit-status {
		flex: 1 1 100%;
	}

	.ap-se-download-buttons {
		flex-direction: row;
		gap: 7px;
	}

	.ap-se-download {
		min-width: 62px;
		min-height: 40px;
	}

	.ap-se-message {
		padding-left: 55px;
	}
}

@media (max-width: 520px) {
	.ap-se-tabs {
		gap: 6px;
		margin-bottom: 18px;
	}

	.ap-se-tabs a {
		flex: 1 1 calc(33.333% - 6px);
		min-width: 0;
		min-height: 42px;
		padding: 9px 5px !important;
		font-size: 12px;
	}

	.ap-se-list-title {
		font-size: 21px !important;
	}

	.ap-se-grid {
		gap: 12px;
	}

	.ap-se-controls {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ap-se-download-panel {
		padding-left: 0;
	}

	.ap-se-message {
		padding-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-se-library * {
		transition: none !important;
	}
}


/* =========================================================
   v0.6.0 フィルター
   タブ直下：
   検索 / 音の主 / 行動 / 雰囲気 / お気に入り / 並び順 / 表示件数
   ========================================================= */

.ap-se-filter-panel {
	margin: 0 0 22px;
	padding: 15px;
	border: 1px solid rgba(0, 229, 255, .22);
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(15, 24, 45, .98), rgba(8, 18, 34, .98));
	box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.ap-se-filter-form {
	margin: 0;
}

.ap-se-search-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 86px;
	gap: 0;
	margin-bottom: 12px;
}

.ap-se-search-input {
	width: 100% !important;
	min-width: 0;
	min-height: 44px;
	margin: 0 !important;
	padding: 9px 13px !important;
	border: 1px solid rgba(255, 255, 255, .16) !important;
	border-right: 0 !important;
	border-radius: 7px 0 0 7px !important;
	background: rgba(2, 10, 20, .78) !important;
	color: #fff !important;
	font-size: 14px !important;
	outline: none !important;
}

.ap-se-search-input::placeholder {
	color: rgba(225, 236, 247, .52);
}

.ap-se-search-input:focus {
	border-color: #00e5ff !important;
	box-shadow: 0 0 0 3px rgba(0, 229, 255, .12) !important;
}

.ap-se-search-button {
	min-height: 44px;
	margin: 0 !important;
	padding: 8px 15px !important;
	border: 0 !important;
	border-radius: 0 7px 7px 0 !important;
	background: linear-gradient(135deg, #00e5ff, #8b5cff) !important;
	color: #061018 !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	cursor: pointer;
}

.ap-se-filter-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(130px, 1fr));
	gap: 10px;
	align-items: end;
}

.ap-se-filter-field {
	display: block;
	min-width: 0;
	margin: 0;
}

.ap-se-filter-field > span {
	display: block;
	margin: 0 0 5px;
	color: #bcd4e8;
	font-size: 12px;
	font-weight: 900;
}

.ap-se-filter-field select {
	width: 100%;
	min-width: 0;
	min-height: 40px;
	margin: 0;
	padding: 7px 28px 7px 10px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 6px;
	background-color: #fff;
	color: #1f2937;
	font-size: 13px;
	font-weight: 700;
}

.ap-se-filter-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 13px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, .10);
}

.ap-se-favorite-filter,
.ap-se-filter-reset {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin: 0 !important;
	padding: 7px 12px !important;
	border: 1px solid rgba(255, 255, 255, .16) !important;
	border-radius: 6px !important;
	background: rgba(255, 255, 255, .07) !important;
	color: #eaf6ff !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

.ap-se-favorite-filter {
	color: #ffd84d !important;
}

.ap-se-favorite-filter.is-active {
	border-color: rgba(255, 216, 77, .65) !important;
	background: rgba(255, 216, 77, .16) !important;
	box-shadow: 0 0 0 3px rgba(255, 216, 77, .08);
}

.ap-se-filter-reset {
	margin-left: auto !important;
}

.ap-se-per-page {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	color: #c8d7e6;
	font-size: 12px;
}

.ap-se-per-page-label {
	font-weight: 900;
}

.ap-se-per-page a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	padding: 2px 3px;
	color: #00e5ff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.ap-se-per-page a:hover {
	color: #fff !important;
	text-decoration: underline !important;
}

.ap-se-per-page a.is-active {
	color: #fff !important;
	font-weight: 900;
	text-decoration: none !important;
}

.ap-se-per-page-separator {
	opacity: .48;
}

.ap-se-list-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
}

.ap-se-list-heading-row .ap-se-list-title {
	flex: 1 1 auto;
	margin: 0 !important;
}

.ap-se-result-count {
	flex: 0 0 auto;
	color: #c4d5e4;
	font-size: 13px;
	font-weight: 900;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.ap-se-filter-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-se-filter-reset {
		margin-left: 0 !important;
	}
}

@media (max-width: 560px) {
	.ap-se-filter-panel {
		padding: 11px;
	}

	.ap-se-search-row {
		grid-template-columns: minmax(0, 1fr) 68px;
	}

	.ap-se-search-button {
		padding-inline: 8px !important;
	}

	.ap-se-filter-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.ap-se-filter-bottom {
		align-items: stretch;
		gap: 9px;
	}

	.ap-se-favorite-filter,
	.ap-se-filter-reset {
		width: 100%;
		min-height: 42px;
	}

	.ap-se-per-page {
		width: 100%;
		justify-content: center;
		padding: 3px 0;
	}

	.ap-se-list-heading-row {
		align-items: baseline;
	}

	.ap-se-result-count {
		font-size: 12px;
	}
}


/* =========================================================
   ボイス固有の調整
   ========================================================= */

/* セリフ：タイトルの下に1行で表示する。 */
.ap-vo-library .ap-vo-serif {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	margin: 0 0 7px !important;
	padding: 7px 11px !important;
	border-left: 4px solid var(--ap-se-orange);
	border-radius: 0 5px 5px 0;
	background: #f7f8fa;
	color: #20242c !important;
	font-size: 14px !important;
	line-height: 1.45;
}

.ap-vo-library .ap-vo-serif-text {
	font-weight: 700;
}

.ap-vo-library .ap-vo-serif-text::before {
	content: '「';
}

.ap-vo-library .ap-vo-serif-text::after {
	content: '」';
}

.ap-vo-library .ap-vo-serif-kana {
	color: #6b7280 !important;
	font-size: 12px !important;
}

/* モデルフィルターを隠した場合は3カラムに詰める。 */
.ap-vo-library .ap-vo-filter-row-compact {
	grid-template-columns: repeat(3, minmax(130px, 1fr));
}

@media (max-width: 900px) {
	.ap-vo-library .ap-vo-filter-row-compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-vo-library .ap-vo-serif {
		font-size: 13px !important;
		padding: 6px 9px !important;
	}
}

@media (max-width: 560px) {
	.ap-vo-library .ap-vo-filter-row-compact {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Site UI のダークテーマに追従させる。 */
html[data-ap-theme="dark"] body.ap-site-ui-enabled .ap-vo-library .ap-vo-serif {
	border-left-color: var(--ap-dark-primary, #00d9ff);
	background: var(--ap-dark-surface-2, #111d30);
	color: var(--ap-dark-text, #f4f7ff) !important;
}

html[data-ap-theme="dark"] body.ap-site-ui-enabled .ap-vo-library .ap-vo-serif-kana {
	color: var(--ap-dark-muted, #91a0b7) !important;
}


/* =========================================================
   分類コンボボックス
   セリフのように語数が多い分類（約2万件）は
   <select>ではなく入力して検索する形にする。
   ========================================================= */

.ap-vo-library .ap-vo-combo-field {
	position: relative;
}

.ap-vo-library .ap-vo-combo-label {
	display: block;
	margin: 0;
}

.ap-vo-library .ap-vo-combo {
	position: relative;
}

/* .ap-se-filter-field select と見た目を揃える */
.ap-vo-library .ap-vo-combo-input {
	width: 100%;
	min-width: 0;
	min-height: 40px;
	margin: 0;
	padding: 7px 30px 7px 10px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 6px;
	background-color: #fff;
	color: #1f2937;
	font-size: 13px;
	font-weight: 700;
}

.ap-vo-library .ap-vo-combo-input::placeholder {
	color: #94a3b8;
	font-weight: 500;
}

.ap-vo-library .ap-vo-combo-input:focus {
	border-color: #00e5ff;
	box-shadow: 0 0 0 3px rgba(0, 229, 255, .12);
	outline: none;
}

.ap-vo-library .ap-vo-combo-clear {
	position: absolute;
	top: 50%;
	right: 4px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #e2e8f0 !important;
	color: #334155 !important;
	font-size: 14px !important;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: none !important;
}

.ap-vo-library .ap-vo-combo-clear:hover {
	background: #cbd5e1 !important;
}

.ap-vo-library .ap-vo-combo-list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	max-height: 280px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}

.ap-vo-library .ap-vo-combo-option {
	margin: 0;
	padding: 8px 10px;
	border-radius: 5px;
	color: #1f2937;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
}

.ap-vo-library .ap-vo-combo-option:hover,
.ap-vo-library .ap-vo-combo-option.is-active {
	background: #e0f2fe;
}

.ap-vo-library .ap-vo-combo-status {
	margin: 0;
	padding: 8px 10px;
	color: #64748b;
	font-size: 12px;
}

/* Site UI のダークテーマに追従させる。 */
html[data-ap-theme="dark"] body.ap-site-ui-enabled .ap-vo-library .ap-vo-combo-list {
	border-color: var(--ap-dark-border, #17445e);
	background: var(--ap-dark-surface, #0b1625);
}

html[data-ap-theme="dark"] body.ap-site-ui-enabled .ap-vo-library .ap-vo-combo-option {
	color: var(--ap-dark-text, #f4f7ff);
}

html[data-ap-theme="dark"] body.ap-site-ui-enabled .ap-vo-library .ap-vo-combo-option:hover,
html[data-ap-theme="dark"] body.ap-site-ui-enabled .ap-vo-library .ap-vo-combo-option.is-active {
	background: var(--ap-dark-surface-2, #111d30);
}

html[data-ap-theme="dark"] body.ap-site-ui-enabled .ap-vo-library .ap-vo-combo-status {
	color: var(--ap-dark-muted, #91a0b7);
}
