/* SZ Bookmarks */
.sz-bm { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.sz-bm-btn {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	background: transparent; border: 1px solid currentColor; color: inherit;
	border-radius: 6px; padding: 6px 12px; font: inherit; line-height: 1.6;
	transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.sz-bm-btn:hover { opacity: .8; }
.sz-bm.is-busy .sz-bm-btn { opacity: .5; pointer-events: none; }

.sz-bm-icon {
	width: 18px; height: 18px; display: inline-block; flex: none;
	background: currentColor;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	transition: transform .18s ease;
}
.sz-bm.is-on .sz-bm-btn { background: #e63946; border-color: #e63946; color: #fff; }
.sz-bm.is-on .sz-bm-icon {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
}
.sz-bm.just-added .sz-bm-icon { animation: sz-bm-pop .45s ease; }
@keyframes sz-bm-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }

/* دکمه شناور */
.sz-bm-float { position: fixed; z-index: 9990; }
.sz-bm-float.pos-bottom-start { inset-inline-start: 20px; bottom: 20px; }
.sz-bm-float.pos-bottom-end { inset-inline-end: 20px; bottom: 20px; }
.sz-bm-float.pos-middle-start { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.sz-bm-float.pos-middle-end { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
.sz-bm-float .sz-bm-btn {
	background: #fff; color: #444; border: 1px solid rgba(0,0,0,.08);
	box-shadow: 0 4px 16px rgba(0,0,0,.16); border-radius: 40px;
	padding: 12px 16px; max-width: 52px; overflow: hidden; white-space: nowrap;
	transition: max-width .3s ease, background .2s ease, color .2s ease;
}
.sz-bm-float .sz-bm-label { opacity: 0; transition: opacity .2s ease .05s; font-size: .9em; }
.sz-bm-float .sz-bm-btn:hover, .sz-bm-float.is-on .sz-bm-btn { max-width: 280px; }
.sz-bm-float .sz-bm-btn:hover .sz-bm-label, .sz-bm-float.is-on .sz-bm-label { opacity: 1; }
.sz-bm-float.is-on .sz-bm-btn { background: #e63946; border-color: #e63946; color: #fff; }
.sz-bm-float:not(.is-on) .sz-bm-icon { color: #e63946; background: #e63946; }

.sz-bm-count { font-size: .85em; opacity: .7; }

/* ---------------------------------------------------------------
   صفحه علاقه‌مندی‌ها — هم‌سبک با صفحه‌های حساب کاربری
   --------------------------------------------------------------- */
.sz-bm-wrap {
	position: relative; direction: rtl;
	--szbm-accent: #6d28d9;
	--szbm-card: #fff;
	--szbm-line: #e8eaef;
	--szbm-title: #1a1d23;
	--szbm-muted: #8a93a3;
	--szbm-soft: #f1f3f7;
	font-size: 14px;
}

/* کاشی‌های آمار */
.sz-bm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sz-bm-stat {
	padding: 16px 18px; border-radius: 14px; background: var(--szbm-card);
	border: 1px solid var(--szbm-line); box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.sz-bm-stat-label { display: block; font-size: 12px; font-weight: 500; color: var(--szbm-muted); margin-bottom: 6px; }
.sz-bm-stat-value { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--szbm-title); }
.sz-bm-stat-value { display: flex; align-items: baseline; gap: 5px; }
.sz-bm-stat-value small { font-size: 13px; font-weight: 600; color: var(--szbm-muted); }
.sz-bm-bar { display: block; height: 5px; border-radius: 99px; background: var(--szbm-soft); margin-top: 10px; overflow: hidden; }
.sz-bm-bar i { display: block; height: 100%; border-radius: 99px; background: var(--szbm-accent); transition: width .3s ease; }
.sz-bm-stat.is-notify .sz-bm-bar i { background: #d97706; }
.sz-bm-stat.is-accent .sz-bm-stat-value { color: var(--szbm-accent); }
.sz-bm-stat.is-plus .sz-bm-stat-value { color: #059669; }
.sz-bm-stat.is-notify .sz-bm-stat-value { color: #d97706; }

/* نوار مجموعه‌ها */
.sz-bm-colls { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-width: 0; }
.sz-bm-colls-track { display: flex; gap: 8px; flex: 1; min-width: 0; flex-wrap: nowrap; align-items: center; }
.sz-bm-more { position: relative; flex: 0 0 auto; }
.sz-bm-more-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 14px; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 600;
	color: #4a5261; background: var(--szbm-soft); border: 1px solid var(--szbm-line); cursor: pointer; white-space: nowrap;
}
.sz-bm-more-btn::after {
	content: ''; width: 12px; height: 12px; background: currentColor; opacity: .5;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.sz-bm-more.is-open .sz-bm-more-btn { border-color: var(--szbm-accent); color: var(--szbm-accent); }
.sz-bm-more-menu {
	position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 45;
	min-width: 210px; max-height: 300px; overflow-y: auto; margin: 0; padding: 6px;
	list-style: none !important; background: var(--szbm-card); border: 1px solid var(--szbm-line);
	border-radius: 12px; box-shadow: 0 12px 30px rgba(16,24,40,.14);
}
.sz-bm-more-menu li { list-style: none !important; margin: 0; padding: 0; }
.sz-bm-more-menu li::marker, .sz-bm-more-menu li::before { content: none !important; }
.sz-bm-more-menu .sz-bm-coll {
	display: flex; width: 100%; max-width: none; justify-content: space-between;
	border: 0; border-radius: 8px; background: none; padding: 9px 11px; margin: 0;
}
.sz-bm-more-menu .sz-bm-coll:hover { background: var(--szbm-soft); }
.sz-bm-colls-fixed { display: flex; gap: 8px; flex: 0 0 auto; }
.sz-bm-coll, .sz-bm-coll-new, .sz-bm-discover, .sz-bm-tools button {
	padding: 7px 15px; border-radius: 99px; font-size: 13px; font-weight: 600;
	color: #4a5261; background: var(--szbm-card); border: 1px solid var(--szbm-line);
	cursor: pointer; text-decoration: none; font-family: inherit;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}
.sz-bm-coll:hover, .sz-bm-coll-new:hover, .sz-bm-discover:hover, .sz-bm-tools button:hover { border-color: var(--szbm-accent); }
.sz-bm-coll.is-active { color: #fff; background: var(--szbm-accent); border-color: var(--szbm-accent); }
.sz-bm-colls-track > * { flex: 0 0 auto; }
.sz-bm-coll { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; }
.sz-bm-coll bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
.sz-bm-coll em {
	font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
	background: var(--szbm-soft); color: var(--szbm-muted);
	border-radius: 99px; padding: 3px 7px; flex: none;
}
.sz-bm-coll.is-active em { background: rgba(255,255,255,.22); color: #fff; }
.sz-bm-coll.is-notify { border-color: rgba(217,119,6,.35); color: #b45309; }
.sz-bm-coll.is-notify.is-active { background: #d97706; border-color: #d97706; color: #fff; }
.sz-bm-coll-new { color: var(--szbm-accent); border-style: dashed; }
.sz-bm-discover { color: var(--szbm-accent); border-color: rgba(109,40,217,.3); }
.sz-bm-discover.is-active { background: var(--szbm-accent); color: #fff; border-color: var(--szbm-accent); }

/* نوار ابزار */
.sz-bm-toolbar { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.sz-bm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sz-bm-search {
	padding: 9px 38px 9px 14px; border: 1px solid var(--szbm-line); border-radius: 10px;
	font: inherit; font-size: 13px; background: var(--szbm-card); color: #4a5261; line-height: 1.7;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='20' y1='20' x2='16.7' y2='16.7'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-size: 16px; background-position: right 12px center;
}

/* منوی کشویی اختصاصی */
.sz-bm-dd { position: relative; }
.sz-bm-dd-btn {
	display: flex; align-items: center; gap: 8px; min-width: 175px;
	padding: 9px 14px; border: 1px solid var(--szbm-line); border-radius: 10px;
	background: var(--szbm-card); color: #4a5261; font: inherit; font-size: 13px; cursor: pointer;
	text-align: start;
}
.sz-bm-dd-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-bm-dd-btn::after {
	content: ''; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .45;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	transition: transform .15s ease;
}
.sz-bm-dd.is-open .sz-bm-dd-btn { border-color: var(--szbm-accent); }
.sz-bm-dd.is-open .sz-bm-dd-btn::after { transform: rotate(180deg); }
.sz-bm-dd-menu {
	position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 40;
	min-width: 100%; max-height: 260px; overflow-y: auto; list-style: none; margin: 0; padding: 6px;
	background: var(--szbm-card); border: 1px solid var(--szbm-line); border-radius: 12px;
	box-shadow: 0 12px 30px rgba(16,24,40,.12);
}
.sz-bm-dd-menu, .sz-bm-dd-menu li { list-style: none !important; }
.sz-bm-dd-menu li { margin: 0; padding: 0; }
.sz-bm-dd-menu li::marker, .sz-bm-dd-menu li::before { content: none !important; display: none !important; }
.sz-bm-dd-menu button {
	display: block; width: 100%; text-align: start; padding: 9px 11px; border: 0; border-radius: 8px;
	background: none; color: #4a5261; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.sz-bm-dd-menu button:hover { background: var(--szbm-soft); }
.sz-bm-dd-menu button.is-sel { background: rgba(109,40,217,.08); color: var(--szbm-accent); font-weight: 700; }
.sz-bm-dd-menu em { font-style: normal; opacity: .5; font-size: .9em; }
.sz-bm-search { width: 220px; }
.sz-bm-search:focus, .sz-bm-sort:focus { outline: 0; border-color: var(--szbm-accent); }

/* نوار انتخاب گروهی */
.sz-bm-bulkbar {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	background: var(--szbm-soft); border: 1px solid var(--szbm-line);
	border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px;
}
.sz-bm-bulkbar .sz-bm-dd { flex: 0 0 auto; }
.sz-bm-bulkbar .sz-bm-dd-btn { min-width: 170px; padding: 8px 12px; }
.sz-bm-bulkbar .sz-bm-mbtn { padding: 8px 16px; font-size: 12.5px; }
.sz-bm-selall { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: #4a5261; }
.sz-bm-selcount { color: var(--szbm-accent); font-weight: 700; }
.sz-bm-bulkmove {
	max-width: 190px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--szbm-line);
	background: var(--szbm-card); color: #4a5261; font: inherit; font-size: 12.5px;
}

/* آیتم‌ها — ردیف افقی مثل بقیه‌ی صفحه‌های حساب */
.sz-bm-items { display: grid; gap: 10px; }
.layout-grid .sz-bm-items { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); align-items: stretch; }
.layout-grid .sz-bm-item { height: 100%; display: flex; flex-direction: column; }
.layout-grid .sz-bm-body { flex: 1 1 auto; }
.layout-grid .sz-bm-actions { margin-top: auto; }

.sz-bm-item {
	position: relative; display: flex; align-items: center; gap: 14px; padding: 12px;
	border-radius: 14px; background: var(--szbm-card); border: 1px solid var(--szbm-line);
	box-shadow: 0 1px 2px rgba(16,24,40,.04);
	transition: transform .15s ease, box-shadow .15s ease;
}
.sz-bm-item:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,24,40,.07); }
.layout-grid .sz-bm-item { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.layout-grid .sz-bm-body { padding: 12px 13px 10px; gap: 6px; }
.layout-grid .sz-bm-title { font-size: 13.5px; line-height: 1.75; min-height: 3.5em; }
.layout-grid .sz-bm-meta { font-size: 11.5px; }
.layout-grid .sz-bm-actions { padding: 0 13px 13px; gap: 6px; }
.layout-grid .sz-bm-note { -webkit-line-clamp: 2; font-size: 11.5px; padding: 6px 9px; }

.layout-grid .sz-bm-note { margin-top: 2px; }

.sz-bm-thumb {
	flex: 0 0 92px; width: 92px; height: 66px; border-radius: 10px; overflow: hidden;
	background: linear-gradient(135deg, #eef1f6, #e3e7ee); display: block; line-height: 0;
}
.sz-bm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.layout-grid .sz-bm-thumb { flex: none; width: 100%; height: auto; border-radius: 0; }
.layout-grid .sz-bm-thumb img { aspect-ratio: 16/10; }
.sz-bm-noimg {
	display: block; width: 100%; height: 100%;
	background: linear-gradient(135deg, #eef1f6, #e3e7ee) center / 30px no-repeat;
	background-image:
		url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c0cd' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.8'/%3E%3Cpath d='M21 16l-5-5-6 6-3-3-4 4'/%3E%3C/svg%3E"),
		linear-gradient(135deg, #eef1f6, #e3e7ee);
	background-repeat: no-repeat; background-position: center; background-size: 30px, cover;
}
.layout-grid .sz-bm-noimg { aspect-ratio: 16/10; }

.sz-bm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.layout-grid .sz-bm-body { padding: 12px 14px 13px; }
.sz-bm-title {
	font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--szbm-title); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sz-bm-title:hover { color: var(--szbm-accent); }
.sz-bm-meta { font-size: 12px; color: var(--szbm-muted); }
.sz-bm-note {
	font-size: 12px; line-height: 1.8; color: #6b7280; background: var(--szbm-soft);
	border-radius: 8px; padding: 5px 9px; margin-top: 3px;
	display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.sz-bm-note.is-empty { display: none; }

.sz-bm-actions { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.layout-grid .sz-bm-actions { padding: 0 14px 13px; }
.sz-bm-chip {
	flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
	padding: 7px 11px; border-radius: 99px; border: 1px solid var(--szbm-line);
	background: var(--szbm-soft); color: #4a5261; font: inherit; font-size: 12.5px; cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}
.sz-bm-chip:hover { border-color: var(--szbm-accent); color: var(--szbm-accent); }
.sz-bm-chip .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.sz-bm-chip .txt bdi { unicode-bidi: plaintext; }
.sz-bm-chip .ico {
	width: 14px; height: 14px; flex: none; background: currentColor; opacity: .6;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}
.sz-bm-chip.is-notify { border-color: rgba(217,119,6,.35); color: #b45309; background: rgba(217,119,6,.07); }
.sz-bm-del, .sz-bm-note-btn {
	background: var(--szbm-card); border: 1px solid var(--szbm-line); border-radius: 9px;
	width: 32px; height: 32px; cursor: pointer; line-height: 1; color: #4a5261; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
}
.sz-bm-del { font-size: 18px; }
.sz-bm-del:hover { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.32); color: #b91c1c; }
.sz-bm-note-btn:hover { border-color: var(--szbm-accent); color: var(--szbm-accent); }

.sz-bm-pick {
	position: static; flex: 0 0 auto; background: none; padding: 0; line-height: 0;
	display: inline-flex; align-items: center;
}
.layout-grid .sz-bm-pick { position: absolute; inset-inline-start: 10px; top: 10px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 6px; padding: 3px 4px; }
.sz-bm-pick input, .sz-bm-selall input {
	-webkit-appearance: none; appearance: none; margin: 0; cursor: pointer;
	width: 20px; height: 20px; border-radius: 6px; flex: none; position: relative;
	border: 1.5px solid #c9ced8; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.08);
	transition: background .15s ease, border-color .15s ease;
}
.sz-bm-pick input:hover, .sz-bm-selall input:hover { border-color: var(--szbm-accent); }
.sz-bm-pick input:checked, .sz-bm-selall input:checked { background: var(--szbm-accent); border-color: var(--szbm-accent); }
.sz-bm-pick input:checked::after, .sz-bm-selall input:checked::after {
	content: ''; position: absolute; inset-inline-start: 6px; top: 2px;
	width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.layout-grid .sz-bm-pick { background: none; padding: 0; top: 10px; inset-inline-start: 10px; }

/* صفحه‌بندی و حالت خالی */
.sz-bm-pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.sz-bm-pager button, .sz-bm-pager a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
	font-size: 13px; font-weight: 600; text-decoration: none;
	color: #4a5261; background: var(--szbm-card); border: 1px solid var(--szbm-line); cursor: pointer;
}
.sz-bm-pager button.is-active, .sz-bm-pager a.is-active { background: var(--szbm-accent); border-color: var(--szbm-accent); color: #fff; }
.sz-bm-empty {
	grid-column: 1 / -1; padding: 28px; text-align: center; border-radius: 14px;
	background: var(--szbm-card); border: 1px dashed #dfe3ea; color: var(--szbm-muted); font-size: 13.5px;
}

.sz-bm-loading {
	position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
	padding-top: 140px; background: rgba(255,255,255,.35); pointer-events: none;
}
.sz-bm-loading[hidden], .sz-bm-wrap [hidden] { display: none !important; }
.sz-bm-spinner { width: 26px; height: 26px; border: 3px solid rgba(127,127,127,.25); border-top-color: var(--szbm-accent); border-radius: 50%; animation: sz-bm-spin .7s linear infinite; }
@keyframes sz-bm-spin { to { transform: rotate(360deg); } }

.sz-bm-toast {
	position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 99999;
	background: #1a1d23; color: #fff; padding: 11px 18px; border-radius: 10px;
	font-size: 13px; opacity: 0; transform: translateY(10px); transition: .3s;
	box-shadow: 0 8px 24px rgba(16,24,40,.18);
}
.sz-bm-toast.show { opacity: 1; transform: none; }
.sz-bm-toast a { color: #c4b5fd; text-decoration: underline; margin-inline-start: 10px; }

.sz-bm-login { display: inline-block; background: var(--szbm-accent); color: #fff; padding: 9px 20px; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 600; }

/* حالت تاریک قالب */
.dark-skin .sz-bm-wrap {
	--szbm-card: rgba(255,255,255,.03);
	--szbm-line: rgba(255,255,255,.12);
	--szbm-title: #e5e7eb;
	--szbm-muted: #9aa3b2;
	--szbm-soft: rgba(255,255,255,.07);
}
.dark-skin .sz-bm-coll:not(.is-active),
.dark-skin .sz-bm-coll-new,
.dark-skin .sz-bm-discover:not(.is-active),
.dark-skin .sz-bm-tools button,
.dark-skin .sz-bm-search,
.dark-skin .sz-bm-sort,
.dark-skin .sz-bm-move,
.dark-skin .sz-bm-bulkmove,
.dark-skin .sz-bm-del,
.dark-skin .sz-bm-note-btn,
.dark-skin .sz-bm-pager button { color: #e5e7eb; }
.dark-skin .sz-bm-selall, .dark-skin .sz-bm-note { color: #d1d5db; }
.dark-skin .sz-bm-thumb { background: rgba(255,255,255,.06); }
.dark-skin .sz-bm-noimg {
	background-image:
		url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.8'/%3E%3Cpath d='M21 16l-5-5-6 6-3-3-4 4'/%3E%3C/svg%3E"),
		linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
}
.dark-skin .sz-bm-chip { background: rgba(255,255,255,.06); }
.dark-skin .sz-bm-coll em { background: rgba(255,255,255,.12); color: #cbd5e1; }
.dark-skin .sz-bm-popadd .sz-bm-btn { background: rgba(255,255,255,.06); color: #e5e7eb; }
.dark-skin .sz-bm-popadd.is-on .sz-bm-btn { background: rgba(230,57,70,.16); color: #fca5a5; border-color: rgba(230,57,70,.4); }
.dark-skin .sz-bm-stat, .dark-skin .sz-bm-item, .dark-skin .sz-bm-empty { background: rgba(255,255,255,.035); }
.dark-skin .sz-bm-bulkbar { background: rgba(255,255,255,.05); }
.dark-skin .sz-bm-note { background: rgba(255,255,255,.06); }
.dark-skin .sz-bm-loading { background: rgba(0,0,0,.28); }

/* موبایل */
@media (max-width: 782px) {
	.sz-bm-wrap { font-size: 13.5px; }
	.sz-bm-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
	.sz-bm-stat { padding: 11px 10px; }
	.sz-bm-stat-label { font-size: 11px; margin-bottom: 4px; }
	.sz-bm-stat-value { font-size: 18px; }
	.sz-bm-stat-value small { font-size: 11px; }

	.sz-bm-colls { gap: 8px; }
	.sz-bm-colls-fixed { justify-content: flex-start; }
	.sz-bm-colls-fixed button { flex: 1; text-align: center; }
	.sz-bm-coll, .sz-bm-coll-new, .sz-bm-discover { flex: 0 0 auto; padding: 6px 13px; font-size: 12px; }
	.sz-bm-discover { margin-inline-start: 0; }

	.sz-bm-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
	.sz-bm-tools { width: 100%; }
	.sz-bm-search { width: auto; flex: 1; }
	.sz-bm-sort { flex: 1; }
	.sz-bm-tools-end button { flex: 1; text-align: center; }

	.sz-bm-bulkbar { padding: 9px 11px; gap: 6px; }
	.sz-bm-bulkmove { flex: 1; max-width: none; }

	.layout-grid .sz-bm-items { grid-template-columns: 1fr; }
	.sz-bm-item, .layout-grid .sz-bm-item {
		flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px;
		overflow: visible;
	}
	.sz-bm-thumb, .layout-grid .sz-bm-thumb { flex: 0 0 74px; width: 74px; height: 56px; border-radius: 9px; }
	.layout-grid .sz-bm-thumb img { aspect-ratio: auto; height: 100%; }
	.layout-grid .sz-bm-body { padding: 0; }
	.sz-bm-title { font-size: 13.5px; }
	.sz-bm-actions, .layout-grid .sz-bm-actions { padding: 0; margin-top: 8px; flex-wrap: wrap; }
	.sz-bm-item { flex-wrap: wrap; }
	.sz-bm-body { flex: 1 1 60%; }
	.sz-bm-move { flex: 1; max-width: none; }
	.sz-bm-pick, .layout-grid .sz-bm-pick { position: static; background: none; padding: 0; order: -1; }
}

/* دکمه داخل قالب */
.sz-bm-inline-wrap { margin: 12px 0; }
.sz-bm-inline-wrap .sz-bm-btn { border-radius: 30px; padding: 8px 16px; }

/* دکمه داخل نوار اطلاعات نوشته — قلب قرمز، توخالی و توپر */
.sz-bm-meta { display: inline-flex; align-items: center; vertical-align: middle; margin-inline-end: 10px; position: relative; }
.sz-bm-meta .sz-bm-btn { align-items: center; }
.sz-bm-meta .sz-bm-btn {
	border: 0; background: none; padding: 4px; gap: 4px; cursor: pointer;
	color: #e63946; font: inherit; line-height: inherit; opacity: 1;
	min-width: 34px; min-height: 34px; justify-content: center;
}
.sz-bm-meta .sz-bm-btn:hover { opacity: 1; color: #e63946; }
.sz-bm-meta .sz-bm-icon {
	width: 24px; height: 24px; color: #e63946; background: #e63946;
	transition: transform .15s ease;
}
.sz-bm-meta .sz-bm-btn:hover .sz-bm-icon { transform: scale(1.15); }
.sz-bm-meta .sz-bm-label { display: none; }
.sz-bm-meta .sz-bm-count { color: #e63946; font-size: inherit; opacity: 1; }
.sz-bm-meta.is-on .sz-bm-btn { background: none; border: 0; color: #e63946; }

/* تولتیپ (فقط روی دستگاه‌های دارای موس) */
@media (hover: hover) and (pointer: fine) {
	.sz-bm-meta[data-tip]::after {
		content: attr(data-tip);
		position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%;
		transform: translateX(50%) translateY(4px);
		background: #2b2b2b; color: #fff; font-size: 12px; line-height: 1.7;
		padding: 5px 10px; border-radius: 6px; white-space: nowrap;
		opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 50;
	}
	.sz-bm-meta[data-tip]:hover::after { opacity: 1; transform: translateX(50%) translateY(0); }
}

/* پاپ‌آپ */
.sz-bm-modal-backdrop {
	position: fixed; inset: 0; background: rgba(16,18,24,.55); z-index: 99998;
	display: none; align-items: center; justify-content: center; padding: 20px;
	backdrop-filter: blur(2px);
}
.sz-bm-modal-backdrop.is-open { display: flex; }
body.sz-bm-modal-open { overflow: hidden; }

.sz-bm-modal {
	--szbm-accent: #6d28d9;
	background: #fff; color: #1f2430; border-radius: 16px; width: 100%; max-width: 400px;
	box-shadow: 0 24px 60px rgba(0,0,0,.28); direction: rtl; overflow: hidden;
	animation: sz-bm-in .22s cubic-bezier(.2,.8,.3,1);
	font-size: 15px;
}
@keyframes sz-bm-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.sz-bm-modal-head {
	display: flex; align-items: center; gap: 9px;
	padding: 16px 18px; border-bottom: 1px solid #f0f0f3; font-weight: 700; font-size: 1em;
}
.sz-bm-modal-head .h-text { flex: 1; }
.sz-bm-modal-head .h-icon {
	width: 20px; height: 20px; flex: none; background: #e63946;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
}
.sz-bm-x {
	background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer;
	color: #9aa0ad; padding: 0 2px; flex: none;
}
.sz-bm-x:hover { color: #1f2430; }

.sz-bm-modal-body { padding: 14px 18px 16px; }
.sz-bm-modal-hint { margin: 0 0 12px; font-size: .88em; color: #6b7280; line-height: 2; }
.sz-bm-modal-empty { font-size: .9em; color: #6b7280; margin: 4px 0 12px; line-height: 2; }

.sz-bm-colls-box { max-height: 260px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.sz-bm-colllist { list-style: none; margin: 0; padding: 0; }
.sz-bm-colllist li { margin: 0 0 6px; }
.sz-bm-collpick {
	width: 100%; display: flex; align-items: center; gap: 10px;
	background: #f6f7f9; border: 1.5px solid transparent; border-radius: 10px;
	padding: 11px 12px; cursor: pointer; font: inherit; font-size: .93em; color: #1f2430; text-align: start;
	transition: background .15s ease, border-color .15s ease;
}
.sz-bm-collpick:hover { background: #eef0f3; }
.sz-bm-collpick .tick {
	width: 18px; height: 18px; flex: none; border-radius: 50%;
	border: 1.5px solid #c7ccd4; position: relative; transition: .15s ease;
}
.sz-bm-collpick.is-sel { border-color: var(--szbm-accent); background: rgba(109,40,217,.07); }
.sz-bm-collpick.is-sel .tick { border-color: var(--szbm-accent); background: var(--szbm-accent); }
.sz-bm-collpick.is-sel .tick::after {
	content: ''; position: absolute; inset-inline-start: 5px; top: 2px;
	width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sz-bm-collpick .n { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.sz-bm-collpick .c {
	font-size: .82em; color: #6b7280; background: #fff; border: 1px solid #e6e8ec;
	border-radius: 20px; padding: 2px 10px; flex: none;
}
.sz-bm-collpick .c i { font-style: normal; opacity: .55; }

.sz-bm-newcoll { display: flex; gap: 6px; margin-top: 10px; }
.sz-bm-newcoll-input {
	flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid #e2e5ea; border-radius: 10px;
	font: inherit; font-size: .9em; background: #fff; color: #1f2430;
}
.sz-bm-newcoll-input:focus { outline: 0; border-color: var(--szbm-accent); box-shadow: 0 0 0 3px rgba(109,40,217,.12); }
.sz-bm-newcoll-toggle {
	background: none; border: 0; color: var(--szbm-accent); font: inherit; font-size: .88em;
	cursor: pointer; padding: 10px 2px 2px; font-weight: 600;
}
.sz-bm-newcoll-toggle:hover { text-decoration: underline; }

.sz-bm-modal-foot {
	display: flex; align-items: center; gap: 8px; padding: 13px 18px;
	border-top: 1px solid #f0f0f3; background: #fbfbfc; flex-direction: row-reverse;
}
.sz-bm-foot-sp { flex: 1; }
.sz-bm-mbtn {
	border: 1.5px solid #e2e5ea; background: #fff; color: #333; border-radius: 10px;
	padding: 9px 18px; cursor: pointer; font: inherit; font-size: .9em; transition: .15s ease;
}
.sz-bm-mbtn:hover { background: #f2f3f5; }
.sz-bm-mbtn:disabled { opacity: .5; cursor: default; }
.sz-bm-mbtn.primary { background: var(--szbm-accent); border-color: var(--szbm-accent); color: #fff; font-weight: 700; }
.sz-bm-mbtn.primary:hover { background: #5b21b6; border-color: #5b21b6; }
.sz-bm-mbtn.danger { border-color: #f0c8cb; color: #c62b37; background: #fff; }
.sz-bm-mbtn.danger:hover { background: #fdeff0; }

/* پاپ‌آپ در حالت تاریک قالب (کلاس .dark-skin، نه تنظیم سیستم‌عامل) */
.dark-skin .sz-bm-modal { background: #1e222b; color: #e8eaee; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.dark-skin .sz-bm-modal-head, .dark-skin .sz-bm-modal-foot { border-color: #2c313c; }
.dark-skin .sz-bm-modal-foot { background: #1a1e26; }
.dark-skin .sz-bm-modal-hint, .dark-skin .sz-bm-modal-empty { color: #9aa3b2; }
.dark-skin .sz-bm-x { color: #6b7280; }
.dark-skin .sz-bm-x:hover { color: #e8eaee; }
.dark-skin .sz-bm-collpick { background: #272c36; color: #e8eaee; }
.dark-skin .sz-bm-collpick:hover { background: #2e3440; }
.dark-skin .sz-bm-collpick .tick { border-color: #4b5563; }
.dark-skin .sz-bm-collpick .c { background: #1e222b; border-color: #363d4a; color: #9aa3b2; }
.dark-skin .sz-bm-collpick.is-sel { background: rgba(139,92,246,.16); }
.dark-skin .sz-bm-note-input, .dark-skin .sz-bm-share-note-input { background: #272c36; border-color: #363d4a; color: #e8eaee; }
.dark-skin .sz-bm-mbtn { background: #272c36; border-color: #363d4a; color: #e8eaee; }
.dark-skin .sz-bm-mbtn:hover { background: #2e3440; }
.dark-skin .sz-bm-mbtn.primary { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.dark-skin .sz-bm-mbtn.danger { background: transparent; border-color: rgba(248,113,113,.35); color: #fca5a5; }
.dark-skin .sz-bm-share-url input { background: #272c36; border-color: #363d4a; color: #cfd5de; }
.dark-skin .sz-bm-share-note label { color: #9aa3b2; }

@media (max-width: 600px) {
	.sz-bm-modal-backdrop { align-items: flex-end; padding: 0; }
	.sz-bm-modal { max-width: none; border-radius: 16px 16px 0 0; }
	.sz-bm-modal-foot .sz-bm-mbtn { flex: 1; text-align: center; }
	.sz-bm-colls-box { max-height: 44vh; }
}

/* اشتراک‌گذاری */
.sz-bm-share-url { display: flex; gap: 6px; margin-bottom: 12px; }
.sz-bm-share-url input {
	flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px;
	font-size: .85em; background: #f7f7f8; color: #333; direction: ltr; text-align: left;
}
.sz-bm-share-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sz-bm-shared-head { margin-bottom: 18px; }
.sz-bm-shared-head h2 { margin: 0 0 4px; }
.sz-bm-shared-head p { margin: 0; opacity: .7; font-size: .9em; }
.sz-bm-shared .sz-bm-pager a {
	background: rgba(127,127,127,.12); border-radius: 5px; padding: 6px 11px;
	text-decoration: none; color: inherit;
}
.sz-bm-shared .sz-bm-pager a.is-active { background: #6d28d9; color: #fff; border-color: #6d28d9; }

.sz-bm-shared-tabs { margin-bottom: 18px; }
.sz-bm-shared-tabs a.sz-bm-coll { text-decoration: none; display: inline-block; }

/* اطلاع‌رسانی */
.sz-bm-notice {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	background: rgba(109,40,217,.07); border: 1px solid rgba(109,40,217,.22);
	border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px;
}
.sz-bm-notice a { color: #6d28d9; font-weight: 700; text-decoration: none; }
.sz-bm-notice-x {
	margin-inline-start: auto; background: none; border: 0; cursor: pointer;
	font-size: 20px; line-height: 1; color: inherit; opacity: .55; padding: 0 4px;
}
.sz-bm-notice-x:hover { opacity: 1; }
.sz-bm-coll-hint .sz-bm-emailpref {
	display: flex; margin-top: 12px; padding-top: 10px;
	border-top: 1px solid rgba(34,113,177,.2); font-size: .95em;
}
.sz-bm-bell { font-style: normal; font-size: .72em; background: #6d28d9; color: #fff; border-radius: 99px; padding: 1px 8px; margin-inline-start: 6px; }
.sz-bm-emailpref { font-size: .86em; display: inline-flex; align-items: center; gap: 5px; }
.sz-bm-updates .sz-bm-coll { text-decoration: none; }

.sz-bm-coll-hint {
	display: flex; gap: 12px; align-items: flex-start;
	background: rgba(217,119,6,.06); border: 1px solid rgba(217,119,6,.22);
	border-radius: 14px; padding: 13px 16px; margin: 0 0 16px; color: #4a5261;
}
.sz-bm-hint-icon {
	flex: none; width: 20px; height: 20px; margin-top: 2px; background: #d97706;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
}
.sz-bm-hint-body { flex: 1; min-width: 0; }
.sz-bm-hint-text { margin: 0; font-size: 12.5px; line-height: 2; }
.sz-bm-coll-hint .sz-bm-emailpref { display: none; }
.sz-bm-coll-hint .sz-bm-emailpref input { accent-color: #d97706; width: 16px; height: 16px; margin: 0; }
.dark-skin .sz-bm-coll-hint { color: #d1d5db; background: rgba(217,119,6,.1); }

/* مرتب‌سازی و عملیات گروهی */
.sz-bm-sort {
	padding: 7px 10px; border: 1px solid rgba(127,127,127,.35); border-radius: 6px;
	font: inherit; font-size: .88em; background: transparent; color: inherit;
}
.sz-bm-bulkbar {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	background: var(--szbm-soft, #f1f3f7); border: 1px solid var(--szbm-line, #e8eaef);
	border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px;
}
.sz-bm-selall { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.sz-bm-selcount { opacity: .7; }
.sz-bm-bulkmove { max-width: 180px; padding: 6px 8px; border-radius: 6px; border: 1px solid rgba(127,127,127,.3); background: transparent; color: inherit; font: inherit; font-size: .95em; }
.sz-bm-bulkbar .sz-bm-mbtn { padding: 6px 14px; font-size: .95em; }

.sz-bm-item { position: relative; }
.sz-bm-pick { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 5px; padding: 3px 4px; line-height: 0; }
.sz-bm-pick input { margin: 0; cursor: pointer; }
.sz-bm-note { font-size: .82em; line-height: 1.9; opacity: .8; border-inline-start: 2px solid rgba(109,40,217,.35); padding-inline-start: 7px; margin: 2px 0; }
.sz-bm-note.is-empty { display: none; }
.sz-bm-note-btn { background: transparent; border: 1px solid rgba(127,127,127,.3); border-radius: 5px; width: 28px; height: 28px; cursor: pointer; line-height: 1; color: inherit; flex: none; }
.sz-bm-note-btn:hover { background: rgba(127,127,127,.15); }
.sz-bm-note-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; font-size: .9em; resize: vertical; }

/* پرطرفدارترین‌ها */
.sz-bm-popular-title { margin: 0 0 12px; font-size: 1.05em; }
.sz-bm-popular-list { list-style: none; margin: 0; padding: 0; counter-reset: szbm; }
.sz-bm-popular-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(127,127,127,.15); }
.sz-bm-popular-list li:last-child { border-bottom: 0; }
.sz-bm-popular-list .rank { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(109,40,217,.12); color: #6d28d9; font-size: .8em; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sz-bm-popular-list .thumb { flex: none; line-height: 0; }
.sz-bm-popular-list .thumb img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.sz-bm-popular-list .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sz-bm-popular-list .info a { text-decoration: none; color: inherit; font-size: .92em; line-height: 1.7; font-weight: 600; }
.sz-bm-popular-list .info a:hover { color: #e63946; }
.sz-bm-popular-list .info em { font-style: normal; font-size: .78em; opacity: .6; }

/* بخش پرطرفدارها */
.sz-bm-discover {
	background: rgba(230,57,70,.1); color: #e63946; border: 1px solid rgba(230,57,70,.3);
	border-radius: 6px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .9em;
	margin-inline-start: 8px;
}
.sz-bm-discover:hover { background: rgba(230,57,70,.18); }
.sz-bm-discover.is-active { background: #e63946; color: #fff; border-color: #e63946; }
.sz-bm-discover-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: .88em; }
.sz-bm-discover-title { font-weight: 600; margin-inline-end: 4px; }
.sz-bm-discover-cat, .sz-bm-discover-days {
	padding: 6px 10px; border: 1px solid rgba(127,127,127,.35); border-radius: 6px;
	font: inherit; font-size: .95em; background: transparent; color: inherit;
}
.view-popular .sz-bm-tools, .view-popular .sz-bm-coll-hint { display: none; }
.sz-bm-pop-item .sz-bm-meta { color: var(--szbm-accent); font-weight: 600; }

.sz-bm-share-note { margin: 0 0 14px; }
.sz-bm-share-note label { display: block; font-size: .85em; margin-bottom: 5px; color: #555; }
.sz-bm-share-note-input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; font-size: .88em; resize: vertical; }
.sz-bm-share-note-save { margin-top: 6px; }
.sz-bm-shared-note { margin: 8px 0 0; font-size: 13px; line-height: 2; opacity: .85; border-inline-start: 3px solid #6d28d9; padding-inline-start: 10px; }

.sz-bm-counter { display: block; text-align: left; font-size: .75em; opacity: .55; margin-top: 3px; }

/* جلوگیری از بلند شدن بیش از حد نام‌ها و یادداشت‌ها */
.sz-bm-coll { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-bm-collpick .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-bm-note { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sz-bm-shared-note { overflow-wrap: anywhere; }
.sz-bm-title { overflow-wrap: anywhere; }

.sz-bm-popadd .sz-bm-btn {
	width: 100%; justify-content: center; border-radius: 9px; padding: 8px 10px;
	font-size: 12.5px; font-weight: 600; background: var(--szbm-soft);
	border: 1px solid var(--szbm-line); color: #4a5261;
}
.sz-bm-popadd .sz-bm-icon { color: #e63946; background: #e63946; }
.sz-bm-popadd .sz-bm-btn:hover { border-color: #e63946; color: #e63946; }
.sz-bm-popadd.is-on .sz-bm-btn { background: rgba(230,57,70,.08); border-color: rgba(230,57,70,.35); color: #b91c1c; }
.sz-bm-pop-item .sz-bm-actions { margin-top: 10px; }

.sz-bm-modal input[type="text"].sz-bm-name-input,
.sz-bm-modal input[type="text"].sz-bm-newcoll-input {
	width: 100%; box-sizing: border-box; padding: 11px 13px;
	border: 1.5px solid #e2e5ea !important; border-radius: 10px !important;
	font: inherit; font-size: .95em; background: #fff; color: #1f2430; box-shadow: none;
}
.sz-bm-modal input[type="text"].sz-bm-name-input:focus,
.sz-bm-modal input[type="text"].sz-bm-newcoll-input:focus {
	outline: 0; border-color: var(--szbm-accent) !important;
	box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}
.sz-bm-modal textarea { border-radius: 10px !important; }
.sz-bm-name-err { margin: 8px 0 0; font-size: .85em; color: #c62b37; line-height: 1.9; }


.sz-bm-account { text-decoration: none; display: inline-block; }

.dark-skin .sz-bm-dd-btn, .dark-skin .sz-bm-dd-menu, .dark-skin .sz-bm-dd-menu button, .dark-skin .sz-bm-chip { color: #e5e7eb; }
.dark-skin .sz-bm-dd-menu { background: #1e222b; border-color: rgba(255,255,255,.12); }
@media (max-width: 782px) {
	.sz-bm-dd, .sz-bm-dd-btn { width: 100%; min-width: 0; }
	.sz-bm-dd-menu { inset-inline: 0; }
}

.dark-skin .sz-bm-modal input[type="text"].sz-bm-name-input,
.dark-skin .sz-bm-modal input[type="text"].sz-bm-newcoll-input { background: #272c36; color: #e8eaee; border-color: #363d4a !important; }

/* دکمه‌های روی تصویر */
.sz-bm-ovl {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3;
	display: flex; gap: 6px; opacity: .92; transition: opacity .15s ease;
}
.sz-bm-item:hover .sz-bm-ovl { opacity: 1; }
.sz-bm-ovl button {
	width: 30px; height: 30px; border-radius: 8px; border: 0; cursor: pointer; padding: 0;
	background: rgba(255,255,255,.94); box-shadow: 0 2px 6px rgba(16,24,40,.14);
	display: inline-flex; align-items: center; justify-content: center; color: #4a5261;
}
.sz-bm-ovl button::before {
	content: ''; width: 15px; height: 15px; background: currentColor;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
}
.sz-bm-ovl .sz-bm-note-btn::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E");
}
.sz-bm-ovl .sz-bm-del::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13'/%3E%3C/svg%3E");
}
.sz-bm-ovl .sz-bm-note-btn:hover { color: var(--szbm-accent); }
.sz-bm-ovl .sz-bm-del:hover { color: #dc2626; }
.layout-grid .sz-bm-actions { padding: 0 13px 13px; }
.layout-grid .sz-bm-chip { width: 100%; justify-content: flex-start; }

/* حالت تاریک: چک‌باکس، منوی بیشتر، دکمه‌های روی تصویر */
.dark-skin .sz-bm-pick input, .dark-skin .sz-bm-selall input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); box-shadow: none; }
.dark-skin .sz-bm-pick input:checked, .dark-skin .sz-bm-selall input:checked { background: #7c3aed; border-color: #7c3aed; }
.dark-skin .sz-bm-more-btn { background: rgba(255,255,255,.06); color: #e5e7eb; }
.dark-skin .sz-bm-more-menu { background: #1e222b; border-color: rgba(255,255,255,.12); }
.dark-skin .sz-bm-ovl button { background: rgba(20,24,32,.85); color: #e5e7eb; box-shadow: none; }

@media (max-width: 782px) {
	.sz-bm-colls { flex-direction: column; align-items: stretch; }
	.sz-bm-more-menu { inset-inline-end: auto; inset-inline-start: 0; }
	.sz-bm-ovl { top: 8px; inset-inline-end: 8px; }
	.sz-bm-ovl button { width: 28px; height: 28px; }
}

/* ---------------- سربرگ بخش (هم‌سبک تب سکه) ---------------- */
.sz-bm-head {
	display: flex; align-items: center; gap: 12px;
	padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--szbm-line);
}
.sz-bm-head-ico {
	width: 44px; height: 44px; border-radius: 12px; flex: none; position: relative;
	background: rgba(230,57,70,.09);
}
.sz-bm-head-ico::before {
	content: ''; position: absolute; inset: 0; margin: auto; width: 21px; height: 21px; background: #e63946;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
}
.sz-bm-head-text h3 { margin: 0 0 3px; font-size: 16px; font-weight: 800; color: var(--szbm-title); line-height: 1.5; }
.sz-bm-head-text p { margin: 0; font-size: 12.5px; color: var(--szbm-muted); line-height: 1.8; }

/* ---------------- کاشی‌های آمار ---------------- */
.sz-bm-stat { position: relative; padding: 16px 18px 15px; }
.sz-bm-stat-ico {
	position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 10px;
}
.sz-bm-stat-ico::before {
	content: ''; position: absolute; inset: 0; margin: auto; width: 17px; height: 17px;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
}
.sz-bm-stat-ico.ico-heart { background: rgba(109,40,217,.09); }
.sz-bm-stat-ico.ico-heart::before { background: var(--szbm-accent); -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E"); }
.sz-bm-stat-ico.ico-folder { background: rgba(14,116,144,.09); }
.sz-bm-stat-ico.ico-folder::before { background: #0e7490; -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.sz-bm-stat-ico.ico-bell { background: rgba(217,119,6,.1); }
.sz-bm-stat-ico.ico-bell::before { background: #d97706; -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E"); }
.sz-bm-stat.is-folder .sz-bm-stat-value { color: #0e7490; }
.sz-bm-stat.is-folder .sz-bm-bar i { background: #0e7490; }
.sz-bm-stat-label { padding-inline-end: 44px; }

/* ---------------- چیپ مجموعه: متن و آیکون کنار هم، از راست ---------------- */
.sz-bm-chip { direction: rtl; justify-content: flex-start; }
.sz-bm-chip .txt { flex: 0 1 auto; text-align: right; }
.layout-grid .sz-bm-chip { width: 100%; }

/* ---------------- پیام اطلاع‌رسانی و تنظیم ایمیل: دو بخش جدا ---------------- */
.sz-bm-coll-hint { margin-bottom: 10px; }
.sz-bm-hint-title { display: block; font-size: 13.5px; font-weight: 800; color: #b45309; margin-bottom: 4px; }
.sz-bm-hint-text { font-size: 12.5px; line-height: 2.05; color: #6b5a3c; }
.sz-bm-emailbox {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 13px 16px; margin: 0 0 16px; border-radius: 14px;
	background: var(--szbm-card); border: 1px solid var(--szbm-line);
}
.sz-bm-emailbox-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--szbm-title); margin-bottom: 2px; }
.sz-bm-emailbox-text span { font-size: 12px; color: var(--szbm-muted); line-height: 1.8; }

/* کلید روشن/خاموش (دکمه، نه چک‌باکس؛ تا استایل قالب رویش اثر نگذارد) */
.sz-bm-wrap button.sz-bm-switch {
	all: unset; box-sizing: border-box !important; position: relative !important; display: block !important;
	flex: 0 0 44px !important; width: 44px !important; height: 24px !important; min-width: 44px !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 99px !important;
	background: #d5d9e0 !important; cursor: pointer; transition: background .2s ease;
}
.sz-bm-wrap button.sz-bm-switch .sz-bm-switch-knob {
	position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: right .2s ease;
}
.sz-bm-wrap button.sz-bm-switch.is-on { background: #d97706 !important; }
.sz-bm-wrap button.sz-bm-switch.is-on .sz-bm-switch-knob { right: 23px; }
.sz-bm-wrap button.sz-bm-switch:focus-visible { box-shadow: 0 0 0 3px rgba(217,119,6,.28) !important; }
.sz-bm-wrap button.sz-bm-switch[disabled] { opacity: .6; cursor: wait; }
.sz-bm-emailbox-text { flex: 1 1 auto; min-width: 0; }

/* ---------------- بخش پرطرفدارها ---------------- */
.sz-bm-discover-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
	background: var(--szbm-soft); border: 1px solid var(--szbm-line);
}
.sz-bm-discover-title { font-size: 13.5px; font-weight: 800; color: var(--szbm-title); }
.sz-bm-discover-bar .sz-bm-dd-btn { background: var(--szbm-card); }

.sz-bm-pop-item .sz-bm-meta {
	display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--szbm-muted);
}
.sz-bm-pop-item .sz-bm-meta::before {
	content: ''; width: 13px; height: 13px; background: #e63946;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
}
.sz-bm-popadd { display: block; width: 100%; }
.sz-bm-popadd .sz-bm-btn {
	width: 100%; justify-content: center; gap: 7px; border-radius: 99px; padding: 8px 12px;
	font-size: 12.5px; font-weight: 700; background: var(--szbm-soft);
	border: 1px solid var(--szbm-line); color: #4a5261; white-space: nowrap;
}
.sz-bm-popadd .sz-bm-icon { width: 15px; height: 15px; color: #e63946; background: #e63946; }
.sz-bm-popadd .sz-bm-btn:hover { border-color: rgba(230,57,70,.4); color: #b91c1c; }
.sz-bm-popadd.is-on .sz-bm-btn { background: rgba(230,57,70,.07); border-color: rgba(230,57,70,.28); color: #b91c1c; }

/* حالت تاریک برای بخش‌های تازه */
.dark-skin .sz-bm-head-ico { background: rgba(230,57,70,.15); }
.dark-skin .sz-bm-hint-title { color: #fbbf24; }
.dark-skin .sz-bm-hint-text { color: #d6c7a8; }
.dark-skin .sz-bm-emailbox { background: rgba(255,255,255,.035); }
.dark-skin .sz-bm-wrap button.sz-bm-switch:not(.is-on) { background: rgba(255,255,255,.2) !important; }
.dark-skin .sz-bm-hint-icon { background: #fbbf24; }
.dark-skin .sz-bm-discover-bar { background: rgba(255,255,255,.04); }
.dark-skin .sz-bm-discover-bar .sz-bm-dd-btn { background: rgba(255,255,255,.06); }
.dark-skin .sz-bm-popadd .sz-bm-btn { background: rgba(255,255,255,.06); color: #e5e7eb; }
.dark-skin .sz-bm-popadd.is-on .sz-bm-btn { background: rgba(230,57,70,.14); color: #fca5a5; border-color: rgba(230,57,70,.35); }
.dark-skin .sz-bm-stat-ico.ico-folder::before { background: #22d3ee; }
.dark-skin .sz-bm-stat.is-folder .sz-bm-stat-value { color: #67e8f9; }

@media (max-width: 782px) {
	.sz-bm-head-ico { width: 38px; height: 38px; }
	.sz-bm-head-text h3 { font-size: 15px; }
	.sz-bm-stat-ico { display: none; }
	.sz-bm-stat-label { padding-inline-end: 0; }
	.sz-bm-emailbox { padding: 12px 13px; }
	.sz-bm-discover-bar { flex-direction: column; align-items: stretch; }
}

/* ---------------- منوی «بیشتر» در صفحه‌های باریک ---------------- */
.sz-bm-more-menu .sz-bm-coll em { margin-inline-start: 10px; }
.sz-bm-more.is-compact .sz-bm-more-btn { padding-inline: 11px; gap: 4px; }
@media (max-width: 782px) {
	.sz-bm-colls-track { position: relative; }
	.sz-bm-more { position: static; }
	.sz-bm-more-menu {
		inset-inline: 0 !important; min-width: 0; width: auto;
		max-height: min(60vh, 340px); top: calc(100% + 6px);
	}
	.sz-bm-more-menu .sz-bm-coll { padding: 11px 12px; font-size: 13px; }
	.sz-bm-emailbox { align-items: center; }
	.sz-bm-coll-hint { padding: 12px 13px; }
}

/* ---------------- 1.20.2 ---------------- */
/* یادداشت: بنفش ملایم به‌جای قرمز */
.sz-bm-wrap .sz-bm-note {
	border-inline-start: 3px solid rgba(109,40,217,.35); background: rgba(109,40,217,.05); color: #5b5470;
}
.dark-skin .sz-bm-wrap .sz-bm-note { background: rgba(167,139,250,.08); border-inline-start-color: rgba(167,139,250,.45); color: #cfc8e6; }

/* کاشی‌های آمار: ارتفاع و جای نوار یکسان */
.sz-bm-stat { display: flex; flex-direction: column; }
.sz-bm-stat .sz-bm-bar { margin-top: auto; }
.sz-bm-stat .sz-bm-stat-value { margin-bottom: 10px; }
.sz-bm-stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 782px) {
	.sz-bm-stat { padding: 12px 11px; }
	.sz-bm-stat .sz-bm-stat-value { margin-bottom: 8px; }
}

/* منوی انتخاب مجموعه (انتقال گروهی) */
.sz-bm-dd-menu button.sz-bm-dd-coll {
	display: flex; align-items: center; gap: 8px; direction: rtl; text-align: right;
}
.sz-bm-dd-coll bdi { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
.sz-bm-dd-menu .sz-bm-dd-coll em {
	flex: none; opacity: 1; font-size: 11px; font-weight: 700; line-height: 1;
	padding: 3px 8px; border-radius: 99px; background: var(--szbm-soft); color: var(--szbm-muted);
}
.sz-bm-dd-ico {
	flex: none; width: 15px; height: 15px; background: #9aa3b2;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}
.sz-bm-dd-coll.is-notify .sz-bm-dd-ico {
	background: #d97706;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
}
.sz-bm-dd-coll.is-notify { color: #b45309; }
.sz-bm-dd-menu button.sz-bm-dd-coll.is-sel .sz-bm-dd-ico { background: var(--szbm-accent); }
.sz-bm-dd-menu button.sz-bm-dd-coll.is-sel em { background: rgba(109,40,217,.12); color: var(--szbm-accent); }
[data-dd="bulk"] .sz-bm-dd-menu { min-width: 230px; }
[data-dd="bulk"] .sz-bm-dd-btn span { unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dark-skin .sz-bm-dd-menu .sz-bm-dd-coll em { background: rgba(255,255,255,.1); color: #cbd5e1; }
.dark-skin .sz-bm-dd-coll.is-notify { color: #fbbf24; }
.dark-skin .sz-bm-dd-ico { background: #8b95a5; }

/* ---------------- صفحه‌ی لینک اشتراکی (1.20.3) ---------------- */
.sz-bm-shared .sz-bm-shared-head {
	display: flex; align-items: center; gap: 16px; margin: 0 0 14px; padding: 20px 22px;
	border-radius: 16px; border: 1px solid var(--szbm-line);
	background: linear-gradient(135deg, rgba(109,40,217,.06), rgba(109,40,217,.015) 60%), var(--szbm-card);
}
.sz-bm-shared-ico {
	flex: none; width: 56px; height: 56px; border-radius: 16px; position: relative;
	background: rgba(109,40,217,.1);
}
.sz-bm-shared-ico.is-heart { background: rgba(230,57,70,.09); }
.sz-bm-shared-ico::before {
	content: ''; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; background: var(--szbm-accent);
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}
.sz-bm-shared-ico.is-heart::before {
	background: #e63946;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M12 20.3 4.3 12.6a4.7 4.7 0 0 1 0-6.6 4.7 4.7 0 0 1 6.6 0l1.1 1.1 1.1-1.1a4.7 4.7 0 0 1 6.6 0 4.7 4.7 0 0 1 0 6.6z'/%3E%3C/svg%3E");
}
.sz-bm-shared-info { flex: 1; min-width: 0; }
.sz-bm-shared-kicker {
	display: inline-block; font-size: 11px; font-weight: 700; color: var(--szbm-accent);
	background: rgba(109,40,217,.08); border-radius: 99px; padding: 2px 10px; margin-bottom: 6px;
}
.sz-bm-shared .sz-bm-shared-title {
	margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--szbm-title);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sz-bm-shared-title bdi { unicode-bidi: isolate; }
.sz-bm-shared-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: var(--szbm-muted); }
.sz-bm-shared-by { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.sz-bm-shared-av {
	flex: none; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--szbm-accent);
}
.sz-bm-shared-count { display: inline-flex; align-items: center; gap: 6px; }
.sz-bm-shared-count::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

.sz-bm-shared .sz-bm-shared-note {
	position: relative; margin: 0 0 16px; padding: 12px 44px 12px 16px; border-radius: 12px; opacity: 1;
	border: 1px solid rgba(109,40,217,.16); border-inline-start: 3px solid rgba(109,40,217,.45);
	background: rgba(109,40,217,.035); color: #4a4560; font-size: 13px; line-height: 2; overflow-wrap: anywhere;
}
.sz-bm-shared .sz-bm-shared-note::before {
	content: ''; position: absolute; top: 14px; right: 16px; width: 17px; height: 17px; background: rgba(109,40,217,.5);
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 7H6a2 2 0 0 0-2 2v4h4v4H6M20 7h-4a2 2 0 0 0-2 2v4h4v4h-2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 7H6a2 2 0 0 0-2 2v4h4v4H6M20 7h-4a2 2 0 0 0-2 2v4h4v4h-2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sz-bm-shared-note bdi { unicode-bidi: plaintext; }

.sz-bm-shared .sz-bm-shared-tabs { display: flex; margin: 0 0 18px; }
.sz-bm-shared-tabs a.sz-bm-coll { display: inline-flex; text-decoration: none !important; box-shadow: none; }
.sz-bm-shared .sz-bm-items { margin-top: 0; }
.sz-bm-shared .sz-bm-item { transition: transform .15s ease, box-shadow .15s ease; }
.sz-bm-shared .sz-bm-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,24,40,.08); }
.sz-bm-shared .sz-bm-pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.sz-bm-shared .sz-bm-pager a {
	min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; text-decoration: none; font-weight: 600;
}

.dark-skin .sz-bm-shared .sz-bm-shared-head { background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(139,92,246,.02) 60%), rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.dark-skin .sz-bm-shared-ico { background: rgba(139,92,246,.18); }
.dark-skin .sz-bm-shared-ico::before { background: #a78bfa; }
.dark-skin .sz-bm-shared-ico.is-heart { background: rgba(230,57,70,.16); }
.dark-skin .sz-bm-shared-ico.is-heart::before { background: #f87171; }
.dark-skin .sz-bm-shared-kicker { background: rgba(139,92,246,.18); color: #c4b5fd; }
.dark-skin .sz-bm-shared .sz-bm-shared-title { color: #f3f4f6; }
.dark-skin .sz-bm-shared-meta { color: #9ca3af; }
.dark-skin .sz-bm-shared .sz-bm-shared-note { background: rgba(139,92,246,.07); border-color: rgba(139,92,246,.22); border-inline-start-color: rgba(167,139,250,.55); color: #d4cfe6; }
.dark-skin .sz-bm-shared .sz-bm-shared-note::before { background: #a78bfa; }
.dark-skin .sz-bm-shared .sz-bm-item:hover { box-shadow: 0 8px 22px rgba(0,0,0,.3); }

@media (max-width: 782px) {
	.sz-bm-shared .sz-bm-shared-head { padding: 15px; gap: 12px; align-items: flex-start; }
	.sz-bm-shared-ico { width: 44px; height: 44px; border-radius: 13px; }
	.sz-bm-shared-ico::before { width: 21px; height: 21px; }
	.sz-bm-shared .sz-bm-shared-title { font-size: 16.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.sz-bm-shared .sz-bm-shared-note { padding: 11px 40px 11px 13px; font-size: 12.5px; }
	.sz-bm-shared .sz-bm-shared-note::before { right: 13px; top: 13px; }
	.sz-bm-shared .sz-bm-shared-tabs { flex-direction: row; }
}

/* دکمه‌ی لغو انتخاب در نوار گروهی */
.sz-bm-wrap button.sz-bm-selclear {
	display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 10px; margin: 0;
	border: 1px solid var(--szbm-line); border-radius: 99px; background: var(--szbm-card);
	font: inherit; font-size: 12px; font-weight: 600; color: #6b7280; cursor: pointer; line-height: 1.6;
	transition: border-color .15s ease, color .15s ease;
}
.sz-bm-wrap button.sz-bm-selclear::before {
	content: ''; width: 11px; height: 11px; background: currentColor;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.sz-bm-wrap button.sz-bm-selclear:hover { border-color: var(--szbm-accent); color: var(--szbm-accent); }
.dark-skin .sz-bm-wrap button.sz-bm-selclear { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #d1d5db; }

/* کاشی «به‌روزرسانی تازه» قابل کلیک */
.sz-bm-wrap a.sz-bm-stat { text-decoration: none !important; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.sz-bm-wrap a.sz-bm-stat:hover { border-color: rgba(5,150,105,.45); box-shadow: 0 6px 18px rgba(5,150,105,.1); }

/* ---------------- صفحه‌ی به‌روزرسانی‌ها (1.21.5) ---------------- */
.sz-bm-updates .sz-bm-upd-head {
	display: flex; align-items: center; gap: 14px; padding: 0 0 16px; margin: 0 0 16px;
	border-bottom: 1px solid var(--szbm-line);
}
.sz-bm-upd-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff7ed; position: relative; }
.sz-bm-upd-ico::before {
	content: ''; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: #d97706;
	-webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
}
.sz-bm-upd-info { flex: 1; min-width: 0; }
.sz-bm-updates .sz-bm-upd-title { margin: 0 0 2px; font-size: 17px; font-weight: 800; line-height: 1.6; color: var(--szbm-title); }
.sz-bm-updates .sz-bm-upd-sub { margin: 0; font-size: 12.5px; color: var(--szbm-muted); }
.sz-bm-wrap a.sz-bm-upd-back {
	flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px;
	border: 1px solid var(--szbm-line); background: var(--szbm-card); color: var(--szbm-title);
	font-size: 12.5px; font-weight: 700; text-decoration: none !important; transition: border-color .15s ease, color .15s ease;
}
.sz-bm-wrap a.sz-bm-upd-back::after { content: '←'; font-weight: 400; }
.sz-bm-wrap a.sz-bm-upd-back:hover { border-color: var(--szbm-accent); color: var(--szbm-accent); }
.sz-bm-updates .sz-bm-upd-email { margin: 0 0 18px; }
.sz-bm-updates .sz-bm-item { position: relative; }
.sz-bm-updates .sz-bm-item.is-fresh { border-color: rgba(217,119,6,.45); box-shadow: 0 0 0 1px rgba(217,119,6,.12); }
.sz-bm-updates .sz-bm-fresh {
	position: absolute; top: 10px; right: 10px; z-index: 2; padding: 2px 10px; border-radius: 99px;
	background: #d97706; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.8;
	box-shadow: 0 2px 6px rgba(217,119,6,.3);
}
.sz-bm-updates .sz-bm-thumb { position: relative; }
.sz-bm-updates .sz-bm-upd-when { color: #b45309; font-weight: 600; }
.sz-bm-updates .sz-bm-item:not(.is-fresh) .sz-bm-upd-when { color: var(--szbm-muted); font-weight: 400; }
.dark-skin .sz-bm-upd-ico { background: rgba(217,119,6,.15); }
.dark-skin .sz-bm-upd-ico::before { background: #fbbf24; }
.dark-skin .sz-bm-updates .sz-bm-upd-title { color: #f3f4f6; }
.dark-skin .sz-bm-wrap a.sz-bm-upd-back { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #e5e7eb; }
.dark-skin .sz-bm-updates .sz-bm-item.is-fresh { border-color: rgba(251,191,36,.4); }
.dark-skin .sz-bm-updates .sz-bm-upd-when { color: #fbbf24; }
@media (max-width: 782px) {
	.sz-bm-updates .sz-bm-upd-head { flex-wrap: wrap; gap: 10px 12px; }
	.sz-bm-upd-ico { width: 40px; height: 40px; border-radius: 12px; }
	.sz-bm-updates .sz-bm-upd-title { font-size: 15.5px; }
	.sz-bm-wrap a.sz-bm-upd-back { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* ---------------- پنجره‌ی تأیید (1.21.6) ---------------- */
.sz-bm-modal.sz-bm-confirm { max-width: 400px; }
.sz-bm-modal-head .h-icon.is-danger {
	background: #c62b37 !important;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") !important;
}
.sz-bm-confirm-text { line-height: 2; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.sz-bm-mbtn.danger-solid { background: #c62b37; border-color: #c62b37; color: #fff; font-weight: 700; }
.sz-bm-mbtn.danger-solid:hover { background: #a61f2b; border-color: #a61f2b; }
.sz-bm-mbtn.danger-solid:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(198,43,55,.25); }
[data-share="off"].is-armed { background: #c62b37 !important; border-color: #c62b37 !important; color: #fff !important; }
.dark-skin .sz-bm-modal-head .h-icon.is-danger { background: #f87171 !important; }