.shell-menu-shell {
	position: relative;
	z-index: 200;
	display: inline-flex;
	align-items: center;
}

.shell-menu-shell[hidden] {
	display: none !important;
}

.shell-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 1px solid var(--shell-menu-toggle-border, rgba(15, 108, 189, 0.35));
	border-radius: 0.65rem;
	background: var(--shell-menu-toggle-bg, rgba(255, 255, 255, 0.92));
	color: var(--shell-menu-toggle-color, #0f6cbd);
	font-size: 1.2rem;
	line-height: 1;
	box-shadow: 0 0.35rem 0.9rem rgba(7, 17, 31, 0.12);
	cursor: pointer;
	touch-action: manipulation;
	transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.shell-menu-toggle:hover,
.shell-menu-toggle:focus-visible {
	opacity: 0.92;
	outline: 2px solid var(--shell-menu-toggle-outline, rgba(15, 108, 189, 0.28));
	outline-offset: 2px;
}

.shell-menu-shell--dark .shell-menu-toggle {
	border-color: rgba(56, 189, 248, 0.42);
	background: rgba(23, 32, 51, 0.92);
	color: #38bdf8;
	box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.28);
}

.shell-menu {
	position: fixed;
	top: calc(3.9rem + env(safe-area-inset-top, 0px));
	right: max(0.65rem, env(safe-area-inset-right, 0px));
	z-index: 1000;
	display: grid;
	gap: 0.2rem;
	width: min(17rem, calc(100vw - 1.3rem));
	max-width: calc(100vw - 1.3rem);
	max-height: calc(100dvh - 4.7rem);
	padding: 0.4rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--shell-menu-border, rgba(15, 108, 189, 0.24));
	border-radius: 0.45rem;
	background: var(--shell-menu-bg, #15110a);
	box-shadow:
		0 1.2rem 2.4rem rgba(0, 0, 0, 0.62),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	color: var(--shell-menu-ink, #fff7e6);
}

.shell-menu-shell--light .shell-menu {
	border-color: rgba(15, 108, 189, 0.22);
	background: #07111f;
}

.shell-menu[hidden] {
	display: none !important;
}

.shell-menu button {
	width: 100%;
	min-height: 2.35rem;
	padding: 0 0.85rem;
	border: 0;
	border-radius: 0.25rem;
	background: transparent;
	color: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
}

.shell-menu button:hover,
.shell-menu button:focus-visible {
	background: rgba(244, 201, 107, 0.16);
	outline: 2px solid rgba(244, 201, 107, 0.36);
	outline-offset: 1px;
}

.shell-menu .shell-menu__muted {
	color: #c8bda7;
}

.shell-menu__section {
	display: grid;
	gap: 0.15rem;
	margin-top: 0.15rem;
	padding-top: 0.2rem;
	border-top: 1px solid rgba(244, 201, 107, 0.14);
}

.shell-menu__section-toggle {
	display: flex;
	width: 100%;
	min-height: 2.35rem;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.85rem;
	border: 0;
	border-radius: 0.25rem;
	background: transparent;
	color: #f4c96b;
	font-size: 0.78rem;
	font-weight: 950;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
}

.shell-menu__section-toggle:hover,
.shell-menu__section-toggle:focus-visible {
	background: rgba(244, 201, 107, 0.12);
	outline: 2px solid rgba(244, 201, 107, 0.36);
	outline-offset: 1px;
}

.shell-menu__section-chevron {
	font-size: 0.62rem;
	transition: transform 0.15s ease;
}

.shell-menu__section-toggle[aria-expanded='false'] .shell-menu__section-chevron {
	transform: rotate(-90deg);
}

.shell-menu__submenu {
	display: grid;
	gap: 0.1rem;
	padding-left: 0.35rem;
}

.shell-menu__submenu[hidden] {
	display: none !important;
}

.shell-menu__submenu button[data-shell-nav-current] {
	color: #f4c96b;
}

.shell-feedback-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(7, 17, 31, 0.58);
}

.shell-feedback-backdrop[hidden] {
	display: none !important;
}

