:root {
	color-scheme: dark;
	--bg: #14211b;
	--bg-chrome: #17251e;
	--bg-toolbar: #1c2c24;
	--bg-omnibox: #101c17;
	--bg-omnibox-focus: #16241d;
	--fg: #e8ece9;
	--fg-dim: #93a89d;
	--fg-faint: #63776c;
	--line: #2c4438;
	--line-soft: #26392f;
	--accent: #34e0a1;
	--accent-strong: #17c964;
	--danger: #ff5f57;
	--warn: #febc2e;
	--good: #28c840;
	--radius: 10px;
	--radius-sm: 6px;
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		"SF Pro Text",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	background: #0a120e;
	color: var(--fg);
	font: 13px/1.4 inherit;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
}

.shell {
	display: flex;
	flex: 1;
	min-height: 0;
	background: #0a120e;
}

.sidebar {
	flex: 0 0 auto;
	width: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 0;
	background: #0e1913;
	border-right: 1px solid var(--line-soft);
}

.sidebar__item {
	position: relative;
}

.sidebar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--fg-faint);
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
}

.sidebar__btn:hover {
	background: rgba(52, 224, 161, 0.1);
	color: var(--fg);
}

.sidebar__btn--active {
	background: rgba(52, 224, 161, 0.14);
	color: var(--accent);
}

.sidebar__item::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 50%;
	width: 3px;
	height: 0;
	border-radius: 0 3px 3px 0;
	background: var(--accent-strong);
	transform: translateY(-50%);
	transition: height 140ms ease;
}

.sidebar__item:has(.sidebar__btn--active)::before {
	height: 20px;
}

.sidebar__spacer {
	flex: 1;
}

.sidebar__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sidebar__divider {
	width: 22px;
	height: 1px;
	margin: 4px 0;
	background: var(--line-soft);
}

.browser {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
	background: var(--bg);
}

/* ---------- Title bar / tab strip ---------- */

.titlebar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px 6px;
	background: var(--bg-chrome);
	user-select: none;
}

/* ---------- Tab strip ---------- */

.tabstrip {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: flex-end;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-left: 4px;
}

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

.tab {
	flex: 0 1 200px;
	min-width: 96px;
	max-width: 200px;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 8px 0 10px;
	border-radius: 8px 8px 0 0;
	background: transparent;
	color: var(--fg-faint);
	cursor: pointer;
	user-select: none;
	transition: background-color 120ms ease, color 120ms ease;
}

.tab:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--fg-dim);
}

.tab--active {
	background: var(--bg);
	color: var(--fg);
}

.tab--active:hover {
	background: var(--bg);
}

.tab__icon {
	flex: 0 0 auto;
	display: flex;
	color: var(--fg-faint);
}

.tab--active .tab__icon {
	color: var(--accent);
}

.tab__icon--loading {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1.6px solid var(--line);
	border-top-color: var(--accent-strong);
	animation: spin 700ms linear infinite;
}

.tab__label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
}

.tab__close {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--fg-faint);
	cursor: pointer;
	opacity: 0;
	transition: opacity 120ms ease, background-color 120ms ease, color 120ms ease;
}

.tab:hover .tab__close,
.tab--active .tab__close {
	opacity: 1;
}

.tab__close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--fg);
}

.new-tab-btn {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0 4px 4px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--fg-dim);
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
}

.new-tab-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--fg);
}

/* ---------- Toolbar ---------- */

.toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px 10px;
	background: var(--bg-chrome);
}

.nav-group {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 0 0 auto;
}

.nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--fg-dim);
	cursor: pointer;
	transition:
		background-color 120ms ease,
		color 120ms ease;
}

.nav-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
	color: var(--fg);
}

.nav-btn:active:not(:disabled) {
	background: rgba(255, 255, 255, 0.14);
}

.nav-btn:disabled {
	opacity: 0.32;
	cursor: default;
}

#reload-icon {
	transition: transform 500ms ease;
}

.nav-btn--spin #reload-icon {
	animation: spin 900ms linear infinite;
}

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

/* ---------- Omnibox ---------- */

.omnibox {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--bg-omnibox);
	border: 1px solid transparent;
	transition:
		background-color 120ms ease,
		border-color 120ms ease,
		box-shadow 120ms ease;
}

