@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

:root {
	--background-color: #0c0c0c;
	--hover-background-color: #19191921;
	--input-background-color: #0a0a0a;
	--input-hover-background-color: #0a0a0a7d;
	--tab-bg-color: #323232;
	--tab-active-bg-color: #5a5a5a;
	--utility-background-color: #323232;
	--dark-translucent-bg: #5050506e;

	--border-color: #5a5a5a;

	--text-color: #b2b2b2;
	--hover-text-color: #b2b2b2cc;
	--active-text-color: gray;

	--tab-content-margin: 9px;
	--searchbar-width: calc(100% - calc(2 * 36px));

	--main-color: #c77dff;
	--muted: gray;
	--faded-main-color: #80808042;

	--radius: 0.625rem;
	--card: #0f0f0f;
	--popover: #1c1c1c;
	--accent: #2b2b2b;
	--muted-foreground: #a1a1a1;
	--white-05: color-mix(in oklab, var(--text-color) 5%, transparent);
	--white-08: color-mix(in oklab, var(--text-color) 8%, transparent);
	--white-10: color-mix(in oklab, var(--text-color) 10%, transparent);
	--white-20: color-mix(in oklab, var(--text-color) 20%, transparent);
	--error: #f38ba8;
	--scrollbar-thumb: #ffffff4d;

	color-scheme: dark;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	cursor: text;
}

input[type="text"] {
	font-size: 14px;
	padding: 5px 10px;
	outline: none;
	border: none;
	background: transparent;
	color: var(--text-color);
	transition: 0.2s ease;
	border: var(--border-color) 1px solid;
	border-radius: 9999px;
	font-family: "Plus Jakarta Sans";
}
input[type="text"]:hover {
	background: var(--input-hover-background-color) !important;
	color: var(--hover-text-color) !important;
}

input[type="text"]:focus {
	background: var(--input-background-color) !important;
	color: var(--active-text-color) !important;
	border-color: var(--active-border-color) !important;
}

input[type="text"]::placeholder {
	color: var(--text-color) !important;
	font-family: "Plus Jakarta Sans" !important;
}

body {
	margin: 0;
	font-family: Plus Jakarta Sans;
	background-color: var(--background-color);
	color: var(--text-color);
}
.material-symbols-outlined {
	cursor: pointer;
}
.unclickable {
	cursor: default;
}
.surface {
	box-sizing: border-box;
	display: flex;
	width: calc(100% - calc(2em + 10px));
	right: 0;
	flex-direction: column;
	justify-content: center;
	position: fixed;
	transition: width 0.5s ease-in-out;
	height: 100%;
}

.surface.autohide {
	width: calc(100%);
	transition: width 0.5s ease-in-out;
}

.context-menu {
	position: absolute;
	display: none;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	padding: 5px;
}

.context-menu div {
	padding: 5px;
	cursor: pointer;
	color: var(--text-color);
}

.context-menu div:hover {
	background-color: var(--button-hover-bg-color);
}

.material-symbols-outlined {
	position: static !important;
}

.glitch {
	position: sticky;
	font-size: 50px;
	font-weight: bold;
	letter-spacing: 3px;
	z-index: 4;
	color: var(--text-color);
	text-align: center;
	margin: 0;
	z-index: 2;
}

.glitch:before,
.glitch:after {
	display: block;
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.8;
}

.glitch:before {
	animation: glitch-it 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
	color: #9a16ff;
	z-index: -1;
}

.glitch:after {
	animation: glitch-it 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both
		infinite;
	color: #19ffc9;
	z-index: -2;
}

@keyframes glitch-it {
	0% {
		transform: translate(0);
	}

	20% {
		transform: translate(-3px, 3px);
	}

	40% {
		transform: translate(-3px, -3px);
	}

	60% {
		transform: translate(3px, 3px);
	}

	80% {
		transform: translate(3px, -3px);
	}

	to {
		transform: translate(0);
	}
}

@-webkit-keyframes tilt-in-left-1 {
	0% {
		-webkit-transform: rotateX(-30deg) translateX(-300px) skewX(-30deg);
		transform: rotateX(-30deg) translateX(-300px) skewX(-30deg);
		opacity: 0;
	}
	100% {
		-webkit-transform: rotateX(0deg) translateX(0) skewX(0deg);
		transform: rotateX(0deg) translateX(0) skewX(0deg);
		opacity: 1;
	}
}
@keyframes tilt-in-left-1 {
	0% {
		-webkit-transform: rotateX(-30deg) translateX(-300px) skewX(-30deg);
		transform: rotateX(-30deg) translateX(-300px) skewX(-30deg);
		opacity: 0;
	}
	100% {
		-webkit-transform: rotateX(0deg) translateX(0) skewX(0deg);
		transform: rotateX(0deg) translateX(0) skewX(0deg);
		opacity: 1;
	}
}
.tilt-in-left-1 {
	-webkit-animation: tilt-in-left-1 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94)
		both;
	animation: tilt-in-left-1 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.title404 {
	font-size: 160px;
	font-weight: bold;
	letter-spacing: 3px;
	z-index: 4;
	color: var(--text-color);
	text-align: center;
	margin: 0;
	z-index: 2;
}

*::-webkit-scrollbar {
	height: 6px;
	width: 6px;
}

*::-webkit-scrollbar-track {
	background-color: transparent;
}

*::-webkit-scrollbar-thumb {
	border-radius: 6px;
	background-color: var(--scrollbar-thumb);
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--muted-foreground);
}

* {
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) transparent;
}

.tabs {
	box-sizing: border-box;
	position: relative;
	font-size: 12px;
	height: 46px;
	padding: 8px 3px 4px 3px;
	background: var(--background-color);
	border-radius: 5px 5px 0 0;
	overflow: hidden;
	display: grid;
	transition:
		width 0.5s ease,
		height 0.5s ease,
		position 0.5s ease;
}

.tabs * {
	box-sizing: inherit;
}

.tabs .bottom-buttons {
	display: none;
	opacity: 0;
	align-items: center;
	align-content: center;
	flex-direction: row;
	gap: 5px;
	transition: opacity 0.5s ease;
	align-self: center;
}

.tabs-content {
	position: relative;
	width: calc(100% - 54px);
	height: 100%;
	gap: 5px;
	transition: width 0.5s ease;
}

.tab {
	position: absolute;
	left: 0;
	height: 36px;
	width: 240px;
	border: 0;
	margin: 0;
	z-index: 1;
	pointer-events: none;
	user-select: none;
	cursor: default;
	display: flex;
	flex-direction: column;
	transition:
		position 0.5s ease,
		width 0.3s ease;
}

.tab-background {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: var(--tab-bg-color);
	pointer-events: none;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	padding-bottom: 2px;
	border-width: 1px;
	border-style: solid;
	border-top-color: var(--main-color);
	border-left-color: var(--main-color);
	border-right-color: var(--main-color);

	border-bottom: 1px solid var(--border-color);
}

.tab:has(.active) .tab-background {
	background-color: var(--tab-active-bg-color);
	border-bottom: 4px solid var(--tab-active-bg-color);
	z-index: 3;
	opacity: 1;
}