.shell-feedback-dialog {
	display: grid;
	gap: 0.75rem;
	width: min(28rem, 100%);
	padding: 1.1rem;
	border: 1px solid rgba(15, 108, 189, 0.24);
	border-radius: 0.85rem;
	background: #fff;
	color: #07111f;
	box-shadow: 0 1.2rem 2.4rem rgba(7, 17, 31, 0.22);
}

.shell-menu-shell--dark + .shell-feedback-backdrop .shell-feedback-dialog,
body:has(.shell-menu-shell--dark) .shell-feedback-dialog {
	background: #172033;
	border-color: rgba(56, 189, 248, 0.24);
	color: #fff;
}

.shell-feedback-dialog h2 {
	margin: 0;
	font-size: 1.1rem;
}

.shell-feedback-dialog p {
	margin: 0;
	color: #526172;
	font-size: 0.88rem;
	line-height: 1.45;
}

.shell-menu-shell--dark ~ .shell-feedback-backdrop .shell-feedback-dialog p,
body:has(.shell-menu-shell--dark) .shell-feedback-dialog p {
	color: #94a3b8;
}

.shell-feedback-dialog textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 7rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(15, 108, 189, 0.22);
	border-radius: 0.55rem;
	font: inherit;
	font-size: 0.92rem;
	line-height: 1.45;
	resize: vertical;
}

body:has(.shell-menu-shell--dark) .shell-feedback-dialog textarea {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.shell-feedback-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.shell-feedback-dialog__actions button {
	min-height: 2.2rem;
	padding: 0 0.85rem;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 800;
	cursor: pointer;
}

.shell-feedback-dialog__cancel {
	background: rgba(7, 17, 31, 0.08);
	color: #07111f;
}

body:has(.shell-menu-shell--dark) .shell-feedback-dialog__cancel {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.shell-feedback-dialog__send {
	background: var(--brand, #0f6cbd);
	color: #fff;
}

.shell-about-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(7, 17, 31, 0.58);
}

.shell-about-backdrop[hidden] {
	display: none !important;
}

.shell-about-dialog {
	display: grid;
	gap: 0.75rem;
	width: min(32rem, 100%);
	padding: 1.1rem;
	border: 1px solid rgba(15, 108, 189, 0.24);
	border-radius: 0.85rem;
	background: #fff;
	color: #07111f;
	box-shadow: 0 1.2rem 2.4rem rgba(7, 17, 31, 0.22);
}

body:has(.shell-menu-shell--dark) .shell-about-dialog {
	background: #172033;
	border-color: rgba(56, 189, 248, 0.24);
	color: #fff;
}

.shell-about-dialog h2 {
	margin: 0;
	font-size: 1.1rem;
}

.shell-about__intro {
	margin: 0;
	color: #526172;
	font-size: 0.82rem;
	line-height: 1.45;
}

body:has(.shell-menu-shell--dark) .shell-about__intro {
	color: #94a3b8;
}

.shell-about-meta {
	display: grid;
	gap: 0.32rem;
	margin: 0;
}

.shell-about-meta__row {
	display: grid;
	grid-template-columns: minmax(4.5rem, 34%) minmax(0, 1fr);
	gap: 0.28rem 0.45rem;
	align-items: baseline;
	padding: 0.38rem 0.48rem;
	border: 1px solid rgba(15, 108, 189, 0.16);
	border-radius: 0.5rem;
	background: rgba(15, 108, 189, 0.04);
}

body:has(.shell-menu-shell--dark) .shell-about-meta__row {
	border-color: rgba(56, 189, 248, 0.18);
	background: rgba(255, 255, 255, 0.04);
}

.shell-about-meta__row dt {
	margin: 0;
	color: #526172;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body:has(.shell-menu-shell--dark) .shell-about-meta__row dt {
	color: #94a3b8;
}

.shell-about-meta__row dd {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.shell-about-dialog__actions {
	display: flex;
	justify-content: flex-end;
}

.shell-about-dialog__close {
	min-height: 2.2rem;
	padding: 0 0.85rem;
	border: 0;
	border-radius: 999px;
	background: var(--brand, #0f6cbd);
	color: #fff;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 800;
	cursor: pointer;
}
