.rcc {
	--rcc-accent: #9AC72C;
	font-family: ui-sans-serif, "Manrope", "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	color: #111;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 18px 18px 28px;
	border-radius: 22px;
	background:
		radial-gradient(1200px 400px at 10% 0%, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0) 60%),
		radial-gradient(900px 340px at 90% 0%, rgba(124, 58, 237, 0.10), rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.65));
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.rcc,
.rcc * {
	box-sizing: border-box;
}

.rcc--bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	padding-left: max(18px, env(safe-area-inset-left));
	padding-right: max(18px, env(safe-area-inset-right));
	overflow-x: clip;
}

.rcc__hero {
	padding: 14px 0 8px;
}

.rcc__title {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.rcc__subtitle {
	margin: 0;
	opacity: 0.75;
	font-size: 14px;
}

.rcc__tabs {
	display: flex;
	gap: 14px;
	align-items: flex-end;
	margin: 0 0 16px;
	padding: 14px 2px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.rcc__back {
	display: none;
	width: fit-content;
	margin: 6px 0 10px;
	text-decoration: none;
	font-weight: 800;
	color: #111;
	border-radius: 10px;
	padding: 8px 10px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(6px);
}

.rcc__back:hover {
	border-color: var(--rcc-accent);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.rcc--family .rcc__tabs {
	display: none;
}

.rcc--family .rcc__back {
	display: inline-flex;
}

.rcc__layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.rcc__sidebar {
	position: sticky;
	top: max(13vh, 16px);
	align-self: start;
	padding: 14px 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(6px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.rcc__sidebar-title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
	margin: 0 0 12px;
}

.rcc__filter summary::after {
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	background: rgba(255, 255, 255, 0.7);
}

.rcc__check:hover {
	background: rgba(154, 199, 44, 0.10);
	border-radius: 10px;
	padding: 6px 8px;
	margin-left: -8px;
	margin-right: -8px;
}

.rcc__filter {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding: 10px 0;
}

.rcc__filter:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.rcc__filter summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.9;
}

.rcc__filter summary::-webkit-details-marker {
	display: none;
}

.rcc__filter summary::after {
	content: "+";
	font-weight: 900;
	opacity: 0.6;
}

.rcc__filter[open] summary::after {
	content: "–";
}

.rcc__filter-options {
	margin-top: 10px;
	display: grid;
	gap: 8px;
}

.rcc__check {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 13px;
}

.rcc__check input {
	width: 16px;
	height: 16px;
}

.rcc__main {
	min-width: 0;
}

.rcc__tab {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	min-width: 140px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(6px);
	transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
	flex: 0 0 auto;
}

.rcc__tab:focus-visible,
.rcc__card:focus-visible,
.rcc__load-more:focus-visible,
.rcc__search input[type="search"]:focus-visible {
	outline: 2px solid var(--rcc-accent);
	outline-offset: 2px;
}

.rcc__tab:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.rcc__tab[aria-selected="true"] {
	border-color: color-mix(in srgb, var(--rcc-accent) 55%, transparent);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--rcc-accent) 22%, transparent);
}

.rcc__tab[aria-selected="true"]::after {
	content: "";
	display: block;
	width: 70%;
	height: 3px;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--rcc-accent), #7c3aed);
	margin-top: 4px;
}

.rcc__swatches {
	display: inline-flex;
	width: 132px;
	height: 22px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.10);
}

.rcc__swatch {
	flex: 1 1 auto;
}

.rcc__tab-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.85;
}

.rcc__toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 0 16px;
}

.rcc__search input[type="search"] {
	width: min(520px, 100%);
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	font-weight: 650;
}

.rcc__section-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px;
}

.rcc__recent {
	margin: 0 0 18px;
}

.rcc__recent-grid,
.rcc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	align-items: stretch;
}

.rcc__card {
	display: grid;
	gap: 12px;
	align-content: start;
	color: inherit;
	border-radius: 14px;
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 120ms ease;
	overflow: hidden;
	width: 100%;
	min-width: 0;
}

.rcc__card:hover,
.rcc__card:active,
.rcc__card:focus {
	background: #fff;
}

.rcc--all .rcc__card:hover,
.rcc--all .rcc__card:active,
.rcc--all .rcc__card:focus {
	background: rgba(243, 244, 246, 0.95);
}

.rcc__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
	border-color: color-mix(in srgb, var(--rcc-accent) 55%, rgba(0, 0, 0, 0.08));
}

.rcc__card:focus-visible {
	border-color: var(--rcc-accent);
}

.rcc__swatchbox {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	display: block;
	max-width: 100%;
	position: relative;
	overflow: hidden;
}

.rcc__overlay {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: none;
	flex-direction: column;
	gap: 2px;
	padding: 10px 10px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
	background: linear-gradient(180deg, rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.20));
	color: #fff;
}

.rcc__ov-name {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rcc__ov-code {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.02em;
}

.rcc__card[data-rcc-text="dark"] .rcc__overlay {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
	border-color: rgba(0, 0, 0, 0.06);
	color: #111827;
}

.rcc__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rcc__code {
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.rcc__hex {
	font-size: 11px;
	letter-spacing: 0.02em;
	opacity: 0.72;
}

.rcc__nameRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.rcc__name {
	font-size: 12px;
	opacity: 0.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rcc__arrow {
	opacity: 0.65;
	font-size: 14px;
	line-height: 1;
	flex: 0 0 auto;
}

.rcc__fav {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(0, 0, 0, 0.10);
	color: rgba(17, 24, 39, 0.75);
	backdrop-filter: blur(8px);
}

.rcc__footer {
	margin-top: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.rcc__load-more {
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	cursor: pointer;
	color: #111;
	font-weight: 800;
}

.rcc__load-more:hover {
	border-color: var(--rcc-accent);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.rcc__status {
	font-size: 12px;
	opacity: 0.75;
}

.rcc__toast {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(17, 24, 39, 0.92);
	color: #fff;
	font-size: 13px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
	max-width: min(420px, calc(100vw - 32px));
}

.rcc--all .rcc__hero {
	display: none;
}

.rcc--all {
	background:
		radial-gradient(900px 360px at 20% 0%, rgba(16, 185, 129, 0.10), rgba(255, 255, 255, 0) 60%),
		radial-gradient(900px 360px at 80% 0%, rgba(245, 158, 11, 0.10), rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
}

.rcc--all .rcc__grid {
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 14px;
}

.rcc--all .rcc__card {
	padding: 10px;
	border-radius: 18px;
	border-color: rgba(0, 0, 0, 0.06);
	background: rgba(243, 244, 246, 0.95);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
	transition: transform 140ms ease, box-shadow 140ms ease;
	height: 160px;
	grid-template-rows: 1fr auto;
}

.rcc--all .rcc__swatchbox {
	aspect-ratio: auto;
	height: 92px;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.rcc--all .rcc__overlay {
	display: none;
}

.rcc--all .rcc__fav {
	display: none;
}

.rcc--all .rcc__arrow {
	display: none;
}

.rcc--all .rcc__meta {
	gap: 4px;
	padding: 2px 2px 0;
	min-height: 48px;
}

.rcc--all .rcc__name {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.8;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.1;
	max-height: 2.2em;
}

.rcc--all .rcc__code {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.03em;
	line-height: 1.05;
}

.rcc--all .rcc__hex {
	font-size: 10px;
	opacity: 0.62;
	line-height: 1.05;
}

.rcc--all .rcc__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.10);
}

@media (max-width: 980px) {
	.rcc__layout {
		grid-template-columns: 1fr;
	}
	.rcc__sidebar {
		position: relative;
		top: auto;
	}
}