.tab:not(.active) .tab-background {
	background-color: var(--tab-bg-color);
	border-bottom: 4px solid var(--tab-bg-color);
	transition: opacity 0.2s ease;
	opacity: 0;
}

@media (hover: hover) {
	.tab:not(.active):hover {
		z-index: 2;
	}

	.tab:not(.active):hover .tab-background {
		opacity: 1;
	}
}

.tab-content {
	position: absolute;
	display: flex;
	top: 0;
	bottom: 0;
	left: var(--tab-content-margin);
	right: var(--tab-content-margin);
	padding: 9px 8px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	overflow: hidden;
	pointer-events: all;
	align-content: center;
	align-items: center;
}

.tab-mini .tab-content {
	padding-left: 2px;
	padding-right: 2px;
}

.tab-favicon {
	position: relative;
	flex-shrink: 0;
	flex-grow: 0;
	height: 16px;
	width: 16px;
	background-size: 16px;
	margin-left: 4px;
}

.tab-small .tab-favicon {
	margin-left: 0;
}

.tab-mini:not(.active) .tab-favicon {
	margin-left: auto;
	margin-right: auto;
}

.tab-mini.active .tab-favicon {
	display: none;
}

.tab-title {
	flex: 1;
	font-family: Poppins;
	vertical-align: top;
	overflow: hidden;
	white-space: nowrap;
	margin-left: 4px;
	color: var(--hover-text-color);
	-webkit-mask-image: linear-gradient(
		90deg,
		#000 0%,
		#000 calc(100% - 24px),
		transparent
	);
	mask-image: linear-gradient(
		90deg,
		#000 0%,
		#000 calc(100% - 24px),
		transparent
	);
}

.tab-small .tab-title {
	margin-left: 0;
}

.tab-favicon + .tab-title,
.tab-small .tab-favicon + .tab-title {
	margin-left: 8px;
}

.tab-smaller .tab-favicon + .tab-title,
.tab-mini .tab-title {
	display: none;
}

.tab.active .tab-title {
	color: var(--text-color);
}

.tab-drag-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	cursor: grab;
	touch-action: none;
}

.tab-drag-handle:active {
	cursor: grabbing;
}

.tab-is-dragging {
	will-change: transform;
}

.tabs-is-sorting .tab {
	will-change: transform;
}

body.tab-dragging {
	user-select: none;
}

.tab-close {
	flex-grow: 0;
	flex-shrink: 0;
	position: relative;
	width: 16px;
	height: 16px;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	align-content: center;
	flex-wrap: wrap;
}

.tab-close .material-symbols-outlined {
	font-size: 16px;
	color: var(--text-color);
}

.tab-close:hover .material-symbols-outlined {
	color: var(--main-color);
}

.tab-smaller .tab-close {
	margin-left: auto;
}

.tab-mini:not(.active) .tab-close {
	display: none;
}

.tab-mini.active .tab-close {
	margin-left: auto;
	margin-right: auto;
}

.tab-bottom-border {
	position: absolute;
	background-color: var(--tab-bg-color);
	display: none;
	height: 2px;
	bottom: -2px;
	width: calc(100% - 2px);
	align-self: center;
	z-index: 99999999999999999999999999;
	border-bottom: 1px solid var(--tab-bg-color);
}

.tab.active .tab-bottom-border {
	display: block;
}

.tab:hover .tab-bottom-border {
	display: block;
}

.tabs-is-sorting .tab:not(.tab-is-dragging),
.tabs:not(.tabs-is-sorting) .tab.tab-was-just-dragged {
	transition: transform 120ms ease-in-out;
}

.under-tabs {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	position: sticky;
	transition: all 0.5s ease;
}

.tabs-bottom-bar {
	width: 100%;
	height: 1px;
	text-align: center;
	z-index: 0;
	display: flex;
	align-items: center;

	border-top: 1px solid var(--white-08);
	transition: width 0.5s ease-in-out;
}

#sj-new-tab {
	display: flex;
	position: absolute;
	align-self: center;
	align-items: center;
}

#sj-new-tab .title {
	display: none;
	font-family: Poppins;
	font-size: 12px;
	margin-left: 4px;
	color: var(--text-color);
}

#sj-new-tab .material-symbols-outlined {
	font-size: 20px;
	color: var(--text-color);
}

#sj-new-tab:hover .material-symbols-outlined {
	color: var(--main-color);
}

#sj-new-tab:hover .title {
	color: var(--main-color);
}

.iframe-container {
	height: inherit;
	width: inherit;
}

iframe {
	width: 100%;
	height: 100%;
	border: var(--iframe-border);
}

#utilityactive {
	background-color: var(--header-active-background-color);
	border-radius: 7px;
}

.utility .utilityIcon:hover {
	background-color: var(--hover-background-color);
	border-radius: 7px;
	transition: 0.2s all ease-in-out;
}

.utility .search-header__input {
	font-family: "Plus Jakarta Sans";
	font-size: 16px;
	background-color: var(--input-background-color);
	color: var(--text-color);
	padding: 0.5rem 1rem;

	border-radius: var(--radius);
	width: var(--searchbar-width);
	height: 20px;
	border: 1px solid var(--white-10);
	transition: all ease-in-out 0.5s;
	margin-right: -2rem;
	opacity: 1;
	text-align: left;
}

.utility .search-header__input:hover,
.utility .search-header__input:focus {
	box-shadow: none;
	padding: 0.5rem 1rem;
}

.utility span.material-symbols-outlined {
	font-size: 20px;
	margin: 0;
	padding: 8px;
	color: var(--text-color);
}

.utility {
	list-style-type: none;
	padding-left: 5px;
	padding-right: 5px;
	margin: 0;
	direction: ltr;
	width: calc(100%);
	height: 3em;

	background-color: var(--background-color);
	border-bottom: 1px solid var(--white-08);
	text-align: center;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	right: 0px;
}

.utility .right {
	position: relative;
	right: 0;
}

.utility li {
	display: inline-block;
	margin-left: 2px;
	margin-right: 2px;
	transition: 0.2s all ease-in-out;
}

.utility li:first-child {
	margin-left: 0;
}

.utility hr {
	width: 1px;
	height: 32px;
	background: var(--border-color);
	border: none;
	margin-left: 10px;
	margin-right: 10px;
}

#sj-address {
	transition: color ease-in-out 0.5s;
	text-overflow: ellipsis;
	padding-right: 32px;
	padding-left: 40px;
}

#sj-address:hover {
	color: var(--hover-text-color);
}

#sj-address:active,
#sj-address:focus,
#sj-address:focus-visible {
	color: var(--active-text-color);
}

.refreshButton {
	transition: transform 0.2s ease-in-out;
}

.backButton,
.forwardButton {
	transition: transform 0.2s ease-in-out;
	opacity: 0.5;
}

.refreshButton:hover {
	animation: rotateReload 0.3s forwards;
	animation-fill-mode: forwards;
	animation-direction: alternate;
}

