:root {
	--curafile-ink: #0b1220;
	--curafile-muted: rgba(11, 18, 32, 0.62);
	--curafile-border: rgba(11, 18, 32, 0.08);
	--curafile-surface: rgba(255, 255, 255, 0.88);
	--curafile-surface-strong: #ffffff;
	--curafile-bg: radial-gradient(circle at 15% 10%, rgba(47, 111, 237, 0.14), transparent 42%),
		radial-gradient(circle at 90% 20%, rgba(111, 169, 255, 0.20), transparent 55%),
		linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
	--curafile-accent: #2f6fed;
	--curafile-accent-soft: rgba(47, 111, 237, 0.14);
	--curafile-shadow: 0 24px 90px rgba(8, 19, 44, 0.20);
	--curafile-radius-lg: 24px;
	--curafile-radius-md: 18px;
	--curafile-radius-sm: 14px;
	--curafile-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.curafile-srOnly {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

.curafile-overlay-trigger .curafile-overlay-open {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--curafile-border);
	background: rgba(255, 255, 255, 0.8);
	border-radius: 999px;
	padding: 10px 14px;
	cursor: pointer;
	color: var(--curafile-ink);
	font-family: var(--curafile-font);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	box-shadow: 0 10px 24px rgba(8, 19, 44, 0.08);
}

.curafile-overlay-trigger .curafile-overlay-open:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(8, 19, 44, 0.12);
	background: rgba(255, 255, 255, 0.95);
}

.curafile-overlay-open__icon,
.curafile-searchBox__icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	border-radius: 50%;
	background:
		radial-gradient(circle at 45% 45%, var(--curafile-accent) 0 35%, transparent 36%),
		conic-gradient(from 220deg, rgba(47, 111, 237, 0.6), rgba(47, 111, 237, 0.05));
}

.curafile-overlay-open__label {
	font-size: 14px;
	font-weight: 600;
}

.curafile-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.curafile-overlay.is-open {
	display: block;
}

.curafile-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 12, 22, 0.55);
	backdrop-filter: blur(10px);
	animation: curafile-fade-in 0.18s ease both;
}

.curafile-overlay__panel {
	position: relative;
	margin: min(7vh, 54px) auto 0;
	width: min(980px, calc(100% - 28px));
	max-height: calc(100vh - 56px);
	display: flex;
	flex-direction: column;
	background: var(--curafile-bg);
	border-radius: 28px;
	box-shadow: var(--curafile-shadow);
	border: 1px solid rgba(255, 255, 255, 0.25);
	overflow: hidden;
	animation: curafile-pop 0.22s ease both;
	font-family: var(--curafile-font);
}

.curafile-overlay__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 18px 14px;
	gap: 14px;
}

.curafile-overlay__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.curafile-overlay__logo {
	width: 48px;
	height: 48px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--curafile-accent);
	background: rgba(255, 255, 255, 0.65);
	border: 1px dashed rgba(47, 111, 237, 0.35);
}

.curafile-overlay__brandTitle {
	font-size: 16px;
	font-weight: 700;
	color: var(--curafile-ink);
	line-height: 1.1;
}

.curafile-overlay__brandHint {
	font-size: 13px;
	color: var(--curafile-muted);
	margin-top: 2px;
}

.curafile-overlay__close {
	border: 1px solid rgba(11, 18, 32, 0.12);
	background: rgba(255, 255, 255, 0.66);
	border-radius: 999px;
	padding: 8px 12px;
	cursor: pointer;
	font-weight: 600;
	color: var(--curafile-ink);
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.curafile-overlay__close:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.92);
}

.curafile-overlay__search {
	padding: 0 18px 16px;
}

.curafile-searchBox {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(11, 18, 32, 0.10);
	border-radius: 18px;
	padding: 12px 14px;
	box-shadow: 0 16px 40px rgba(8, 19, 44, 0.10);
}

