:root {
	--bg: #0a0f14;
	--bg-darker: #141c24;
	--bg-card: rgba(10, 15, 20, 0.92);
	--bg-input: rgba(20, 28, 36, 0.85);
	--text: #d4d4d4;
	--muted: #6b7280;
	--team-color-1: #88c0d0;
	--team-color-2: #81a1c1;
	--glow-color-1: rgba(136, 192, 208, 0.35);
	--glow-color-2: rgba(129, 161, 193, 0.2);
	--accent-soft: rgba(136, 192, 208, 0.45);
	--wallpaper-image: url("sj.png");
	--surface-1: rgba(10, 15, 20, 0.92);
	--surface-2: rgba(20, 28, 36, 0.84);
	--surface-3: rgba(20, 28, 36, 0.64);
	--border: rgba(255, 255, 255, 0.07);
	--chrome-toolbar-bg: rgba(42, 68, 113, 0.78);
	--chrome-tabs-bg: rgba(22, 34, 58, 0.9);
	--chrome-address-bg: rgba(12, 18, 31, 0.86);
	--chrome-button-bg: rgba(15, 23, 40, 0.74);
	--chrome-border-color: rgba(255, 255, 255, 0.12);
	--chrome-toolbar-width: clamp(460px, calc(100vw - 220px), 980px);
	--chrome-tabs-max-width: calc(100vw - 300px);
	--chrome-toolbar-blur: 16px;
	--chrome-tabs-blur: 14px;
	--chrome-button-size: 28px;
	--chrome-bar-radius: 999px;
	--chrome-row-gap: 0.6rem;
}

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

html,
body {
	height: 100%;
}

body {
	font-family: "Poppins", system-ui, sans-serif;
	background-image:
		linear-gradient(180deg, rgba(5, 13, 26, 0.36), rgba(9, 20, 36, 0.58)),
		var(--wallpaper-image),
		linear-gradient(180deg, var(--bg), var(--bg-darker));
	background-size: cover, cover, cover;
	background-position: center, center, center;
	background-repeat: no-repeat, no-repeat, no-repeat;
	color: var(--text);
	min-height: 100vh;
	line-height: 1.5;
	overflow: hidden;
}

.wallpaper-video {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
	z-index: 0;
	pointer-events: none;
	filter: brightness(0.72) saturate(1.06);
}

body.has-video-wallpaper .wallpaper-video.is-active {
	display: block;
}

.tile-icon-img {
	width: 18px;
	height: 18px;
	display: block;
	object-fit: contain;
}

#particles-js {
	position: absolute;
	inset: 0;
	z-index: 5;
	background: transparent;
	pointer-events: none;
}

.particles-canvas {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 1;
}

.app-shell {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 0.3rem;
	padding-bottom: 4.6rem;
	gap: 0;
}

.chrome {
	position: fixed;
	left: 50%;
	bottom: 0.95rem;
	transform: translateX(-50%);
	z-index: 20;
	display: grid;
	justify-items: center;
	gap: 0;
	width: min(1120px, calc(100vw - 1.2rem));
	pointer-events: none;
}

.chrome-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--chrome-row-gap);
	width: auto;
	max-width: 100%;
}

.tabs-row {
	--tab-count-for-width: 1;
	display: flex;
	align-items: center;
	margin-left: 0.80rem;
	gap: 0.3rem;
	background: rgba(18, 23, 34, 0.72);
	border-radius: var(--chrome-bar-radius);
	padding: 0.24rem 0.36rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(20px);
	width: fit-content;
	max-width: var(--chrome-tabs-max-width);
	pointer-events: auto;
	box-shadow: 0 10px 30px rgba(2, 5, 12, 0.36);
}

.tabs {
	display: flex;
	gap: 0.48rem;
	flex: 0 1 auto;
	max-width: calc(100vw - 380px);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
	display: none;
}

.tab {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.38rem 0.78rem;
	border-radius: 999px;
	background: rgba(10, 14, 22, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #f4f6fb;
	font-size: 0.7rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	max-width: 220px;
	min-width: 120px;
	flex: 0 0 auto;
	overflow: hidden;
}

.tab-favicon {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex: 0 0 auto;
}

.tab-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 160px;
}

.tab.active {
	background: rgba(6, 10, 18, 0.9);
	border-color: rgba(255, 255, 255, 0.2);
}

.tab-close {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	font-size: 0.8rem;
}