@keyframes rotateReload {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.webSecurityIcon {
	position: absolute !important;
	top: 19px !important;
	left: 165px !important;
	color: var(--hover-text-color);
	height: 16px !important;
	width: 16px !important;
	font-size: 16px !important;
}

.utility .coming-soon::after {
	display: none;
	content: "SOON";
	font-size: 8px;
	background: var(--utility-background-color);
	color: var(--text-color);
	padding: 2px 4px;
	border-radius: 4px;
	position: absolute;
	bottom: -2px;
	white-space: nowrap;
}
.utility .coming-soon:hover::after {
	display: block;
}

.utility .coming-soon {
	display: flex;
	flex-direction: column;
}

.search-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: center;
}

.search-header__input {
	font-family: "Plus Jakarta Sans";
	font-size: 16px;
	background-color: var(--input-background-color);
	border: none;
	color: var(--text-color);
	padding: 0.7rem 1rem;
	width: 240px;
	height: 20px;
	transition: all ease-in-out 0.5s;
	margin-right: -2rem;
	opacity: 1;
	text-align: center;
}
.search-header__input::-webkit-input-placeholder {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
}

.search-header__input:-ms-input-placeholder {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
}

.search-header__input:-moz-placeholder {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
}

.search-header__input::-moz-placeholder {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
}
.search-header__input::placeholder {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
}

.search-header__input:focus {
	outline: none;
	background-color: #0a0a0af0;
}

.search-header__input:focus + .search-header__button {
	background-color: transparent;
}

.search-header__button {
	border: none;
	background-color: transparent;
	margin-top: 0.1em;
}

.search-header__button:hover {
	cursor: pointer;
}

.search-header__icon {
	height: 1.3em;
	width: 1.3em;
	fill: #3a3a3a;
}

.searchEngineIcon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	position: relative;
	z-index: 9999999;
	margin-right: -35px;
}

.suggestion-list {
	position: fixed;
	z-index: 1111;
	top: calc(46px + 3em);
	left: 50%;
	transform: translate(-50%, 0%);
	background: var(--popover);
	color: var(--text-color);
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	width: calc(100% - calc(72px * 2));
	height: fit-content;
	overflow-y: auto;
	display: none;
	flex-direction: column;
	padding-top: 2px;
	border: 1px solid var(--main-color);
	border-top: none;
	transition:
		width 0.5s ease,
		top 0.5s ease;
}

.suggestion-list div {
	border-radius: 20px;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 7px;
	padding-right: 7px;
	transition: 0.3s;
}

.suggestion-list .search-section {
	display: flex;
	flex-direction: column;
}

.suggestion-list .search-section .search-title {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 6px;
}

.suggestion-list .search-section .search-title .searchEngineIcon {
	width: 20px;
	height: 20px;
	border-radius: 0 !important;
	object-fit: cover;
	position: relative;
	z-index: 1;
	margin-right: 2px;
}

.suggestion-list .search-section .search-title span {
	font-size: 16px;
	font-weight: 500;
	text-decoration: bold;
}

.suggestion-list .search-section .search-results div {
	border-radius: 20px;
	display: flex;
	margin-right: 0.6vw;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 7px;
	padding-right: 7px;
	cursor: pointer;
	gap: 5px;
	transition: 0.3s;
}

.suggestion-list .search-section .search-results div img {
	width: 20px;
	height: 20px;
}

.suggestion-list .search-section .search-results div:hover {
	box-shadow:
		0 0 15px 1px var(--shadow-color),
		0 0 1px 1px var(--theme-color);
	transition: 0.3s;
	background-color: var(--faded-main-color);
}

.suggestion-list .search-section .search-results .selected {
	box-shadow:
		0 0 15px 1px var(--shadow-color),
		0 0 1px 1px var(--theme-color);
	transition: 0.3s;
	background-color: var(--faded-main-color);
}

.start-page .search-header {
	width: 360px;
	padding: 10px;
	display: flex;
	align-items: center;
	border-radius: 10px;
	backdrop-filter: blur(8px);
	transition: background-color 0.3s ease;
	align-self: center;
}

.start-page .search-header:hover {
	background-color: var(--faded-main-color);
}

.start-page .search-header:has(.search-header__input:focus) {
	background-color: var(--faded-main-color);
}

.start-page .search-header__input {
	flex-grow: 1;
	border: none;
	outline: none;
	background: transparent;
	color: white;
	font-size: 16px;
	padding: 5px;
	width: auto;
	height: auto;
	margin-right: 0;
	text-align: left;
}

.start-page .search-header__input:focus {
	outline: none;
	background: transparent;
}

.start-page .search-header__button {
	background: none;
	border: none;
	cursor: pointer;
}

.start-page .search-header__icon {
	fill: #3a3a3a;
	transition: fill 0.3s ease;
}

.start-page .search-header__button:hover .search-header__icon {
	fill: #ffffff;
}

.start-page div:has(.banner) {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

.start-page .banner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

.start-page .banner__title {
	font-size: 36px;
	color: var(--text-color);
	margin: 10px;
}

@keyframes scaleBlurFade {
	0% {
		transform: scale(0);
		filter: blur(15px);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		filter: blur(0);
		opacity: 1;
	}
}
.animate {
	opacity: 0;
}
.animate.title {
	animation: scaleBlurFade 1s ease forwards;
	animation-delay: 0.4s;
}
.animate.search {
	animation: scaleBlurFade 1s ease forwards;
	animation-delay: 0.6s;
}
.animate.shortcuts {
	animation: scaleBlurFade 1s ease forwards;
	animation-delay: 0.8s;
}

.shortcutcontainer {
	position: relative;
	display: inline-block;
}

.shortcutcontainer::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	box-sizing: border-box;

	clip-path: polygon(
		20px 0,
		100% 0,
		100% calc(100% - 20px),
		calc(100% - 20px) 100%,
		0 100%,
		0 20px
	);
}

.shortcut {
	width: 150px;
	display: block;
	clip-path: polygon(
		20px 0,
		100% 0,
		100% calc(100% - 20px),
		calc(100% - 20px) 100%,
		0 100%,
		0 20px
	);

	max-width: 100%;
	height: auto;
}

.settings-modal .settings-child {
	margin-left: 30px;
}

.settings-modal .settings-item-one {
	margin-left: 10px !important;
	margin-bottom: 10px;
	margin-top: 5px;
}

.settings-modal .about-hover {
	pointer-events: auto;
	cursor: pointer;
	display: inline-block;
	transition: all 0.2s ease;
	border: 2px solid transparent !important;
	padding: 5px;
	color: var(--faded-main-color) !important;
	border-radius: 9999px;
	text-decoration: none;
}

.settings-modal .about-hover:hover {
	border: var(--main-color) 2px solid !important;
	border-radius: 9999px;
	transition: all 0.2s ease;
	color: var(--main-color) !important;
	padding: 5px;
	text-decoration: none;
}

.settings-modal .about-hover:active {
	border: var(--main-color) 2px solid !important;
	border-radius: 9999px;
	background-color: var(--main-color) !important;
	color: var(--background-color) !important;
	transition: all 0.2s ease;
	padding: 5px;
}

.settings-modal .sideSnav {
	list-style-type: none;
	user-select: none;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
	padding: 10px 0px;
}