.omnibox:focus-within {
	background: var(--bg-omnibox-focus);
	border-color: var(--accent-strong);
	box-shadow: 0 0 0 3px rgba(23, 201, 100, 0.18);
}

.omnibox__icon {
	flex: 0 0 auto;
	display: flex;
	color: var(--good);
	opacity: 0.9;
}

.omnibox input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--fg);
	font: inherit;
	font-size: 13.5px;
	padding: 0;
}

.omnibox input:focus {
	outline: 0;
}

.omnibox input::placeholder {
	color: var(--fg-faint);
}

.toolbar__right {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 2px;
}

.media-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--fg-faint);
	font-size: 11.5px;
	white-space: nowrap;
	cursor: default;
	opacity: 0.7;
}

.media-pill__transport {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--fg-faint);
}

.toolbar__divider {
	width: 1px;
	height: 20px;
	margin: 0 4px;
	background: var(--line-soft);
}

.star-btn--active {
	color: var(--accent-strong);
}

.nav-btn[aria-pressed="true"] {
	background: rgba(52, 224, 161, 0.14);
	color: var(--accent);
}

.progress-ring {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid var(--line);
	border-top-color: var(--accent-strong);
	animation: spin 700ms linear infinite;
}

.progress-ring[hidden] {
	display: none;
}

/* ---------- Loading bar ---------- */

.progress-bar {
	position: relative;
	height: 2px;
	background: transparent;
	overflow: hidden;
}

.progress-bar[hidden] {
	display: none;
}

.progress-bar__fill {
	position: absolute;
	inset: 0;
	width: 40%;
	background: var(--accent-strong);
	border-radius: 2px;
	animation: loading-sweep 1.1s ease-in-out infinite;
}

@keyframes loading-sweep {
	0% {
		left: -40%;
	}
	50% {
		left: 60%;
	}
	100% {
		left: 100%;
	}
}

/* ---------- Status pill ---------- */

.status {
	margin: 0;
	padding: 4px 12px;
	background: var(--bg-toolbar);
	border-bottom: 1px solid var(--line-soft);
	color: var(--fg-dim);
	font-size: 12px;
}

.status[hidden] {
	display: none;
}

/* ---------- Content area ---------- */

.frames {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #fff;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
}

.frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: none;
	background: #fff;
}

.frame--active {
	display: block;
}

.frames.split-view {
	display: flex;
	flex-direction: row;
	gap: 1px;
	background: var(--line);
}

.frames.split-view .frame--active {
	position: static;
	flex: 1;
	min-width: 0;
}

.frames.split-view .newtab {
	position: static;
	z-index: auto;
	flex: 1;
	min-width: 0;
	display: flex !important;
}

.frames.split-view .newtab__content {
	padding: 30px 16px;
	gap: 16px;
	transform: scale(0.82);
}

/* ---------- Internal / settings pages ---------- */

.internal {
	max-width: 46rem;
	margin: 0;
	padding: 24px 20px 48px;
	color: #1b1c1e;
}

.internal h1 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.internal h1 + p {
	margin: 0 0 20px;
	color: #6a6b6f;
}

.internal h2 {
	margin: 26px 0 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid #e2e3e5;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6a6b6f;
}

.internal ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.internal li {
	padding: 6px 0;
	border-bottom: 1px solid #ecedef;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.internal li .dim {
	color: #8b8c90;
}

.field {
	display: grid;
	grid-template-columns: 14rem minmax(0, 1fr);
	gap: 4px 12px;
	align-items: start;
	padding: 10px 0;
	border-bottom: 1px solid #ecedef;
}

.field > label {
	padding-top: 3px;
	font-weight: 600;
}

.field__help {
	grid-column: 2;
	margin: 0;
	color: #8b8c90;
}

.field input[type="text"],
.field input[type="url"],
.field select {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #d7d8db;
	border-radius: var(--radius-sm);
	background: #fff;
	color: #1b1c1e;
	font: inherit;
}

.field input[type="text"]:focus,
.field input[type="url"]:focus,
.field select:focus {
	outline: 0;
	border-color: var(--accent-strong);
	box-shadow: 0 0 0 3px rgba(23, 201, 100, 0.18);
}