.curafile-searchBox__input {
	border: 0;
	outline: none;
	background: transparent;
	width: 100%;
	font-size: 16px;
	font-weight: 600;
	color: var(--curafile-ink);
}

.curafile-searchBox__input::placeholder {
	color: rgba(11, 18, 32, 0.42);
	font-weight: 600;
}

.curafile-searchBox__spinner {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 2px solid rgba(47, 111, 237, 0.24);
	border-top-color: var(--curafile-accent);
	opacity: 0;
	transform: scale(0.92);
	transition: opacity 0.18s ease;
	animation: curafile-spin 0.75s linear infinite;
}

.curafile-searchBox__spinner.is-on {
	opacity: 1;
}

.curafile-overlay__meta {
	margin-top: 10px;
	font-size: 13px;
	color: var(--curafile-muted);
}

.curafile-overlay__results {
	padding: 0 18px 18px;
	overflow: auto;
}

.curafile-overlay__empty {
	padding: 18px;
	border-radius: var(--curafile-radius-lg);
	border: 1px solid rgba(11, 18, 32, 0.08);
	background: rgba(255, 255, 255, 0.65);
	color: var(--curafile-muted);
}

.curafile-groups {
	display: grid;
	gap: 14px;
}

.curafile-group {
	background: rgba(255, 255, 255, 0.66);
	border: 1px solid rgba(11, 18, 32, 0.08);
	border-radius: 22px;
	overflow: hidden;
}

.curafile-group__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.54);
}

.curafile-group__title {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 800;
	color: rgba(11, 18, 32, 0.70);
}

.curafile-group__count {
	font-size: 12px;
	font-weight: 700;
	color: rgba(11, 18, 32, 0.46);
}

.curafile-items {
	display: grid;
}

.curafile-item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding: 14px 16px;
	color: var(--curafile-ink);
	text-decoration: none;
	border-top: 1px solid rgba(11, 18, 32, 0.06);
	transition: background-color 0.14s ease;
}

.curafile-item:first-child {
	border-top: 0;
}

.curafile-item:hover {
	background: rgba(47, 111, 237, 0.08);
}

.curafile-item__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.curafile-item__excerpt {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--curafile-muted);
}

.curafile-item__meta {
	font-size: 12px;
	font-weight: 700;
	color: rgba(47, 111, 237, 0.80);
	align-self: start;
}

.curafile-mark {
	background: rgba(255, 182, 72, 0.32);
	color: inherit;
	padding: 0 2px;
	border-radius: 6px;
}

.curafile-skeleton {
	padding: 16px;
	display: grid;
	gap: 10px;
}

.curafile-skelLine {
	height: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(11, 18, 32, 0.08), rgba(11, 18, 32, 0.04), rgba(11, 18, 32, 0.08));
	background-size: 200% 100%;
	animation: curafile-shimmer 1.05s ease infinite;
}

.curafile-skelLine.is-wide {
	height: 14px;
}

.curafile-overlay__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 14px 18px 18px;
	border-top: 1px solid rgba(11, 18, 32, 0.08);
	background: rgba(255, 255, 255, 0.42);
}

.curafile-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(11, 18, 32, 0.08);
	color: rgba(11, 18, 32, 0.74);
	font-size: 12px;
	font-weight: 800;
}

.curafile-overlay__footerText {
	font-size: 12px;
	color: rgba(11, 18, 32, 0.52);
	margin: 0 6px;
	font-weight: 700;
}

.curafile-overlay__footerLink {
	font-size: 13px;
	font-weight: 800;
	color: var(--curafile-accent);
	text-decoration: none;
}

.curafile-overlay__footerLink:hover {
	text-decoration: underline;
}

@keyframes curafile-spin {
	to { transform: rotate(360deg); }
}

@keyframes curafile-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes curafile-pop {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes curafile-shimmer {
	0% { background-position: 0% 0%; }
	100% { background-position: 200% 0%; }
}

@media (max-width: 782px) {
	.curafile-overlay__panel {
		margin: 0;
		width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.curafile-overlay__footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