.tab-add {
	width: var(--chrome-button-size);
	height: var(--chrome-button-size);
	border-radius: var(--chrome-bar-radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(9, 13, 20, 0.82);
	color: #f5f7ff;
	cursor: pointer;
	flex-shrink: 0;
}

.shortcut-counter {
	font-size: 0.64rem;
	color: #f5f7ff;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 0;
	width: var(--chrome-button-size);
	height: var(--chrome-button-size);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(9, 13, 20, 0.82);
	white-space: nowrap;
}

.tab-metrics {
	flex: 0 0 auto;
}

.toolbar {
	display: grid;
	grid-template-columns: auto auto auto;
	align-items: center;
	gap: 0.22rem;
	border-radius: var(--chrome-bar-radius);
	padding: 0.25rem 0.38rem;
	background: rgba(18, 23, 34, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(20px);
	box-shadow: 0 10px 30px rgba(2, 5, 12, 0.36);
	width: fit-content;
	max-width: min(100%, var(--chrome-toolbar-width));
	flex: 0 1 auto;
	min-width: 0;
	pointer-events: auto;
}

.toolbar-nav,
.toolbar-actions {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.toolbar-actions {
	position: relative;
}

.nav-btn,
.toolbar-btn {
	width: var(--chrome-button-size);
	height: var(--chrome-button-size);
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(9, 13, 20, 0.82);
	color: #f4f6fb;
	font-family: inherit;
	cursor: pointer;
}

.eruda-btn {
	font-size: 0.63rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
}

.ads-toggle-btn {
	width: auto;
	min-width: 66px;
	padding: 0 0.52rem;
	border-radius: 999px;
	font-size: 0.66rem;
	font-weight: 500;
	line-height: 1;
	text-transform: lowercase;
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.toolbar-btn-logo {
	width: 16px;
	height: 16px;
	display: block;
	margin: 0 auto;
}

.extension-pinned-btn {
	overflow: hidden;
}

.extension-pinned-logo {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
}

.action-menu-wrap {
	position: relative;
}

.action-menu-btn {
	border-radius: 50%;
	background: rgba(9, 13, 20, 0.82);
}

.action-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.4rem);
	min-width: 164px;
	padding: 0.35rem;
	border-radius: 0.6rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(8, 12, 20, 0.95);
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	display: none;
	flex-direction: column;
	gap: 0.24rem;
	z-index: 35;
}

.action-menu.open {
	display: flex;
}

.action-menu-item {
	width: 100%;
	min-height: 30px;
	padding: 0.36rem 0.52rem;
	border-radius: 0.45rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(14, 21, 34, 0.88);
	color: #f4f6fb;
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 0.72rem;
	line-height: 1;
	text-align: left;
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	cursor: pointer;
}

.action-menu-item:hover {
	background: rgba(24, 35, 56, 0.9);
	border-color: rgba(255, 255, 255, 0.16);
}

.action-menu-item .toolbar-btn-logo {
	width: 14px;
	height: 14px;
	margin: 0;
}

.action-menu-item.eruda-btn {
	letter-spacing: 0;
	font-size: 0.7rem;
}

.action-menu-item.ads-toggle-btn {
	min-width: 0;
	width: 100%;
	justify-content: flex-start;
	text-transform: lowercase;
}

.action-menu-item#partnershipBtn {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
}

.quick-context-menu {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 80;
	display: none;
	flex-direction: column;
	gap: 0.26rem;
	min-width: 178px;
	padding: 0.36rem;
	border-radius: 0.62rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(8, 12, 20, 0.96);
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.quick-context-menu.open {
	display: flex;
}

.quick-context-item {
	width: 100%;
	min-height: 30px;
	padding: 0.38rem 0.54rem;
	border-radius: 0.45rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(14, 21, 34, 0.88);
	color: #f4f6fb;
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 0.72rem;
	line-height: 1;
	text-align: left;
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	cursor: pointer;
}

.quick-context-item:hover {
	background: rgba(24, 35, 56, 0.9);
	border-color: rgba(255, 255, 255, 0.16);
}

.action-menu-item #partnershipBtnImg {
	width: 14px;
	height: 14px;
	object-fit: cover;
	border-radius: 3px;
	display: block;
}

.address-bar {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	background: rgba(8, 12, 20, 0.84);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--chrome-bar-radius);
	padding: 0.16rem 0.24rem 0.16rem 0.5rem;
	width: clamp(360px, 44vw, 560px);
	justify-self: center;
	min-width: 0;
}