.field input[type="checkbox"] {
	justify-self: start;
	margin: 4px 0 0;
	accent-color: var(--accent-strong);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.actions button,
.internal button {
	padding: 7px 14px;
	border: 1px solid #d7d8db;
	border-radius: var(--radius-sm);
	background: #f4f4f5;
	color: #1b1c1e;
	font: inherit;
	cursor: pointer;
}

.actions button:hover,
.internal button:hover {
	background: #e9eaeb;
}

@media (max-width: 40rem) {
	.sidebar {
		width: 46px;
	}

	.sidebar__btn {
		width: 30px;
		height: 30px;
	}

	.bg-panel {
		left: 100%;
		right: auto;
		width: 210px;
	}

	.wordmark {
		font-size: 44px;
	}

	.tab {
		min-width: 72px;
		flex-basis: 120px;
	}

	.toolbar {
		flex-wrap: wrap;
	}

	.omnibox {
		order: 3;
		flex-basis: 100%;
	}

	.field {
		grid-template-columns: minmax(0, 1fr);
	}

	.field__help {
		grid-column: 1;
	}

	.internal li {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

/* ---------- New tab page ---------- */

.newtab {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: none;
	flex-direction: column;
	background-image: radial-gradient(circle at 50% 0%, #16281f, #0a120e 70%);
	background-size: cover;
	background-position: center;
	color: var(--fg);
}

.newtab--visible {
	display: flex;
}

.newtab__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 26px;
	padding: 60px 24px;
}

.wordmark {
	margin: 0;
	font-size: 64px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	background: linear-gradient(160deg, #6bf5bf, var(--accent-strong));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 28px rgba(23, 201, 100, 0.45));
}

.tagline {
	margin: -14px 0 0;
	font-size: 14px;
	color: var(--fg-dim);
	letter-spacing: 0.01em;
}

.hero-search {
	width: min(480px, 88vw);
	display: flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.hero-search:focus-within {
	background: rgba(255, 255, 255, 0.09);
	border-color: var(--accent-strong);
	box-shadow: 0 0 0 4px rgba(23, 201, 100, 0.16);
}

.hero-search__icon {
	flex: 0 0 auto;
	display: flex;
	color: var(--fg-dim);
}

.hero-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--fg);
	font: inherit;
	font-size: 15px;
}

.hero-search input:focus {
	outline: 0;
}

.hero-search input::placeholder {
	color: var(--fg-faint);
}

.newtab__shortcuts {
	display: grid;
	grid-template-columns: repeat(auto-fit, 84px);
	justify-content: center;
	gap: 18px 14px;
	max-width: 640px;
	margin-top: 8px;
}

.quicklaunch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	max-width: 640px;
	margin-top: 6px;
}

.quicklaunch__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 64px;
	border: 0;
	background: transparent;
	color: var(--fg-dim);
	cursor: pointer;
}

.quicklaunch__icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	color: var(--fg);
	transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.quicklaunch__item:hover .quicklaunch__icon {
	background: rgba(52, 224, 161, 0.14);
	color: var(--accent);
	transform: translateY(-1px);
}

.quicklaunch__label {
	font-size: 11.5px;
	white-space: nowrap;
}

.shortcuts-panel {
	width: 100%;
	max-width: 640px;
	margin-top: 4px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcuts-panel[hidden] {
	display: none;
}

.shortcuts-panel__label {
	margin-bottom: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fg-faint);
	text-align: center;
}

.shortcut {
	position: relative;
	width: 84px;
}

.shortcut__link {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px 4px 8px;
	border: 0;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.05);
	color: var(--fg);
	font: inherit;
	cursor: pointer;
	transition: background-color 120ms ease, transform 120ms ease;
}

.shortcut__link:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

.shortcut__icon {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.shortcut__icon-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.94);
	padding: 7px;
	box-sizing: border-box;
}

.shortcut__label {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11.5px;
	color: var(--fg-dim);
}

.shortcut__edit,
.shortcut__remove {
	position: absolute;
	top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 18, 14, 0.9);
	color: var(--fg-dim);
	opacity: 0;
	cursor: pointer;
	transition: opacity 120ms ease, background-color 120ms ease, color 120ms ease;
}

.shortcut__edit {
	right: 26px;
}