.settings-modal .sideSnav li {
	margin-top: 7.5px;
	margin-bottom: 7.5px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	border-bottom: 0px;
	transition: all 0.2s ease;
}

.settings-modal .sideSnav a,
.settings-modal .sideSnav button {
	text-decoration: none;
	color: var(--main-color);
	font-size: 16px;
	display: block;
	transition: all 0.2s ease;
	border-bottom: transparent solid 0px;
}

.settings-modal .sideSnav a:hover,
.settings-modal .sideSnav button:hover {
	transition: all 0.2s ease;
	border-bottom: var(--main-color) 1px solid;
}

.settings-modal .sideSnav h1 {
	margin-top: 0px;
}

.settings-modal .scontent {
	display: block;
	background-color: var(--card);
	border-radius: 15px;
	text-align: left;
	margin-top: 0px;
	padding-left: 20px;
}

.settings-modal .scontent h1 {
	font-size: 25px;
	font-weight: 500;
}

.settings-modal .scontent h2 {
	font-size: 20px;
	font-weight: 300;
}

.settings-modal .scontent h3 {
	margin-left: 10px;
	font-size: 16px;
}

.settings-modal .scontent h5 {
	font-size: 14px;
	margin-left: 30px;
	margin-top: 5px;
	margin-bottom: 10px;
}

.settings-modal .scontent p {
	font-size: 12px;
	line-height: 20px;
}

.settings-modal .scontent li {
	line-height: 24px;
	font-size: 14px;
}

.settings-modal hr {
	border: none;
	height: 1px;
	background: var(--main-color);
	width: 75%;
}

.settings-modal .section {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
}

.settings-modal .section-horiz {
	display: flex;
	flex-direction: row;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	pointer-events: auto;
}

.settings-modal .section-vert {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
	pointer-events: auto;
}

.settings-modal h1 {
	color: var(--main-color);
}

.switch {
	position: relative;
	height: 1.5rem;
	width: 3rem;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 9999px;
	background-color: rgba(100, 116, 139, 0.377);
	transition: all 0.3s ease;
}

.switch:checked {
	background-color: var(--main-color);
}

.switch::before {
	position: absolute;
	content: "";
	left: calc(1.5rem - 1.6rem);
	top: calc(1.5rem - 1.6rem);
	display: block;
	height: 1.6rem;
	width: 1.6rem;
	cursor: pointer;
	border: 1px solid rgba(100, 116, 139, 0.527);
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 1);
	box-shadow: 0 3px 10px rgba(100, 116, 139, 0.327);
	transition: all 0.2s ease;
}

.switch:checked:before {
	transform: translateX(100%);
	border-color: var(--faded-main-color);
}

.settings-modal button {
	padding: 12px 20px;
	border: none;
	border-radius: 10px;
	background-color: var(--popover);
	color: var(--text-color);
	font-family: Plus Jakarta Sans;
	transition: all 0.2s ease;
	cursor: pointer;
}

.settings-modal button:hover {
	transition: all 0.2s ease;
	cursor: pointer;
	background-color: var(--hover-background-color);
	color: var(--hover-text-color);
}

.dropdown-options {
	margin-top: 6px;
	position: absolute;
	background-color: var(--popover);
	width: 100%;
	z-index: 99999999;
	display: none;
	padding: 0;
	border-radius: 8px;
	list-style-type: none;
	backdrop-filter: blur(50px);
	overflow: visible;
}

.dropdown-options li:nth-last-child(1) {
	border-bottom-right-radius: 8px;
	border-bottom-left-radius: 8px;
	border-top-right-radius: 0px;
	border-top-left-radius: 0px;
}

.dropdown-options li:nth-child(1) {
	border-bottom-right-radius: 0px;
	border-bottom-left-radius: 0px;
	border-top-right-radius: 8px;
	border-top-left-radius: 8px;
}

.dropdown-options li {
	transition: all 0.2s ease;
	list-style-type: none;
	width: 100%;
	backdrop-filter: blur(50px);
	position: relative;
}

.dropdown-options li:hover {
	color: var(--hover-text-color);
	background-color: var(--faded-main-color);
	cursor: pointer;
}

.dropdown-options li:active {
	color: var(--main-color);
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 7px 10px;
	border-radius: 0px;
	transition: all 0.2s ease;
}

.menu-item:hover {
	background-color: var(--faded-main-color);
	cursor: pointer;
}

.menu-item .menu-label {
	font-size: 14px;
	font-weight: 500;
}

.menu-item .menu-key {
	font-size: 10px;
	font-weight: 400;
	color: var(--hover-text-color);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

::selection {
	background: var(--faded-main-color);
	color: var(--text-color);
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	color: inherit;
}

select {
	appearance: none;
	-webkit-appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position:
		calc(100% - 15px) 50%,
		calc(100% - 10px) 50%;
	background-repeat: no-repeat;
	background-size:
		5px 5px,
		5px 5px;
}

select::-ms-expand {
	display: none;
}

.fullscreen-proxy-mode .browser-shell {
	display: none;
}

.fullscreen-proxy-frame {
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: 100vw;
	height: 100vh;
	border: none;
	background: #fff;
}

.browser-form {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
}

.under-tabs {
	flex-direction: column;
	align-items: stretch;

	z-index: 100;
}

.viewport {
	position: relative;
	display: block;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background-color: var(--background-color);
}

.loading-track {
	height: 2px;
	overflow: hidden;
	flex: 0 0 auto;
}

.loading-bar {
	height: 100%;
	width: 0%;
	opacity: 0;
	background: linear-gradient(
		90deg,
		var(--main-color),
		#19ffc9,
		var(--main-color)
	);
	background-size: 200% 100%;
	transition:
		width 0.3s,
		opacity 0.2s;
}

.loading-bar.active {
	opacity: 1;
	animation: loading 1.5s ease-in-out infinite;
}

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

#sj-new-tab {
	border: none;
	padding: 0;
	margin: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.utility li {
	display: inline-flex;
	align-items: center;
}

.utility button.utilityIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	padding: 0;
	margin: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	border-radius: 7px;
	transition: 0.2s all ease-in-out;
}

.utility button.utilityIcon:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.utility button.utilityIcon:disabled:hover {
	background-color: transparent;
}

.utility button.utilityIcon.active {
	background-color: var(--faded-main-color);
}

.utility .utilityIcon:hover .material-symbols-outlined {
	color: var(--main-color);
}

.utility .search-header {
	position: relative;
	flex-grow: 1;
	margin-left: 8px;
	margin-right: 8px;
}

.utility .search-header__button {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	cursor: pointer;
}

.utility .search-header__button .search-header__icon {
	fill: var(--muted-foreground);
	transition: fill 0.2s ease;
}

.utility .search-header__button:hover .search-header__icon {
	fill: var(--main-color);
}

.utility .address-status {
	position: absolute;
	right: 44px;
	top: 50%;
	transform: translateY(-50%);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--main-color);
	pointer-events: none;
}

body.tor-route .address-status {
	background: #19ffc9;
}

.utility .search-header__input {
	height: 38px;
	padding-left: 40px !important;
	padding-right: 62px !important;
}