.address-bar input {
	flex: 1;
	background: transparent;
	border: none;
	color: #dbe3f1;
	font-size: 0.8rem;
	outline: none;
	font-family: inherit;
}

.address-bar input::placeholder {
	color: rgba(219, 227, 241, 0.52);
}

.address-bar button,
.home-search button {
	width: var(--chrome-button-size);
	height: var(--chrome-button-size);
	border-radius: 50%;
	border: none;
	background: rgba(35, 45, 64, 0.95);
	color: #f5f7ff;
	cursor: pointer;
}

.browser-shell {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	flex: 1 1 auto;
	min-height: 0;
}

.browser-main {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.browser-stage {
	position: relative;
	border-radius: 0.65rem;
	background: transparent;
	flex: 1;
	overflow: hidden;
	border: 1px solid var(--border);
}

#browserFrame {
	width: 100%;
	height: 100%;
	border: none;
	background: transparent;
	display: block;
}

.loading-banner {
	position: absolute;
	top: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	color: #e5e7eb;
	background: var(--surface-1);
	border: 1px solid var(--border);
	display: none;
	z-index: 9;
}

.loading-banner.show {
	display: inline-flex;
}

.browser-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	z-index: 6;
}

body.matrix-theme-active .browser-overlay {
	background: radial-gradient(circle at top, rgba(2, 10, 6, 0.16), rgba(4, 17, 10, 0.24));
}

.internal-page {
	position: absolute;
	inset: 0;
	display: none;
	z-index: 7;
	background: transparent;
	padding: 1rem;
	overflow-y: auto;
}

body.matrix-theme-active .internal-page {
	background: transparent;
}

body.matrix-theme-active #aiPage {
	background: transparent;
}

#aiPage {
	overflow: hidden;
}

.internal-page.active {
	display: block;
}

#partnersPage {
	background:
		radial-gradient(circle at top, rgba(8, 15, 30, 0.42), rgba(4, 7, 14, 0.72)),
		transparent;
}

.partners-page-shell {
	max-width: 1200px;
	margin: 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 1rem;
	background: rgba(5, 9, 16, 0.68);
	backdrop-filter: blur(6px);
	padding-bottom: 1rem;
}

.extension-list {
	display: grid;
	grid-template-columns: 1fr;
}

.extension-card {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.8rem;
	background: rgba(6, 12, 22, 0.72);
	padding: 0.75rem;
}

