/* Target switcher and bottom tab navigation. */

.iks-mobile-shell__target-switcher {
	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--iks-mobile-shell-target-switcher-offset);
	z-index: 995;
	padding: 0;
	border-top: 1px solid #d7dde5;
	background: #ffffff;
	backdrop-filter: none;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition:
		transform 180ms ease,
		opacity 180ms ease,
		visibility 0s linear 180ms;
	visibility: hidden;
}

.iks-mobile-shell__target-switcher.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
	visibility: visible;
}

.iks-mobile-shell__target-switcher-bar {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
}

.iks-mobile-shell__target-switcher-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 48px;
	padding: 6px 4px;
	border: 0;
	border-right: 1px solid #eef2f7;
	border-radius: 0;
	background: #ffffff;
	font: inherit;
	color: #64748b;
	cursor: pointer;
	transition:
		background-color 160ms ease,
		color 160ms ease,
		box-shadow 160ms ease;
}

.iks-mobile-shell__target-switcher-link:hover,
.iks-mobile-shell__target-switcher-link:focus-visible {
	background: #f8fafc;
	color: #0f172a;
	outline: none;
}

.iks-mobile-shell__target-switcher-link.is-current {
	background: #f8fafc;
	box-shadow: inset 0 -2px 0 #0f172a;
	color: #0f172a;
}

.iks-mobile-shell__target-switcher-link.is-disabled,
.iks-mobile-shell__target-switcher-link[aria-disabled="true"] {
	background: #f8fafc;
	box-shadow: none;
	color: #94a3b8;
	cursor: default;
	opacity: 1;
}

.iks-mobile-shell__target-switcher-link.is-disabled:hover,
.iks-mobile-shell__target-switcher-link.is-disabled:focus-visible,
.iks-mobile-shell__target-switcher-link[aria-disabled="true"]:hover,
.iks-mobile-shell__target-switcher-link[aria-disabled="true"]:focus-visible {
	background: #f8fafc;
	box-shadow: none;
	color: #94a3b8;
	outline: none;
}

.iks-mobile-shell__target-switcher-link.is-disabled.is-current,
.iks-mobile-shell__target-switcher-link[aria-disabled="true"].is-current {
	box-shadow: inset 0 -2px 0 #cbd5e1;
	color: #64748b;
}

.iks-mobile-shell__target-switcher-link:last-child {
	border-right: 0;
}

.iks-mobile-shell__target-switcher-link[data-target-key="spot"] {
	--iks-mobile-shell-switcher-icon-color: var(--iks-mobile-shell-target-color-spot);
}

.iks-mobile-shell__target-switcher-link[data-target-key="article"] {
	--iks-mobile-shell-switcher-icon-color: var(--iks-mobile-shell-target-color-article);
}

.iks-mobile-shell__target-switcher-link[data-target-key="waza"] {
	--iks-mobile-shell-switcher-icon-color: var(--iks-mobile-shell-target-color-waza);
}

.iks-mobile-shell__target-switcher-link[data-target-key="aruaru"] {
	--iks-mobile-shell-switcher-icon-color: var(--iks-mobile-shell-target-color-aruaru);
}

.iks-mobile-shell__target-switcher-link[data-target-key="item"] {
	--iks-mobile-shell-switcher-icon-color: var(--iks-mobile-shell-target-color-item);
}

.iks-mobile-shell__target-switcher-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: var(--iks-mobile-shell-switcher-icon-color, currentColor);
	transition: color 160ms ease;
}

.iks-mobile-shell__target-switcher-icon svg {
	width: 100%;
	height: 100%;
}

.iks-mobile-shell__target-switcher-icon path,
.iks-mobile-shell__target-switcher-icon rect,
.iks-mobile-shell__target-switcher-icon circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.iks-mobile-shell__target-switcher-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.64rem;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	word-break: keep-all;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.iks-mobile-shell__target-switcher-badge {
	display: block;
	max-width: 100%;
	overflow: hidden;
	font-size: 0.44rem;
	font-weight: 800;
	line-height: 1.05;
	text-align: center;
	color: #94a3b8;
	letter-spacing: 0.01em;
	word-break: normal;
}

.iks-mobile-shell__target-switcher-link.is-disabled .iks-mobile-shell__target-switcher-icon,
.iks-mobile-shell__target-switcher-link[aria-disabled="true"] .iks-mobile-shell__target-switcher-icon {
	color: #cbd5e1;
}

@media (max-width: 380px) {
	.iks-mobile-shell-save__header {
		flex-direction: column;
		align-items: stretch;
	}

	.iks-mobile-shell-save__count {
		align-self: flex-start;
	}

	.iks-mobile-shell-watch__header {
		flex-direction: column;
		align-items: stretch;
	}

	.iks-mobile-shell-watch__count {
		align-self: flex-start;
	}

	.iks-mobile-shell__target-switcher {
		padding-left: 0;
		padding-right: 0;
	}

	.iks-mobile-shell__target-switcher-bar {
		gap: 0;
	}

	.iks-mobile-shell__target-switcher-link {
		min-height: 46px;
		padding-left: 2px;
		padding-right: 2px;
	}

	.iks-mobile-shell__target-switcher-name {
		font-size: 0.58rem;
	}

	.iks-mobile-shell__target-switcher-badge {
		font-size: 0.4rem;
	}

	.iks-mobile-shell-watch-card__head {
		flex-direction: column;
		align-items: stretch;
	}

	.iks-mobile-shell-watch-card__actions {
		justify-content: stretch;
	}

	.iks-mobile-shell-watch-card__action {
		width: 100%;
	}





	.iks-mobile-shell-menu__item {
		grid-template-columns: 40px minmax(0, 1fr) 18px;
		gap: 12px;
		padding: 14px;
	}

	.iks-mobile-shell-menu__item-icon {
		width: 40px;
		height: 40px;
		border-radius: 14px;
	}

	.iks-mobile-shell-item-card {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
		padding: 12px;
	}





	.iks-mobile-shell-item-card__media,
	.iks-mobile-shell-item-card__image-placeholder {
		min-height: 96px;
	}

	.iks-single-item__head-main {
		flex-direction: column;
		align-items: stretch;
	}

	.iks-single-item__save-btn {
		align-self: flex-start;
	}
}