.shield-button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 7px;
	background: none;
	color: var(--main-color);
	cursor: pointer;
	transition: 0.2s all ease-in-out;
}

.utility .shield-button .material-symbols-outlined {
	font-size: 18px;
	padding: 0;
	color: var(--main-color);
}

.shield-button:hover,
.shield-button.active {
	background-color: var(--hover-background-color);
}

.shield-button.shields-down .material-symbols-outlined {
	color: var(--hover-text-color);
}

#sj-shield-count-mini {
	position: absolute;
	top: -3px;
	right: -3px;
	display: grid;
	place-items: center;
	min-width: 15px;
	height: 15px;
	padding: 0 4px;
	border: 2px solid var(--utility-background-color);
	border-radius: 9999px;
	background: var(--main-color);
	color: black;
	font-size: 8px;
	font-weight: 700;
	line-height: 1;
}

.shield-popup {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 1112;
	width: min(390px, calc(100vw - 28px));
	border: 1px solid var(--main-color);
	border-radius: 10px;
	background-color: var(--card);
	backdrop-filter: blur(50px);
	box-shadow: 0 22px 56px rgba(0, 0, 0, 0.58);
	overflow: hidden;
	text-align: left;
	transform-origin: top right;
}

.shield-popup.hidden {
	display: none;
}

.shield-popup:not(.hidden):not(.closing) {
	animation: ddx-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.shield-popup.closing {
	pointer-events: none;
	animation: ddx-collapse 0.22s cubic-bezier(0.55, 0, 0.8, 0.35) both;
}

.shield-popup-header {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	padding: 16px;
	border-bottom: 1px solid var(--border-color);
}

.shield-popup-header > div:nth-child(2) {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.shield-popup-header strong {
	overflow: hidden;
	color: var(--text-color);
	font-size: 14px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shield-popup-header small {
	margin-top: 2px;
	color: var(--main-color);
	font-size: 10px;
	font-weight: 600;
}

.shield-site-badge {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--main-color);
	border-radius: 10px;
	background: var(--faded-main-color);
	color: var(--text-color);
}

.shield-site-badge .material-symbols-outlined {
	font-size: 20px;
}

.shield-block-count {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	margin: 12px;
	padding: 15px 12px;
	border-radius: 10px;
	background: var(--popover);
	text-align: center;
}

.shield-block-count strong {
	color: var(--main-color);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.shield-block-count span {
	max-width: 240px;
	color: var(--hover-text-color);
	font-size: 11px;
	line-height: 1.35;
}

.shield-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 15px 9px;
	color: var(--main-color);
	font-size: 11px;
	font-weight: 700;
}

.shield-section-title .material-symbols-outlined {
	font-size: 16px;
	color: var(--main-color);
}

.shield-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	min-height: 45px;
	padding: 7px 15px;
	border-top: 1px solid rgba(82, 82, 82, 0.45);
	color: var(--text-color);
	cursor: pointer;
	font-size: 11px;
	transition: 0.2s all ease-in-out;
}

.shield-control:hover {
	background-color: var(--hover-background-color);
}

.shield-control select {
	grid-column: 2 / 4;
	width: 150px;
	height: 31px;
	border: 1px solid var(--border-color);
	border-radius: 9999px;
	outline: none;
	background-color: var(--input-background-color);
	color: var(--text-color);
	padding: 0 30px 0 12px;
	font-size: 10px;
	cursor: pointer;
}

.shield-control > input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.shield-control .toggle-visual {
	height: 1.15rem;
	width: 2.3rem;
}

.shield-control .toggle-visual::after {
	left: calc(1.15rem - 1.25rem);
	top: calc(1.15rem - 1.25rem);
	height: 1.25rem;
	width: 1.25rem;
}

.shield-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 12px 14px;
	border-top: 1px solid rgba(82, 82, 82, 0.45);
}

.shield-actions button {
	padding: 10px 12px;
	border: none;
	border-radius: 10px;
	background-color: var(--popover);
	color: var(--text-color);
	cursor: pointer;
	font-size: 10px;
	font-weight: 700;
	transition: all 0.2s ease;
}

.shield-actions button:hover {
	background-color: var(--hover-background-color);
	color: var(--hover-text-color);
}

.shield-footnote {
	padding: 0 18px 14px;
	color: var(--hover-text-color);
	font-size: 9px;
	line-height: 1.45;
	text-align: center;
}

.mini-toggle {
	position: relative;
	height: 1.5rem;
	width: 3rem;
	cursor: pointer;
	flex: 0 0 auto;
}

.mini-toggle input,
.toggle-row input,
.script-editor-header input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mini-toggle span,
.toggle-visual {
	position: relative;
	display: block;
	height: 1.5rem;
	width: 3rem;
	cursor: pointer;
	border-radius: 9999px;
	background-color: rgba(100, 116, 139, 0.377);
	flex: 0 0 auto;
	transition: all 0.3s ease;
}

.mini-toggle span {
	position: absolute;
	inset: 0;
}

.mini-toggle span::after,
.toggle-visual::after {
	position: absolute;
	content: "";
	left: calc(1.5rem - 1.6rem);
	top: calc(1.5rem - 1.6rem);
	display: block;
	height: 1.6rem;
	width: 1.6rem;
	cursor: pointer;
	border: 1px solid rgba(100, 116, 139, 0.527);
	border-radius: 9999px;
	background-color: rgb(255, 255, 255);
	box-shadow: 0 3px 10px rgba(100, 116, 139, 0.327);
	transition: all 0.2s ease;
}

.mini-toggle input:checked + span,
.toggle-row input:checked + .toggle-visual,
.shield-control > input:checked + .toggle-visual,
.script-editor-header input:checked + .toggle-visual {
	background-color: var(--main-color);
}

.mini-toggle input:checked + span::after,
.toggle-row input:checked + .toggle-visual::after,
.shield-control > input:checked + .toggle-visual::after,
.script-editor-header input:checked + .toggle-visual::after {
	transform: translateX(100%);
	border-color: var(--faded-main-color);
}

.suggestion-list {
	padding-left: 4px;
	padding-right: 4px;
	padding-bottom: 4px;
	text-align: left;
}

.suggestion-list.active {
	display: flex;
}

.sj-suggestion-item {
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
}

.sj-suggestion-item:hover,
.sj-suggestion-item.highlighted {
	background-color: var(--faded-main-color);
	color: var(--hover-text-color);
}

.start-page {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 24px;
	overflow: hidden;
	text-align: center;
	background-color: var(--background-color);
	background-image: radial-gradient(
		900px 520px at 50% 6%,
		var(--hover-background-color),
		transparent 62%
	);
}

.viewport.has-frame .start-page {
	display: none;
}

.start-page .banner__title {
	cursor: default;
}

.start-page .tagline {
	color: var(--hover-text-color);
	font-size: 13px;
	margin-top: -4px;
	cursor: default;
	max-width: min(680px, calc(100vw - 48px));
	min-height: 1.45em;
	overflow-wrap: anywhere;
}