.extension-card-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.extension-icon {
	width: 46px;
	height: 46px;
	border-radius: 0.55rem;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.extension-meta h3 {
	font-size: 0.9rem;
	font-weight: 600;
}

.extensions-page-shell {
	max-width: 980px;
	border: none;
	background: transparent;
}

.extensions-page-header {
	padding: 0.2rem 0.2rem 0.9rem;
	border-bottom: none;
}

.extensions-page-header h2 {
	font-size: 2.15rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #f3f8ff;
}

.extensions-header-copy {
	margin-top: 0.15rem;
	font-size: 0.9rem;
	color: rgba(213, 229, 255, 0.8);
}

.extensions-page-body {
	padding: 0;
}

.extensions-list {
	padding: 0;
	border-bottom: none;
	background: transparent;
}

.extension-wallpaper-card {
	position: relative;
	border-radius: 1.2rem;
	border: 1px solid rgba(175, 214, 255, 0.23);
	background:
		linear-gradient(150deg, rgba(8, 20, 36, 0.88), rgba(5, 11, 20, 0.8)),
		radial-gradient(circle at 15% 0%, rgba(132, 187, 255, 0.16), transparent 40%);
	backdrop-filter: blur(10px);
	box-shadow:
		0 14px 38px rgba(0, 0, 0, 0.38),
		inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	padding: 1rem;
}

.extension-wallpaper-card .extension-card-head {
	margin-bottom: 0.75rem;
}

.extension-wallpaper-card .extension-icon {
	width: 60px;
	height: 60px;
	border-radius: 0.75rem;
	border-color: rgba(199, 228, 255, 0.34);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.extension-wallpaper-card .extension-meta h3 {
	font-size: 1.15rem;
	line-height: 1.2;
	color: #f2f7ff;
}

.extension-wallpaper-card .extension-meta .settings-hint {
	font-size: 0.85rem;
	color: rgba(219, 232, 255, 0.86);
}

.extension-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.45rem;
}

.extension-tag {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 0.62rem;
	font-size: 0.73rem;
	font-weight: 600;
	color: #d5e9ff;
	border-radius: 999px;
	border: 1px solid rgba(191, 223, 255, 0.25);
	background: rgba(32, 66, 104, 0.42);
}

.extension-actions-row {
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 0.35rem;
}

.extension-actions-row .settings-btn {
	min-height: 38px;
	border-radius: 0.78rem;
	padding: 0.52rem 1rem;
	background: linear-gradient(160deg, rgba(16, 44, 76, 0.85), rgba(10, 27, 48, 0.72));
	border-color: rgba(175, 216, 255, 0.26);
	font-weight: 500;
}

.extension-actions-row .settings-btn:hover {
	border-color: rgba(186, 224, 255, 0.48);
	transform: translateY(-1px);
}

.extension-enabled-row {
	font-size: 0.9rem;
	gap: 0.45rem;
	color: rgba(229, 239, 255, 0.92);
	background: rgba(12, 27, 49, 0.5);
	padding: 0.42rem 0.62rem;
	border-radius: 0.72rem;
	border: 1px solid rgba(194, 226, 255, 0.17);
}

.extension-enabled-row input {
	width: 16px;
	height: 16px;
}

.extension-installed-count {
	font-size: 0.9rem;
	color: rgba(235, 243, 255, 0.94);
	background: rgba(6, 20, 36, 0.58);
	padding: 0.4rem 0.64rem;
	border-radius: 0.72rem;
	border: 1px solid rgba(190, 223, 255, 0.13);
}

.extension-meta-line {
	font-size: 0.84rem;
	color: rgba(223, 235, 255, 0.84);
}

.extension-store-page-shell {
	max-width: min(1860px, calc(100vw - 0.2rem));
	width: min(1860px, calc(100vw - 0.2rem));
	border: none;
	background: transparent;
}

.settings-page-shell.extension-store-page-shell {
	max-width: calc(100vw - 2rem);
	width: calc(100vw - 2rem);
}

.extension-store-page-header {
	padding: 0.25rem 0.25rem 0.95rem;
	border-bottom: none;
}

.extension-store-page-header h2 {
	font-size: 2rem;
	color: #f2f7ff;
}

.extension-store-copy {
	margin-top: 0.18rem;
	font-size: 0.9rem;
	color: rgba(214, 230, 255, 0.78);
}

.extension-store-page-body {
	padding: 0;
}

.wallpaper-store-shell-v2 {
	border-radius: 1.25rem;
	border: 1px solid rgba(166, 209, 255, 0.2);
	background:
		linear-gradient(145deg, rgba(7, 17, 31, 0.88), rgba(6, 13, 24, 0.8)),
		radial-gradient(circle at 0% 0%, rgba(127, 184, 255, 0.14), transparent 40%);
	padding: 1.15rem;
	min-height: 1000px;
	overflow: hidden;
	box-shadow:
		0 18px 44px rgba(0, 0, 0, 0.4),
		inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.wallpaper-store-stage {
	display: grid;
	grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.55fr) minmax(260px, 0.9fr);
	grid-template-areas: "rail content preview";
	gap: 1rem;
	align-items: stretch;
	min-width: 0;
	min-height: 1000px;
}

.wallpaper-store-rail {
	grid-area: rail;
	display: grid;
	gap: 0.8rem;
	grid-auto-rows: max-content;
	align-content: start;
	border-radius: 1rem;
	border: 1px solid rgba(189, 224, 255, 0.17);
	background: rgba(5, 12, 22, 0.58);
	padding: 0.8rem;
}

.wallpaper-store-content {
	grid-area: content;
	min-height: 0;
	height: 940px;
	border-radius: 1rem;
	border: 1px solid rgba(190, 222, 255, 0.16);
	background: rgba(5, 11, 20, 0.52);
	padding: 0.75rem;
	min-width: 0;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
}

.extension-store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
	grid-auto-rows: max-content;
	align-items: start;
	gap: 1rem;
	margin-top: 0;
	align-content: start;
	padding: 0.2rem 0.05rem 0.5rem;
}