.iks-mobile-shell__tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: var(--iks-mobile-shell-tabbar-base-h);
	gap: 0;
	width: 100%;
	height: calc(var(--iks-mobile-shell-tabbar-h) + var(--iks-mobile-shell-tabbar-bottom-gap));
	min-height: calc(var(--iks-mobile-shell-tabbar-h) + var(--iks-mobile-shell-tabbar-bottom-gap));
	padding:
		0
		max(0px, env(safe-area-inset-right, 0px))
		calc(env(safe-area-inset-bottom, 0px) + var(--iks-mobile-shell-tabbar-bottom-gap))
		max(0px, env(safe-area-inset-left, 0px));
	border-top: 1px solid #d7dde5;
	border-right: 0;
	border-bottom: 0;
	border-left: 0;
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	backdrop-filter: none;
	box-sizing: border-box;
	align-items: stretch;
	overflow: hidden;
	transform: none;
}

.iks-mobile-shell__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	height: var(--iks-mobile-shell-tabbar-base-h);
	min-height: 0;
	gap: 0;
	padding: 3px 2px 0;
	box-sizing: border-box;
	border: 0;
	border-right: 1px solid #eef2f7;
	border-radius: 0;
	background: none;
	appearance: none;
	font: inherit;
	line-height: 1;
	text-decoration: none;
	color: #64748b;
	cursor: pointer;
	overflow: hidden;
	transition:
		transform 160ms ease,
		background-color 160ms ease,
		color 160ms ease;
}

.iks-mobile-shell__tab:hover,
.iks-mobile-shell__tab:focus-visible {
	background: #f8fafc;
	color: #0f172a;
	transform: none;
}

.iks-mobile-shell__tab.is-active {
	background: #ffffff;
	box-shadow: inset 0 3px 0 #0f172a;
	color: #0f172a;
}

.iks-mobile-shell__tab:last-child {
	border-right: 0;
}

.iks-mobile-shell[data-current-target="spot"] {
	--iks-mobile-shell-current-target-color: var(--iks-mobile-shell-target-color-spot);
}

.iks-mobile-shell[data-current-target="article"] {
	--iks-mobile-shell-current-target-color: var(--iks-mobile-shell-target-color-article);
}

.iks-mobile-shell[data-current-target="waza"] {
	--iks-mobile-shell-current-target-color: var(--iks-mobile-shell-target-color-waza);
}

.iks-mobile-shell[data-current-target="aruaru"] {
	--iks-mobile-shell-current-target-color: var(--iks-mobile-shell-target-color-aruaru);
}

.iks-mobile-shell[data-current-target="item"] {
	--iks-mobile-shell-current-target-color: var(--iks-mobile-shell-target-color-item);
}

.iks-mobile-shell__tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	margin-top: 1px;
	color: currentColor;
	transition: color 160ms ease;
}

.iks-mobile-shell__tab[data-tab-key="save"] .iks-mobile-shell__tab-icon {
	color: var(--iks-mobile-shell-tab-color-save);
}

.iks-mobile-shell__tab[data-tab-key="watch"] .iks-mobile-shell__tab-icon {
	color: var(--iks-mobile-shell-tab-color-watch);
}

.iks-mobile-shell__tab[data-tab-key="menu"] .iks-mobile-shell__tab-icon {
	color: var(--iks-mobile-shell-tab-color-menu);
}

.iks-mobile-shell__tab--target .iks-mobile-shell__tab-icon {
	color: var(--iks-mobile-shell-current-target-color);
}

.iks-mobile-shell__tab--content[data-content-target="spot"] {
	--iks-mobile-shell-content-tab-color: var(--iks-mobile-shell-target-color-spot);
}

.iks-mobile-shell__tab--content[data-content-target="article"] {
	--iks-mobile-shell-content-tab-color: var(--iks-mobile-shell-target-color-article);
}

.iks-mobile-shell__tab--content[data-content-target="item"] {
	--iks-mobile-shell-content-tab-color: var(--iks-mobile-shell-target-color-item);
}

.iks-mobile-shell__tab--content[data-content-target="aruaru"] {
	--iks-mobile-shell-content-tab-color: var(--iks-mobile-shell-target-color-aruaru);
}

.iks-mobile-shell__tab--content.is-active {
	box-shadow: inset 0 3px 0 var(--iks-mobile-shell-content-tab-color, #0f172a);
	color: var(--iks-mobile-shell-content-tab-color, #0f172a);
}

.iks-mobile-shell__tab-icon svg {
	width: 100%;
	height: 100%;
}

.iks-mobile-shell__tab-icon path,
.iks-mobile-shell__tab-icon rect,
.iks-mobile-shell__tab-icon circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.iks-mobile-shell__tab-label {
	font-size: 0.54rem;
	font-weight: 700;
	line-height: 0.95;
	text-align: center;
	word-break: keep-all;
}