.start-page .search-header {
	width: min(680px, 100%);
	margin-top: 30px;
	gap: 10px;
	padding: 8px 10px 8px 16px;
	border: 1px solid var(--white-10);
	border-radius: var(--radius);
	background-color: var(--card);
	backdrop-filter: none;
	justify-content: flex-start;
}

.start-page .search-header:hover {
	border-color: var(--white-20);
	background-color: var(--card);
}

.start-page .search-header:has(.search-header__input:focus) {
	border-color: var(--main-color);
	background-color: var(--card);
}

.start-page .search-header__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	flex: 0 0 auto;
	order: -1;
}

.start-page .search-header__icon {
	fill: var(--muted-foreground);
}

.start-page .custom-select-picker {
	position: relative;
	padding-left: 10px;
}

.start-page .custom-select-picker::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 20px;
	background: var(--white-10);
}

/* Only visible in the brief moment before the custom picker mounts. */
.start-page .engine-select {
	width: 120px;
	height: 30px;
	border: 1px solid var(--white-10);
	border-radius: var(--radius);
	background-color: var(--popover);
	color: var(--text-color);
	padding: 0 26px 0 12px;
	outline: none;
	cursor: pointer;
	font-family: "Plus Jakarta Sans";
	font-size: 13px;
	flex: 0 0 auto;
	transition: 0.2s ease;
}

.start-page .engine-select:hover {
	background-color: var(--input-hover-background-color);
	color: var(--hover-text-color);
}

/*
 * Once the picker takes over, the native select is just the value holder.
 * This needs to outrank `.start-page .engine-select` above, which would
 * otherwise give the hidden element its size and border back.
 */
.start-page .engine-select.native-wisp-select {
	width: 1px;
	height: 1px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: none;
	flex: 0 0 auto;
}

.quick-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: min(720px, 100%);
	margin-top: 26px;
	padding-bottom: 24px;
}

.quick-grid button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 104px;
	height: 78px;
	padding: 12px 8px;
	border: 1px solid var(--white-10);
	border-radius: var(--radius);
	background-color: var(--card);
	color: var(--text-color);
	cursor: pointer;
	font-family: "Plus Jakarta Sans";
	font-size: 12px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.quick-grid button:hover {
	border-color: var(--white-20);
	background-color: var(--popover);
	color: #fafafa;
	transform: translateY(-1px);
}

.quick-grid span {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	color: var(--main-color);
	flex: 0 0 auto;
}

.quick-grid .material-symbols-outlined {
	font-size: 22px;
	line-height: 1;
	color: var(--main-color);
}

#particles {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	opacity: 0.4;
	pointer-events: none;
}

.sj-frame {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	border: none;
	background: #fff;
	display: block;
}

.sj-frame.hidden {
	display: none;
}

.page-loader {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(14px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s;
}

.page-loader.active {
	opacity: 1;
}

.page-loader-mark {
	position: relative;
	width: 38px;
	height: 38px;
}

.page-loader-mark::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--main-color);
	border-radius: 50%;
	animation: ddx-spin 1s linear infinite;
}

.page-loader-mark span {
	display: none;
}

.page-loader p {
	color: var(--main-color);
	font-size: 14px;
	font-weight: 600;
	cursor: default;
}

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

.error-panel {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px;
	background: rgba(0, 0, 0, 0.92);
	text-align: center;
}

.error-panel.active {
	display: flex;
}

#sj-error {
	max-width: 460px;
	color: var(--error);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	cursor: default;
}

#sj-error::before {
	content: "!";
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: color-mix(in oklab, var(--error) 14%, transparent);
	color: var(--error);
	font-size: 34px;
	font-weight: 800;
	animation: ddx-error-ring 1.8s ease-out 0.4s infinite;
}

#sj-error-code {
	max-width: min(620px, 90vw);
	color: var(--hover-text-color);
	font-family: ui-monospace, "SF Mono", monospace;
	font-size: 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

@keyframes ddx-error-ring {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 122, 122, 0.5);
	}
	40% {
		box-shadow: 0 0 0 22px rgba(255, 122, 122, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 122, 122, 0);
	}
}

@keyframes ddx-pop {
	0% {
		opacity: 0;
		transform: translateY(-10px) scale(0.86);
	}
	64% {
		opacity: 1;
		transform: translateY(2px) scale(1.015);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes ddx-collapse {
	0% {
		opacity: 1;
		filter: blur(0);
		transform: translateY(0) scale(1);
	}
	100% {
		opacity: 0;
		filter: blur(5px);
		transform: translateY(-14px) scale(0.82);
	}
}

.bookmarks-drawer {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1112;
	width: min(340px, calc(100vw - 28px));
	max-height: 420px;
	border: 1px solid var(--main-color);
	border-radius: 10px;
	background-color: var(--card);
	backdrop-filter: blur(50px);
	box-shadow: 0 22px 56px rgba(0, 0, 0, 0.58);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: left;
	transform-origin: top right;
}

.bookmarks-drawer.hidden {
	display: none;
}

.bookmarks-drawer:not(.hidden) {
	animation: ddx-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.bookmarks-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-color);
}

.bookmarks-drawer-header strong {
	color: var(--text-color);
	font-size: 16px;
	font-weight: 500;
}

.bookmarks-add-btn {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 7px;
	background: transparent;
	color: var(--text-color);
	cursor: pointer;
	transition: 0.2s all ease-in-out;
}

.bookmarks-add-btn .material-symbols-outlined {
	font-size: 18px;
}

.bookmarks-add-btn:hover {
	background-color: var(--hover-background-color);
	color: var(--main-color);
}

.bookmarks-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bookmarks-list:empty::after {
	content: "No bookmarks yet. Click the bookmark icon to add the current page.";
	display: block;
	padding: 24px 16px;
	color: var(--hover-text-color);
	font-size: 12px;
	text-align: center;
}

.bookmark-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 20px;
	cursor: pointer;
	transition: 0.3s;
}

.bookmark-item:hover {
	background-color: var(--faded-main-color);
}

.bookmark-item-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	color: var(--main-color);
}

.bookmark-item-icon .material-symbols-outlined {
	font-size: 16px;
	color: var(--main-color);
}

.bookmark-item-content {
	flex: 1;
	min-width: 0;
}

.bookmark-item-title {
	color: var(--text-color);
	font-size: 13px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bookmark-item-url {
	color: var(--hover-text-color);
	font-size: 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 1px;
}

.bookmark-item-delete {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 7px;
	background: transparent;
	color: var(--hover-text-color);
	cursor: pointer;
	opacity: 0;
	transition: all 0.2s ease;
	flex: 0 0 auto;
}

.bookmark-item-delete .material-symbols-outlined {
	font-size: 14px;
}

.bookmark-item:hover .bookmark-item-delete {
	opacity: 1;
}

.bookmark-item-delete:hover {
	background: color-mix(in oklab, var(--error) 15%, transparent);
	color: var(--error);
}

.bookmarks-drawer-footer {
	padding: 10px 16px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
}

.bookmarks-drawer-footer button {
	border: none;
	background: transparent;
	color: var(--text-color);
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 10px;
	transition: all 0.2s ease;
}

.bookmarks-drawer-footer button:hover {
	background-color: var(--hover-background-color);
	color: var(--hover-text-color);
}

.settings-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.82);
}