.store-wallpaper-card {
	border: 1px solid rgba(184, 221, 255, 0.18);
	border-radius: 0.95rem;
	background:
		linear-gradient(160deg, rgba(11, 24, 42, 0.84), rgba(7, 15, 27, 0.84)),
		radial-gradient(circle at 12% 0%, rgba(96, 164, 255, 0.13), transparent 45%);
	padding: 0.58rem;
	display: flex;
	flex-direction: column;
	gap: 0.34rem;
	align-self: start;
	cursor: pointer;
	will-change: transform;
	transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.store-wallpaper-card:hover {
	border-color: rgba(179, 221, 255, 0.46);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.store-wallpaper-card.active {
	border-color: rgba(159, 210, 255, 0.76);
	box-shadow:
		0 0 0 1px rgba(162, 211, 255, 0.34) inset,
		0 14px 28px rgba(2, 6, 14, 0.45);
}

.store-wallpaper-card h3 {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0.02rem 0 0;
	color: #f2f8ff;
}

.store-wallpaper-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0.7rem;
	overflow: hidden;
	border: 1px solid rgba(201, 228, 255, 0.22);
	background: rgba(7, 14, 25, 0.9);
	margin-bottom: 0.2rem;
}

.store-wallpaper-thumb video,
.store-wallpaper-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wallpaper-store-shell {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.1rem;
	background: rgba(6, 12, 22, 0.8);
	backdrop-filter: blur(10px);
	padding: 0.85rem;
	font-family: "Poppins", system-ui, sans-serif;
}

.extension-switch-row {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.wallpaper-store-toolbar {
	display: none;
}

.wallpaper-store-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.42rem;
}

.wallpaper-store-tab {
	border: 1px solid rgba(191, 226, 255, 0.14);
	background: rgba(13, 30, 51, 0.54);
	color: #dbe8ff;
	font-size: 0.78rem;
	padding: 0.45rem 0.64rem;
	border-radius: 0.68rem;
	cursor: pointer;
	font-weight: 500;
	font-family: "Poppins", system-ui, sans-serif;
}

.wallpaper-store-tab.active {
	background: linear-gradient(165deg, rgba(67, 124, 206, 0.78), rgba(39, 83, 149, 0.78));
	border-color: rgba(171, 209, 255, 0.52);
	color: #f4f8ff;
}

.wallpaper-store-filters {
	display: grid;
	gap: 0.55rem;
}

#wallpaperStoreSearchInput {
	min-width: 0;
	width: 100%;
}

.wallpaper-store-preview {
	grid-area: preview;
	border: 1px solid rgba(189, 223, 255, 0.17);
	border-radius: 1rem;
	background: rgba(5, 11, 20, 0.56);
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-height: 0;
	height: auto;
	position: static;
	min-width: 0;
	overflow: auto;
}

.wallpaper-store-preview h3 {
	font-size: 1.18rem;
	color: #f2f8ff;
}

.wallpaper-store-status-pill {
	border: 1px solid rgba(176, 214, 255, 0.24);
	border-radius: 0.75rem;
	background: rgba(9, 24, 42, 0.54);
	padding: 0.52rem 0.62rem;
	color: rgba(230, 241, 255, 0.9);
}

.wallpaper-store-rail-meta {
	display: grid;
	gap: 0.32rem;
	padding-top: 0.15rem;
	border-top: 1px solid rgba(176, 214, 255, 0.13);
}

.wallpaper-store-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

.wallpaper-store-preview .wallpaper-store-actions {
	margin-top: 0.5rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45rem;
	width: 100%;
}

.wallpaper-store-btn {
	min-height: 36px;
	padding: 0.5rem 0.9rem;
	border-radius: 0.76rem;
	background: linear-gradient(160deg, rgba(15, 39, 67, 0.86), rgba(9, 27, 48, 0.78));
	border-color: rgba(181, 220, 255, 0.22);
}

.wallpaper-store-shell .settings-btn {
	min-height: 36px;
	padding: 0.5rem 0.9rem;
	border-radius: 0.76rem;
	background: linear-gradient(160deg, rgba(15, 39, 67, 0.86), rgba(9, 27, 48, 0.78));
	border: 1px solid rgba(181, 220, 255, 0.22);
	color: #eaf4ff;
}

#wallpaperStoreUninstallBtn {
	display: none;
}

