/**
 * 侧栏贴底 dock + 消息抽屉（templates/part-app-sidebar.php）
 * 独立入队，不依赖 Vite；勿写 hidden/md:flex 组合。
 */

.app-sidebar__dock {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	gap: 2px;
	margin-top: auto;
	padding: 8px 4px 0;
	border-top: 1px solid #f3f4f6;
}

.app-sidebar__dock--guest {
	gap: 0;
}

.app-sidebar__dock .app-sidebar__login {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	width: 36px;
	flex: 0 0 36px;
	overflow: visible;
}

.app-sidebar__dock .mytheme-login-guest,
.app-sidebar__dock .app-sidebar__login .btn-primary {
	display: none !important;
}

.app-sidebar__dock .app-sidebar__login .mytheme-login-account {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 40px;
	padding: 0;
	border-radius: 12px;
	text-decoration: none;
}

.app-sidebar__dock .app-sidebar__login .mytheme-login-account img {
	width: 24px;
	height: 24px;
}

.app-sidebar__dock .app-sidebar__login .mytheme-login-name,
.app-sidebar__dock .app-sidebar__login .mytheme-login-vip {
	display: none !important;
}

.app-sidebar__dock .app-sidebar__login .mytheme-login-avatar-wrap .mytheme-notify-avatar-dot {
	display: none !important;
}

.app-sidebar__dock-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 40px;
	flex: 0 0 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #999999;
	cursor: pointer;
	text-decoration: none;
}

a.app-sidebar__dock-login {
	color: #999999;
}

.app-sidebar__dock-btn:hover,
.app-sidebar__dock .app-sidebar__login .mytheme-login-account:hover,
a.app-sidebar__dock-login:hover {
	color: #666666;
	background: rgba(34, 34, 34, 0.06);
	background: color-mix(in oklab, #222222 6%, transparent);
}

.app-sidebar__dock-btn.is-open,
.app-sidebar__dock-btn[aria-expanded='true'] {
	color: #222222;
}

.app-sidebar__dock-btn:focus-visible,
.app-sidebar__dock .app-sidebar__login .mytheme-login-account:focus-visible,
.app-sidebar-notify__close:focus-visible,
.app-sidebar-notify__all:focus-visible,
.app-sidebar-notify__login:focus-visible,
.app-sidebar-notify__item:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

.app-sidebar__dock-btn .app-sidebar__icon,
.app-sidebar__dock .mytheme-login-avatar-wrap {
	position: relative;
}

.app-sidebar__dock-btn .app-sidebar__icon svg {
	width: 22px;
	height: 22px;
}

@media (min-width: 1024px) {
	.app-sidebar__dock {
		padding-left: 4px;
		padding-right: 4px;
	}
}

html.mytheme-sidebar-collapsed .app-sidebar__dock {
	padding-left: 0;
	padding-right: 0;
	gap: 0;
}

html.mytheme-sidebar-collapsed .app-sidebar__dock-btn,
html.mytheme-sidebar-collapsed .app-sidebar__dock .app-sidebar__login,
html.mytheme-sidebar-collapsed .app-sidebar__dock .app-sidebar__login .mytheme-login-account {
	width: 24px;
	flex-basis: 24px;
	padding: 0;
}

.app-sidebar-notify {
	position: fixed;
	inset: 0;
	z-index: 34;
	pointer-events: none;
	view-transition-name: none;
}

.app-sidebar-notify[hidden] {
	display: none;
}

.app-sidebar-notify.is-open {
	pointer-events: auto;
}

.app-sidebar-notify__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: var(--notify-left, 4.5rem);
	background: transparent;
}

.app-sidebar-notify__panel {
	position: absolute;
	top: var(--notify-top, 0);
	left: var(--notify-left, 4.5rem);
	width: min(20rem, calc(100vw - var(--notify-left, 4.5rem)));
	height: var(--notify-height, 100vh);
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-right: 1px solid #f3f4f6;
	box-shadow: 8px 0 24px rgba(34, 34, 34, 0.08);
	opacity: 0;
	transform: translateX(-12px);
	overflow: hidden;
}

.app-sidebar-notify.is-open .app-sidebar-notify__panel {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.2s ease, transform 0.2s ease;
	overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
	.app-sidebar-notify.is-open .app-sidebar-notify__panel {
		transition: none;
	}
}

.app-sidebar-notify__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	gap: 12px;
	padding: 16px 16px 12px 20px;
}

.app-sidebar-notify__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #222222;
}

.app-sidebar-notify__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -10px -8px -10px 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #666666;
	cursor: pointer;
}

.app-sidebar-notify__close:hover {
	background: rgba(34, 34, 34, 0.06);
	background: color-mix(in oklab, #222222 6%, transparent);
}

.app-sidebar-notify__close svg {
	width: 20px;
	height: 20px;
}

.app-sidebar-notify__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 12px 16px;
}

.app-sidebar-notify__status {
	margin: 8px 8px 12px;
	font-size: 14px;
	font-weight: 400;
	color: #999999;
}

.app-sidebar-notify__status[hidden],
.app-sidebar-notify__empty[hidden],
.app-sidebar-notify__list[hidden] {
	display: none;
}

.app-sidebar-notify__empty,
.app-sidebar-notify__guest {
	padding: 24px 12px;
	text-align: left;
}

.app-sidebar-notify__empty-title {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #222222;
}

.app-sidebar-notify__empty-desc {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #666666;
}

.app-sidebar-notify__login,
.app-sidebar-notify__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 9999px;
	border: 1px solid #222222;
	background: transparent;
	color: #222222;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.app-sidebar-notify__login:hover,
.app-sidebar-notify__all:hover {
	background: #e03030;
	border-color: #e03030;
	color: #ffffff;
}

.app-sidebar-notify__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.app-sidebar-notify__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 8px;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
}

.app-sidebar-notify__item:hover {
	background: rgba(34, 34, 34, 0.04);
	background: color-mix(in oklab, #222222 4%, transparent);
}

.app-sidebar-notify__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.app-sidebar-notify__type {
	font-size: 13px;
	font-weight: 500;
	color: #666666;
}

.app-sidebar-notify__time {
	margin-left: auto;
	font-size: 13px;
	font-weight: 400;
	color: #999999;
	white-space: nowrap;
}

.app-sidebar-notify__item-title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #222222;
	word-break: break-word;
}

.app-sidebar-notify__item-body {
	font-size: 13px;
	font-weight: 330;
	line-height: 1.45;
	color: #666666;
	word-break: break-word;
}

.app-sidebar-notify__foot {
	flex-shrink: 0;
	padding: 12px 20px 16px;
	border-top: 1px solid #f3f4f6;
}

.app-sidebar-notify__foot .app-sidebar-notify__all {
	margin-top: 0;
	width: 100%;
}

@media (max-width: 767px) {
	.app-sidebar-notify {
		display: none !important;
	}
}