.settings-modal.hidden {
	display: none;
}

.settings-card {
	display: flex;
	flex-direction: column;
	width: 880px;
	max-width: 95vw;
	height: 620px;
	max-height: 90vh;
	border: 1px solid var(--main-color);
	border-radius: 15px;
	background-color: var(--background-color);
	box-shadow: 0 22px 56px rgba(0, 0, 0, 0.6);
	overflow: hidden;
	animation: ddx-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.settings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--main-color);
	background-color: var(--card);
}

.settings-header .eyebrow {
	display: block;
	margin-bottom: 2px;
	color: var(--main-color);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: default;
}

.settings-header h2 {
	color: var(--main-color);
	font-size: 25px;
	font-weight: 500;
	cursor: default;
}

.settings-modal .close-button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 7px;
	background: transparent;
}

.settings-modal .close-button .material-symbols-outlined {
	font-size: 20px;
}

.settings-modal .close-button:hover {
	background-color: var(--hover-background-color);
	color: var(--main-color);
}

.settings-layout {
	display: flex;
	flex: 1;
	min-height: 0;
}

.settings-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 200px;
	padding: 12px;
	border-right: 1px solid var(--white-08);
	background-color: var(--card);
	list-style-type: none;
}

.settings-modal .settings-nav button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 36px;
	padding: 8px 12px;
	border: none;
	border-radius: var(--radius);
	background: transparent;
	color: var(--text-color);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	transition: all 0.15s ease;
}

.settings-modal .settings-nav button:hover {
	background-color: var(--popover);
	color: #fafafa;
}

.settings-modal .settings-nav button.active {
	background-color: var(--accent);
	color: #fafafa;
}

.settings-content {
	flex: 1;
	min-width: 0;
	padding: 20px;
	overflow-y: auto;
}

.settings-pane {
	display: none;
}

.settings-pane.active {
	display: block;
}

.settings-row,
.toggle-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 10px;
	padding: 14px 20px;
	border-radius: 15px;
	background-color: var(--popover);
}

.toggle-row {
	cursor: pointer;
}

.settings-row span,
.toggle-row span:first-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.settings-row strong,
.toggle-row strong {
	color: var(--text-color);
	font-size: 16px;
	font-weight: 500;
}

.settings-row small,
.toggle-row small {
	margin-top: 3px;
	color: var(--hover-text-color);
	font-size: 12px;
	line-height: 1.4;
}

.settings-note {
	margin: -4px 0 0;
	color: var(--hover-text-color);
	font-size: 11px;
	line-height: 1.5;
}

.settings-note:empty {
	display: none;
}

.settings-row select,
.settings-number,
.settings-text {
	max-width: min(360px, 48vw);
	min-height: 36px;
	border: 1px solid var(--border-color);
	border-radius: 9999px;
	outline: none;
	background-color: transparent;
	color: var(--text-color);
	padding: 5px 34px 5px 14px;
	cursor: pointer;
	font-family: "Plus Jakarta Sans";
	font-size: 14px;
	transition: 0.2s ease;
}

.settings-row select:hover,
.settings-number:hover {
	background: var(--input-hover-background-color);
	color: var(--hover-text-color);
}

.settings-number {
	width: 120px;
	padding-right: 14px;
}

.settings-text {
	width: min(360px, 48vw);
	background-image: none;
	cursor: text;
}

.settings-copy {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
	padding: 16px 20px;
	border-radius: 15px;
	background-color: var(--popover);
}

.settings-copy strong {
	color: var(--main-color);
	font-size: 20px;
	font-weight: 500;
}

.settings-copy small {
	color: var(--hover-text-color);
	font-size: 12px;
	line-height: 1.55;
}

.settings-copy.compact {
	margin-top: 12px;
}

.settings-modal .settings-action-button {
	width: 100%;
	min-height: 42px;
	margin-top: 4px;
	color: var(--error);
	font-size: 13px;
	font-weight: 600;
}

.settings-modal .settings-action-button:hover {
	background-color: color-mix(in oklab, var(--error) 13%, transparent);
	color: var(--error);
}

.settings-modal .scripts-add-btn {
	color: var(--text-color);
}

.settings-modal .scripts-add-btn:hover {
	color: var(--hover-text-color);
}

select.native-wisp-select {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.wisp-picker {
	position: relative;
	width: min(460px, 52vw);
}

button.wisp-picker-button,
button.wisp-picker-option {
	display: grid;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 1px solid var(--border-color);
	background: transparent;
	color: var(--text-color);
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease;
}

button.wisp-picker-button {
	grid-template-columns: 10px minmax(0, 1fr) auto 10px;
	min-height: 36px;
	border-radius: 9999px;
	padding: 6px 16px;
	font-size: 14px;
}

button.wisp-picker-button:hover {
	background: var(--input-hover-background-color);
	color: var(--hover-text-color);
}

.wisp-picker-button::after {
	content: "";
	grid-column: 4;
	grid-row: 1;
	justify-self: end;
	width: 8px;
	height: 8px;
	margin-right: 2px;
	border-right: 1px solid var(--main-color);
	border-bottom: 1px solid var(--main-color);
	transform: rotate(45deg);
	transition: transform 0.3s;
}

.wisp-picker.open .wisp-picker-button::after {
	margin-top: 5px;
	transform: rotate(225deg);
}

.custom-select-picker {
	width: min(360px, 48vw);
}

.custom-select-picker button.wisp-picker-button {
	grid-template-columns: 10px minmax(0, 1fr) 10px;
}

.custom-select-picker .wisp-picker-button::after {
	grid-column: 3;
}

.custom-select-picker button.wisp-picker-option {
	grid-template-columns: 10px minmax(0, 1fr);
}

.custom-select-picker .wisp-picker-list {
	width: max(100%, 240px);
}

.start-page .custom-select-picker {
	width: 132px;
	flex: 0 0 auto;
}

.start-page-search-engine {
	display: flex;
	justify-content: center;
	margin-top: 14px;
	position: relative;
	z-index: 5;
}

.start-page-search-engine .custom-select-picker {
	width: 220px;
}

.start-page .custom-select-picker button.wisp-picker-button {
	min-height: 30px;
	padding: 4px 12px;
	border: 1px solid var(--white-10);
	border-radius: var(--radius);
	background-color: var(--popover);
	color: var(--text-color);
	font-family: "Plus Jakarta Sans";
	font-size: 13px;
	font-weight: 500;
}

.start-page .custom-select-picker button.wisp-picker-button:hover {
	border-color: var(--white-20);
	background-color: var(--input-hover-background-color);
	color: var(--hover-text-color);
}

.start-page .custom-select-picker.open button.wisp-picker-button {
	border-color: var(--main-color);
}

/* Match the dropdown to the card the search bar sits in. */
.start-page .custom-select-picker .wisp-picker-list {
	right: 0;
	width: max(100%, 176px);
	padding: 4px;
	border: 1px solid var(--white-10);
	border-radius: var(--radius);
	background-color: var(--card);
	backdrop-filter: blur(18px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.start-page .custom-select-picker button.wisp-picker-option {
	min-height: 32px;
	padding: 6px 12px;
	border-radius: calc(var(--radius) - 4px);
	font-size: 13px;
}

.custom-select-icon {
	width: 7px;
	height: 7px;
	border: 1px solid var(--main-color);
	border-radius: 2px;
	background: var(--faded-main-color);
	transform: rotate(45deg);
	transition: all 0.2s ease;
}

.wisp-picker-option:hover .custom-select-icon,
.wisp-picker-option.selected .custom-select-icon {
	background: var(--main-color);
	transform: rotate(135deg) scale(1.08);
}

.shield-control .custom-select-picker {
	grid-column: 2 / 4;
	width: 168px;
}

.shield-control .custom-select-picker .wisp-picker-button {
	width: 100%;
	min-height: 31px;
	padding: 6px 12px;
	border-radius: 9999px;
	font-size: 10px;
	border: 1px solid var(--border-color);
	background: var(--input-background-color);
	color: var(--text-color);
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) 10px;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.shield-control .custom-select-picker .wisp-picker-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shield-control .custom-select-picker .wisp-picker-list {
	width: 240px;
}

.wisp-picker-list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 20;
	width: min(560px, 74vw);
	max-height: 280px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background-color: var(--popover);
	backdrop-filter: blur(50px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
	overflow-y: auto;
	list-style-type: none;
}

.wisp-picker-list.hidden {
	display: none;
}

button.wisp-picker-option {
	grid-template-columns: 10px minmax(0, 1fr) auto;
	min-height: 36px;
	border: none;
	border-radius: 0;
	padding: 10px 20px;
	font-size: 14px;
}

button.wisp-picker-option:hover,
button.wisp-picker-option.selected {
	background-color: var(--faded-main-color);
	color: var(--hover-text-color);
}

.wisp-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 9999px;
	background: #f8dc75;
	box-shadow: 0 0 0 3px rgba(248, 220, 117, 0.12);
}

.wisp-status-dot.checking {
	animation: ddx-pulse-dot 1.2s ease-in-out infinite;
}

@keyframes ddx-pulse-dot {
	0%,
	100% {
		opacity: 0.5;
	}
	50% {
		opacity: 1;
	}
}

.wisp-status-dot.up {
	background: #19ffc9;
	box-shadow: 0 0 0 3px rgba(25, 255, 201, 0.14);
}

.wisp-status-dot.down {
	background: var(--error);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--error) 14%, transparent);
}