.wallpaper-preview-media {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: radial-gradient(circle at top, rgba(52, 93, 164, 0.5), rgba(8, 14, 28, 0.92));
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wallpaper-preview-media video,
.wallpaper-preview-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wallpaper-preview-empty {
	color: rgba(210, 223, 247, 0.78);
	font-size: 0.78rem;
}

@media (max-width: 1180px) {
	.wallpaper-store-stage {
		grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
		grid-template-areas:
			"rail content"
			"preview preview";
	}

	.wallpaper-store-content {
		height: auto;
		min-height: 0;
		overflow: hidden;
	}

	.wallpaper-store-preview {
		min-height: 0;
	}

	.wallpaper-store-preview .wallpaper-store-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.wallpaper-store-stage {
		grid-template-columns: 1fr;
		grid-template-areas:
			"rail"
			"content"
			"preview";
	}

	.wallpaper-store-preview {
		min-height: 0;
	}

	.wallpaper-store-shell-v2 {
		padding: 0.85rem;
		min-height: 0;
	}

	.wallpaper-store-preview .wallpaper-store-actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.extensions-page-header h2 {
		font-size: 1.5rem;
	}

	.extension-actions-row .settings-btn {
		flex: 1 1 150px;
	}

	.wallpaper-store-tabs {
		grid-template-columns: 1fr;
	}
}

.partners-header h2 {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.92rem;
}

.partners-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	padding: 1rem;
}