.shortcut__remove {
	right: 2px;
}

.shortcut:hover .shortcut__edit,
.shortcut:hover .shortcut__remove,
.shortcut:focus-within .shortcut__edit,
.shortcut:focus-within .shortcut__remove {
	opacity: 1;
}

.shortcut__edit:hover,
.shortcut__remove:hover {
	background: rgba(10, 18, 14, 1);
	color: #fff;
}

.shortcut--add .shortcut__link,
.shortcut--add {
	background: transparent;
}

.shortcut--add {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px 4px 8px;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: var(--radius);
	background: transparent;
	color: var(--fg-dim);
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.shortcut--add:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--fg);
}

.shortcut__icon--add {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 400;
	background: rgba(255, 255, 255, 0.08);
	color: var(--fg-dim);
	text-shadow: none;
}

/* ---------- Background customize panel (sidebar flyout) ---------- */

.bg-panel {
	position: absolute;
	left: 100%;
	top: 0;
	margin-left: 10px;
	z-index: 20;
	width: 230px;
	padding: 14px;
	border-radius: var(--radius);
	background: #16241d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.bg-panel[hidden] {
	display: none;
}

.bg-panel__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.bg-panel__title {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--fg);
}

.bg-panel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--fg-dim);
	cursor: pointer;
}

.bg-panel__close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--fg);
}

.bg-swatches {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 6px;
	margin-bottom: 12px;
}

.bg-swatch {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 2px solid transparent;
	background-size: cover;
	cursor: pointer;
	padding: 0;
}

.bg-swatch:hover {
	border-color: rgba(255, 255, 255, 0.35);
}

.bg-swatch--active {
	border-color: var(--accent-strong);
}

.bg-panel__field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	color: var(--fg-dim);
}

.bg-panel__field input[type="color"] {
	width: 30px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
}

.bg-panel__field--file input[type="file"] {
	max-width: 130px;
	font-size: 11px;
	color: var(--fg-dim);
}

.bg-panel__reset {
	width: 100%;
	margin-top: 4px;
	padding: 6px 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--fg-dim);
	font-size: 12px;
	cursor: pointer;
}

.bg-panel__reset:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--fg);
}

/* ---------- Shortcut dialog ---------- */

.shortcut-dialog {
	width: min(320px, calc(100% - 32px));
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	background: #16241d;
	color: var(--fg);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.shortcut-dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}

.shortcut-dialog form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
}

.shortcut-dialog h3 {
	margin: 0;
	font-size: 14px;
}

.shortcut-dialog__icon-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.shortcut-icon-preview {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-color: var(--line);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.shortcut-dialog__icon-controls {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.shortcut-dialog__icon-upload {
	font-size: 12px;
	color: var(--accent);
	cursor: pointer;
	width: fit-content;
}

.shortcut-dialog__icon-upload:hover {
	text-decoration: underline;
}

.shortcut-dialog__icon-clear {
	border: 0;
	background: transparent;
	padding: 0;
	font-size: 11.5px;
	color: var(--fg-faint);
	cursor: pointer;
	text-align: left;
	width: fit-content;
}

.shortcut-dialog__icon-clear:hover {
	color: var(--fg-dim);
}

.shortcut-dialog__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 12px;
	color: var(--fg-dim);
}

.shortcut-dialog__field input {
	padding: 7px 9px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg-omnibox);
	color: var(--fg);
	font: inherit;
}

.shortcut-dialog__field input:focus {
	outline: 0;
	border-color: var(--accent-strong);
	box-shadow: 0 0 0 3px rgba(23, 201, 100, 0.18);
}

.shortcut-dialog__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 4px;
}

.btn {
	padding: 7px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
}

.btn--secondary {
	background: transparent;
	border-color: var(--line);
	color: var(--fg-dim);
}

.btn--secondary:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--fg);
}

.btn--primary {
	background: var(--accent-strong);
	color: #0f1011;
	font-weight: 600;
}

.btn--primary:hover {
	background: #3fe08a;
}

@media (max-width: 40rem) {
	.newtab__shortcuts {
		grid-template-columns: repeat(auto-fit, 72px);
		gap: 14px 10px;
	}

	.shortcut {
		width: 72px;
	}
}