.wisp-status-dot.tor.up,
.wisp-status-dot.tor.checking {
	background: var(--main-color);
	box-shadow: 0 0 0 3px var(--faded-main-color);
}

.wisp-status-dot.tor.down {
	background: var(--faded-main-color);
	box-shadow: 0 0 0 3px rgba(170, 1, 255, 0.08);
}

.tor-picker-empty {
	padding: 10px;
	text-align: center;
	color: var(--hover-text-color);
	font-size: 12px;
}

.wisp-picker-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wisp-picker-meta {
	color: var(--hover-text-color);
	font-size: 11px;
	white-space: nowrap;
}

.scripts-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.script-editor {
	border-radius: 15px;
	background-color: var(--popover);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.script-editor-header {
	display: flex;
	align-items: center;
	gap: 8px;
}

.script-editor-header input[type="text"] {
	flex: 1;
	min-width: 0;
	height: 32px;
	font-size: 14px;
}

.script-editor-header .toggle-visual {
	height: 1.2rem;
	width: 2.4rem;
}

.script-editor-header .toggle-visual::after {
	left: calc(1.2rem - 1.3rem);
	top: calc(1.2rem - 1.3rem);
	height: 1.3rem;
	width: 1.3rem;
}

.script-editor textarea {
	width: 100%;
	min-height: 80px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	outline: none;
	background: var(--input-background-color);
	color: var(--text-color);
	padding: 10px 12px;
	font-family: ui-monospace, "SF Mono", monospace;
	font-size: 12px;
	resize: vertical;
	line-height: 1.45;
	transition: 0.2s ease;
}

.script-editor textarea:focus {
	border-color: var(--main-color);
}

.settings-modal .script-delete-btn {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--hover-text-color);
	flex: 0 0 auto;
}

.script-delete-btn .material-symbols-outlined {
	font-size: 16px;
}

.settings-modal .script-delete-btn:hover {
	background: color-mix(in oklab, var(--error) 15%, transparent);
	color: var(--error);
}

@media (max-width: 860px) {
	.utility {
		padding-left: 2px;
		padding-right: 2px;
	}

	.utility .nav-cluster {
		display: none;
	}

	.utility hr {
		display: none;
	}

	.start-page {
		justify-content: flex-start;
		padding-top: 12vh;
	}

	.start-page .search-header {
		width: min(320px, 100%);
	}

	.settings-layout {
		flex-direction: column;
	}

	.settings-nav {
		width: 100%;
		flex-direction: row;
		gap: 18px;
		overflow-x: auto;
		border-right: none;
		border-bottom: 1px solid var(--border-color);
	}

	.settings-modal .settings-nav button {
		flex: 0 0 auto;
	}
}

@media (max-width: 560px) {
	#sj-fullscreen-button {
		display: none;
	}

	.start-page .banner__title {
		font-size: 28px;
	}

	.start-page .search-header {
		flex-wrap: wrap;
		justify-content: center;
	}

	.start-page .engine-select {
		flex: 1 1 100%;
		width: 100%;
		margin-top: 6px;
	}

	.start-page .custom-select-picker {
		flex: 1 1 100%;
		width: 100%;
		margin-top: 6px;
	}

	.quick-grid button {
		min-width: 136px;
	}

	.settings-card {
		height: min(620px, 92vh);
	}

	.settings-content {
		padding: 16px;
	}

	.settings-row,
	.toggle-row {
		align-items: stretch;
		flex-direction: column;
	}

	.settings-row select,
	.settings-number,
	.settings-text,
	.wisp-picker,
	.custom-select-picker,
	.wisp-picker-list {
		width: 100%;
		max-width: none;
	}

	.shield-popup {
		position: fixed;
		top: 108px;
		right: 10px;
		left: 10px;
		width: auto;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
}

@supports not (color: color-mix(in oklab, red 50%, blue)) {
	:root {
		--white-05: rgba(178, 178, 178, 0.05);
		--white-08: rgba(178, 178, 178, 0.08);
		--white-10: rgba(178, 178, 178, 0.1);
		--white-20: rgba(178, 178, 178, 0.2);
	}

	#sj-error::before {
		background: rgba(243, 139, 168, 0.14);
	}

	.bookmark-item-delete:hover {
		background: rgba(243, 139, 168, 0.15);
	}

	.settings-modal .settings-action-button:hover {
		background-color: rgba(243, 139, 168, 0.13);
	}

	.wisp-status-dot.down {
		box-shadow: 0 0 0 3px rgba(243, 139, 168, 0.14);
	}

	.settings-modal .script-delete-btn:hover {
		background: rgba(243, 139, 168, 0.15);
	}
}