.partner-card {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.85rem;
	background: rgba(3, 7, 14, 0.86);
	padding: 0.75rem;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.partner-logo-wrap {
	height: 74px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 0.65rem;
	background: rgba(5, 10, 18, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
	position: relative;
	overflow: hidden;
}

.partner-logo-img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	max-height: 56px !important;
	border-radius: 0.8rem;
	object-fit: contain !important;
	object-position: center;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(10, 16, 30, 0.8);
	display: block;
	flex: 0 0 auto;
}

.partner-logo {
	width: 56px;
	height: 56px;
	border-radius: 0.8rem;
	background: linear-gradient(140deg, #10182c, #223764);
	border: 1px solid rgba(255, 255, 255, 0.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.05em;
	color: #edf3ff;
	display: none;
}

.partner-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.45rem;
}

.partner-card p {
	font-size: 0.86rem;
	color: rgba(222, 229, 243, 0.8);
	line-height: 1.55;
	min-height: 82px;
}

.partner-btn {
	display: inline-flex;
	width: 100%;
	height: 32px;
	border-radius: 0.5rem;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #f4f8ff;
	background: linear-gradient(180deg, rgba(17, 26, 62, 0.95), rgba(14, 21, 53, 0.95));
	border: 1px solid rgba(83, 109, 214, 0.45);
}

.settings-page-shell {
	max-width: 760px;
	margin: 0 auto;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: rgba(8, 20, 39, 0.08);
}

.settings-page-header {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-page-header h2 {
	font-size: 1rem;
	font-weight: 600;
}

.settings-page-body {
	padding: 0.2rem 0;
}

.home-shell {
	display: grid;
	gap: 0.7rem;
	text-align: center;
	width: min(860px, 92%);
	position: relative;
	z-index: 1;
}

.home-logo {
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 700;
	color: #e8e8e8;
	text-shadow: 0 0 18px var(--glow-color-1);
}

.home-tagline {
	font-size: 0.9rem;
	color: var(--muted);
}

body.has-video-wallpaper .home-logo {
	color: rgba(246, 250, 255, 0.98);
	text-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

body.has-video-wallpaper .home-tagline {
	color: rgba(243, 248, 255, 0.92);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

body[data-wallpaper="onyx"] .home-tagline {
	color: rgba(245, 248, 255, 0.9);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
	background: rgba(8, 10, 14, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 0.18rem 0.62rem;
	display: inline-flex;
	justify-self: center;
}

body[data-wallpaper="winter"] .settings-page-shell {
	background: rgba(6, 14, 28, 0.42);
	border-color: rgba(205, 226, 255, 0.2);
}

body[data-wallpaper="winter"] .settings-page-header {
	border-bottom-color: rgba(230, 240, 255, 0.16);
}

body[data-wallpaper="winter"] .settings-page-header h2,
body[data-wallpaper="winter"] .settings-label,
body[data-wallpaper="winter"] .panic-title,
body[data-wallpaper="winter"] .settings-btn,
body[data-wallpaper="winter"] .settings-input,
body[data-wallpaper="winter"] .settings-select {
	color: rgba(245, 249, 255, 0.98);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

body[data-wallpaper="winter"] .settings-hint {
	color: rgba(231, 240, 255, 0.86);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

body[data-wallpaper="winter"] .settings-input,
body[data-wallpaper="winter"] .settings-select,
body[data-wallpaper="winter"] .settings-btn {
	background: rgba(11, 27, 48, 0.72);
	border-color: rgba(210, 228, 255, 0.25);
}

body[data-wallpaper="winter"] .panic-key-pill {
	background: rgba(16, 36, 61, 0.75);
	border: 1px solid rgba(210, 228, 255, 0.2);
}

.home-search {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.5rem;
	align-items: center;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	background: var(--bg-input);
	border: 1px solid var(--border);
}

.home-search-icon {
	color: var(--muted);
}

body.has-video-wallpaper .home-search-icon {
	color: rgba(236, 243, 255, 0.78);
}

.home-search input {
	background: transparent;
	border: none;
	color: var(--text);
	font-size: 0.9rem;
	outline: none;
	font-family: inherit;
}

body.has-video-wallpaper .home-search input {
	color: rgba(246, 250, 255, 0.96);
}

body.has-video-wallpaper .home-search input::placeholder {
	color: rgba(223, 233, 248, 0.72);
}

.home-tiles {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.home-credits {
	position: fixed;
	left: 1.2rem;
	bottom: 1rem;
	margin-top: 0;
	z-index: 7;
}

.home-credits a {
	font-size: 0.78rem;
	color: var(--team-color-1);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.home-tile {
	min-width: 180px;
	padding: 0.65rem 0.7rem;
	border-radius: 0.9rem;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	display: grid;
	gap: 0.55rem;
	justify-items: center;
	cursor: pointer;
}

.tile-icon {
	width: 34px;
	height: 34px;
	border-radius: 0.75rem;
	background: var(--surface-3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tile-label {
	font-size: 0.75rem;
	font-family: inherit;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	padding: 1rem;
}

.popup-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.modal-content {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 0.9rem;
	width: min(92vw, 380px);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
}

.settings-content {
	width: min(92vw, 460px);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header-right {
	display: flex;
	gap: 0.4rem;
}

.modal-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.close-btn,
.clear-btn {
	border-radius: 0.7rem;
	border: 1px solid var(--border);
	background: var(--surface-3);
	color: var(--text);
	padding: 0.2rem 0.55rem;
	cursor: pointer;
}

.modal-body {
	overflow-y: auto;
	padding: 0.4rem 0;
}

.history-item {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	font-size: 0.74rem;
	word-break: break-all;
}

.settings-section {
	padding: 0.8rem 1rem;
	display: grid;
	gap: 0.55rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.settings-select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border);
	background: var(--bg-input);
	color: #fff;
	font-family: inherit;
}

.settings-input {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border);
	background: var(--bg-input);
	color: #fff;
	font-family: inherit;
}

.settings-row {
	display: flex;
	gap: 0.6rem;
}

.open-mode-row .open-mode-btn {
	flex: 1 1 220px;
}

.open-mode-btn.active {
	border-color: var(--accent-soft);
	box-shadow: 0 0 0 1px var(--accent-soft) inset;
	background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
}

.settings-color {
	flex: 1;
	height: 36px;
	border-radius: 0.6rem;
	border: 1px solid var(--border);
	background: transparent;
}

.settings-btn {
	padding: 0.55rem 0.8rem;
	border-radius: 0.7rem;
	border: 1px solid var(--border);
	background: var(--surface-3);
	color: var(--text);
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.settings-hint {
	font-size: 0.72rem;
	color: var(--muted);
}

.panic-box {
	display: grid;
	gap: 0.45rem;
}

.panic-title {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text);
}

.panic-key-pill {
	font-size: 1.2rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.12);
	padding: 0.25rem 0.8rem;
	border-radius: 0.5rem;
	min-width: 2.4rem;
	text-align: center;
}

.credits-page-shell {
	max-width: 760px;
	margin: 0 auto;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--bg-card);
}

.games-page-shell {
	max-width: none;
	width: 100%;
	margin: 0;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--bg-card);
}

.games-toolbar {
	padding: 0 1rem 0.4rem;
}

.games-search {
	width: 100%;
	font-family: "Poppins", system-ui, sans-serif;
}

.ai-page-shell {
	max-width: none;
	width: 100%;
	margin: 0;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: rgba(8, 20, 39, 0.06);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ai-body {
	padding: 0.2rem 0;
	flex: 1;
	min-height: 0;
}

.ai-chat {
	padding: 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	height: 100%;
}

.ai-chat button,
.ai-chat input,
.ai-chat select {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.ai-speed-row {
	display: grid;
	grid-template-columns: auto 220px;
	align-items: center;
	gap: 0.6rem;
}

.ai-speed-select {
	padding: 0.5rem 0.65rem;
}

.ai-result {
	flex: 1;
	padding: 1rem 1.05rem;
	border: 1px solid transparent;
	border-radius: 0.95rem;
	background: transparent;
	font-size: 0.86rem;
	white-space: pre-wrap;
	word-break: break-word;
	min-height: 420px;
	overflow-y: auto;
}

.ai-text-block {
	white-space: normal;
}

.ai-response-prefix {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.45rem;
}

.ai-response-prefix-logo {
	width: 14px;
	height: 14px;
	display: block;
}

.ai-response-prefix-text {
	font-size: 0.82rem;
	color: var(--muted);
}

.ai-response-body {
	display: block;
}

.ai-thread {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.ai-msg {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.ai-msg-prefix {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.ai-user-prefix-icon {
	font-size: 0.92rem;
	color: var(--muted);
}

.ai-msg-content {
	display: block;
	white-space: pre-wrap;
	word-break: break-word;
}

.ai-code-block {
	margin-top: 0.6rem;
	border: 1px solid var(--border);
	border-radius: 0.65rem;
	background: var(--surface-1);
	overflow: hidden;
}

.ai-code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	border-bottom: 1px solid var(--border);
	background: var(--surface-2);
}

.ai-code-lang {
	font-size: 0.7rem;
	color: var(--muted);
	text-transform: lowercase;
	letter-spacing: 0.03em;
}

.ai-code-actions {
	display: flex;
	gap: 0.4rem;
}

.ai-code-btn {
	padding: 0.22rem 0.5rem;
	border: 1px solid var(--border);
	border-radius: 0.42rem;
	background: var(--surface-3);
	color: var(--text);
	font-size: 0.7rem;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	cursor: pointer;
}

.ai-code-btn:hover {
	filter: brightness(1.08);
}

.ai-code-block pre {
	margin: 0;
	padding: 0.7rem 0.75rem;
	overflow: auto;
	font-size: 0.74rem;
	line-height: 1.35;
}

.ai-code-block code {
	font-family: Consolas, "Courier New", monospace;
}

.ai-prompt-wrap {
	display: flex;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 0.2rem;
	position: sticky;
	bottom: 0;
	background: linear-gradient(180deg, transparent, var(--bg-card) 18%);
	padding-bottom: 0.2rem;
}

.ai-prompt {
	flex: 1;
	min-height: 46px;
	padding: 0.75rem 0.9rem;
}

.games-grid {
	padding: 1rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 0.75rem;
}

.game-card {
	display: grid;
	grid-template-rows: 130px auto;
	border: 1px solid var(--border);
	border-radius: 0.8rem;
	background: var(--surface-2);
	overflow: hidden;
	text-align: left;
	color: var(--text);
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 400;
	cursor: pointer;
}

.game-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--surface-3);
}

.game-body {
	padding: 0.6rem 0.65rem 0.7rem;
	display: grid;
	gap: 0.28rem;
}

.game-title {
	font-size: 0.82rem;
	font-weight: 600;
}

.game-desc {
	font-size: 0.72rem;
	color: var(--muted);
}

.credits-link {
	color: var(--team-color-1);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 760px) {
	.app-shell {
		padding: 0.2rem;
		padding-bottom: 5.4rem;
	}

	.chrome {
		width: calc(100vw - 0.7rem);
		bottom: 0.45rem;
	}

	.toolbar {
		grid-template-columns: auto minmax(0, 1fr) auto;
		width: clamp(290px, calc(100vw - 140px), 560px);
		padding: 0.36rem 0.45rem;
	}

	.tabs-row {
		width: fit-content;
		max-width: 48vw;
	}

	.tabs {
		max-width: 34vw;
	}

	.address-bar {
		width: 100%;
		min-width: 0;
	}

	.toolbar-nav,
	.toolbar-actions {
		justify-content: flex-start;
	}

	.shortcut-counter {
		display: none;
	}
}
