.prompts-panel {
	background: #fff;
}

.prompts-panel-head {
	padding: 20px 16px 12px;
	background: #fff;
}

.prompts-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.prompts-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.prompts-search-icon {
	position: absolute;
	left: 14px;
	color: #9ca3af;
	font-size: 15px;
	line-height: 1;
	pointer-events: none;
	transition: color .2s ease;
}

.prompts-search-wrap.is-focused .prompts-search-icon {
	color: #3b82f6;
}

.prompts-search-input {
	width: 100%;
	height: 46px;
	padding: 0 40px 0 42px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	font-size: 15px;
	color: #111827;
	background: #f9fafb;
	outline: none;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.prompts-search-input:focus {
	border-color: #93c5fd;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.prompts-search-clear {
	position: absolute;
	right: 10px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #9ca3af;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.prompts-search-wrap.has-value .prompts-search-clear {
	display: inline-flex;
}

.prompts-search-clear:hover {
	background: #f3f4f6;
	color: #4b5563;
}

.prompts-cats-bar {
	padding: 0 16px 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.prompts-cats {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	min-width: max-content;
}

.prompts-cat-btn {
	flex: 0 0 auto;
	height: 34px;
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #4b5563;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.prompts-cat-btn:hover {
	border-color: #bfdbfe;
	color: #2563eb;
}

.prompts-cat-btn.is-active {
	background: #eff6ff;
	color: #2563eb;
	border-color: #93c5fd;
}

.prompts-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.prompts-item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
	overflow: hidden;
}

.prompts-item[open] {
	background: #fff;
	border-color: #bfdbfe;
}

.prompts-item summary {
	list-style: none;
	cursor: pointer;
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.prompts-item summary::-webkit-details-marker {
	display: none;
}

.prompts-item-main {
	min-width: 0;
	flex: 1;
}

.prompts-item-title {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	line-height: 1.4;
}

.prompts-item-sub {
	margin-top: 4px;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
}

.prompts-item-desc {
	margin-top: 8px;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.6;
}

.prompts-block-label {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
}

.prompts-item-image-wrap {
	margin-bottom: 12px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	background: #f3f4f6;
}

.prompts-item-image {
	display: block;
	width: 100%;
	max-height: 280px;
	object-fit: contain;
	background: #f8fafc;
}

.prompts-item-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding-top: 2px;
}

.prompts-item-tag {
	font-size: 11px;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #6b7280;
	white-space: nowrap;
}

.prompts-item-arrow {
	color: #9ca3af;
	font-size: 11px;
	transition: transform .2s ease;
}

.prompts-item[open] .prompts-item-arrow {
	transform: rotate(180deg);
}

.prompts-item-body {
	padding: 0 16px 16px;
}

.prompts-item-text {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	font-size: 13px;
	line-height: 1.7;
	color: #374151;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 280px;
	overflow: auto;
}

.prompts-item-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.prompts-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.prompts-copy-btn:hover {
	background: #dbeafe;
	border-color: #93c5fd;
}

.prompts-copy-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.prompts-item-status {
	margin: 0 0 10px;
	font-size: 13px;
	color: #6b7280;
}

.prompts-item-status.is-error {
	color: #dc2626;
}

.prompts-more-wrap {
	display: flex;
	justify-content: center;
	padding-top: 16px;
}

.prompts-more-wrap.hidden {
	display: none;
}

.prompts-more-btn {
	height: 40px;
	padding: 0 18px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 13px;
	cursor: pointer;
}

.prompts-more-btn:hover {
	border-color: #bfdbfe;
	color: #2563eb;
	background: #eff6ff;
}

@media (max-width: 640px) {
	.prompts-item summary {
		padding: 12px 14px;
	}

	.prompts-item-body {
		padding: 0 14px 14px;
	}

	.prompts-item-tag {
		display: none;
	}
}
