/* ═══════════════════════════════════════════
   Stream Sidebar — Unified Posts, Notifications, Messages
   ═══════════════════════════════════════════ */

/* ── Toggle Button ── */
.ss-toggle {
	position: fixed;
	top: 8px;
	right: 8px;
	z-index: 9000;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(10, 8, 20, 0.85);
	backdrop-filter: blur(12px);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}
.ss-toggle:hover { color: #ffd700; background: rgba(20, 16, 40, 0.95); border-color: rgba(255, 215, 0, 0.3); }
.ss-toggle svg { width: 18px; height: 18px; }
.ss-toggle-badge {
	position: absolute; top: -4px; right: -4px;
	min-width: 14px; height: 14px; padding: 0 4px;
	border-radius: 7px; background: #ef4444; color: #fff;
	font-size: 8px; font-weight: 700;
	font-family: 'DM Sans', -apple-system, sans-serif;
	display: none; align-items: center; justify-content: center; line-height: 1;
}
.ss-toggle-badge--visible { display: flex; }

/* ── Sidebar Panel ── */
.ss-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 400px;
	height: 100%;
	z-index: 9001;
	display: flex;
	flex-direction: column;
	background: #0a0814;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}
.ss-sidebar--open {
	transform: translateX(0);
}

/* ── Header ── */
.ss-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}
.ss-header__title {
	font-size: 14px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.8);
	letter-spacing: -0.01em;
}
.ss-close {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.6);
	transition: all 0.2s;
	flex-shrink: 0;
}
.ss-close:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }

/* ── Tabs ── */
.ss-tabs {
	display: flex;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}
.ss-tab {
	flex: 1;
	padding: 10px 8px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.35);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: all 0.15s;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.ss-tab:hover { color: rgba(255, 255, 255, 0.6); }
.ss-tab--active { color: #ffd700; }
.ss-tab--active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 16px;
	right: 16px;
	height: 2px;
	background: #ffd700;
	border-radius: 1px;
}
.ss-tab__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #ef4444;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
}
.ss-tab__badge[data-count="0"] { display: none; }

/* ── Toolbar (contextual) ── */
.ss-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}
.ss-search-wrap {
	flex: 1;
	position: relative;
}
.ss-search-wrap svg {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.25);
	pointer-events: none;
	width: 14px;
	height: 14px;
}
.ss-search {
	width: 100%;
	padding: 6px 8px 6px 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	color: #e2d5f0;
	font-family: inherit;
	font-size: 12px;
	outline: none;
}
.ss-search:focus { border-color: #ffd700; }
.ss-search::placeholder { color: rgba(255, 255, 255, 0.25); }
.ss-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.15s;
}
.ss-icon-btn:hover { background: rgba(107, 74, 163, 0.2); border-color: #6b4aa3; color: #c9a0dc; }
.ss-toolbar-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	border-radius: 6px;
	border: none;
	background: #ffd700;
	color: #1a1a2e;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s;
}
.ss-toolbar-btn:hover { opacity: 0.85; }
.ss-toolbar-btn svg { width: 12px; height: 12px; }
.ss-toolbar-btn--secondary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 8px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: #6b4aa3;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s;
}
.ss-toolbar-btn--secondary:hover { color: #c9a0dc; background: rgba(107, 74, 163, 0.1); }

/* ── Class Pills (Posts tab) ── */
.ss-class-pills {
	display: flex;
	gap: 4px;
	padding: 8px 12px 4px;
	flex-wrap: wrap;
	flex-shrink: 0;
}
.ss-class-pill {
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	border: 1.5px solid rgba(255, 255, 255, 0.15);
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.15s;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.ss-class-pill:hover { background: rgba(107, 74, 163, 0.15); }
.ss-class-pill.active {
	background: rgba(107, 74, 163, 0.25);
	border-color: #ffd700;
	color: #ffd700;
}

/* ── Scrollable Body ── */
.ss-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	overscroll-behavior: contain;
}
.ss-body::-webkit-scrollbar { width: 4px; }
.ss-body::-webkit-scrollbar-track { background: transparent; }
.ss-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

/* ── Empty State ── */
.ss-empty {
	text-align: center;
	padding: 40px 16px;
	color: rgba(255, 255, 255, 0.3);
}
.ss-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.3; }
.ss-empty h3 { font-size: 15px; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.ss-empty p { font-size: 12px; }

/* ── Loading ── */
.ss-loading {
	display: flex;
	justify-content: center;
	padding: 40px 0;
}

/* ═══════════════════════════════════════════
   POSTS TAB
   ═══════════════════════════════════════════ */

/* ── Post Cards ── */
.sp-post {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 14px;
	margin-bottom: 10px;
	transition: border-color 0.2s;
}
.sp-post:hover { border-color: rgba(255, 255, 255, 0.12); }
.sp-post--draft { opacity: 0.7; border-left: 2px solid rgba(255, 200, 0, 0.3); }

.sp-post__header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

.sp-post__icon {
	width: 32px; height: 32px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-post__icon svg {
	width: 16px; height: 16px; fill: none; stroke: white;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.sp-post__title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.sp-post__meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.sp-post__badge {
	font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
	text-transform: uppercase; letter-spacing: 0.03em;
}
.sp-post__time { font-size: 11px; color: rgba(255, 255, 255, 0.3); }
.sp-post__pinned { font-size: 10px; color: #fbbf24; display: flex; align-items: center; gap: 3px; }
.sp-post__draft-badge {
	display: inline-block; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
	background: rgba(255, 200, 0, 0.15); color: #fbbf24; letter-spacing: 0.5px;
	vertical-align: middle; margin-left: 4px; text-transform: uppercase;
}

.sp-post__content {
	font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.6;
	max-height: 120px; overflow: hidden; margin-bottom: 8px;
}
.sp-post__content img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.sp-post__content h1, .sp-post__content h2, .sp-post__content h3 { font-size: 14px; color: rgba(255,255,255,0.8); margin: 4px 0; }
.sp-post__content p { margin: 4px 0; }
.sp-post__content a { color: #a78bfa; }

.sp-post__actions { display: flex; gap: 2px; margin-left: auto; flex-shrink: 0; }
.sp-post__action-btn {
	background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer;
	padding: 4px; border-radius: 4px; display: flex; align-items: center;
}
.sp-post__action-btn:hover { color: #a78bfa; background: rgba(107, 74, 163, 0.15); }
.sp-post__action-btn--danger:hover { color: #ef4444; background: rgba(239, 68, 68, 0.15); }
.sp-post__action-btn--draft { color: #22c55e; }
.sp-post__action-btn--draft:hover { color: #4ade80; background: rgba(34, 197, 94, 0.12); }

/* ── Reactions ── */
.sp-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.sp-reaction {
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px; padding: 3px 8px; font-size: 12px; cursor: pointer;
	transition: all 0.15s; display: flex; align-items: center; gap: 4px;
	color: rgba(255, 255, 255, 0.5);
}
.sp-reaction:hover { background: rgba(255, 255, 255, 0.1); }
.sp-reaction--active {
	background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); color: #c4b5fd;
}
.sp-reaction-count { font-size: 11px; }
.sp-reaction-add {
	background: none; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 20px;
	padding: 3px 8px; font-size: 14px; cursor: pointer; color: rgba(255, 255, 255, 0.3);
	transition: all 0.15s; position: relative;
}
.sp-reaction-add:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); }
.sp-reaction-picker {
	display: none; position: absolute; bottom: 110%; right: 0;
	background: rgba(20, 16, 40, 0.95); border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px; padding: 6px; gap: 2px; flex-wrap: wrap;
	z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.sp-reaction-picker.open { display: flex; }
.sp-reaction-picker button {
	background: none; border: none; font-size: 18px; padding: 4px 6px;
	cursor: pointer; border-radius: 6px; transition: background 0.15s;
}
.sp-reaction-picker button:hover { background: rgba(255,255,255,0.1); }

/* ── Comments ── */
.sp-comments-toggle {
	background: none; border: none; color: rgba(255, 255, 255, 0.4);
	font-size: 12px; cursor: pointer; display: flex; align-items: center;
	gap: 5px; padding: 4px 0; font-family: inherit; transition: color 0.15s;
}
.sp-comments-toggle:hover { color: rgba(255,255,255,0.6); }
.sp-comments { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.sp-comments.open { display: block; }

.sp-comment { display: flex; gap: 8px; margin-bottom: 8px; }
.sp-comment--reply { margin-left: 28px; }
.sp-comment__avatar {
	width: 24px; height: 24px; border-radius: 50%;
	background: rgba(139, 92, 246, 0.2); color: #c4b5fd;
	font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	overflow: hidden;
}
.sp-comment__avatar canvas { display: block; width: 100%; height: 100%; }
.sp-comment__avatar--teacher { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.sp-comment__body { flex: 1; min-width: 0; }
.sp-comment__name { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.sp-comment__time { font-size: 10px; color: rgba(255, 255, 255, 0.25); margin-left: 6px; }
.sp-comment__text { font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.5; word-break: break-word; }
.sp-comment__actions { display: flex; gap: 8px; margin-top: 2px; }
.sp-comment__action {
	background: none; border: none; font-size: 11px; color: rgba(255, 255, 255, 0.3);
	cursor: pointer; padding: 0; font-family: inherit; transition: color 0.15s;
}
.sp-comment__action:hover { color: rgba(255,255,255,0.6); }

.sp-comment-input { display: flex; gap: 6px; margin-top: 8px; }
.sp-comment-input input {
	flex: 1; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px; padding: 7px 10px; color: #fff; font-size: 12px;
	font-family: inherit; outline: none; transition: border-color 0.2s;
}
.sp-comment-input input:focus { border-color: rgba(139, 92, 246, 0.4); }
.sp-comment-input input::placeholder { color: rgba(255,255,255,0.25); }
.sp-comment-input button {
	background: linear-gradient(135deg, #7c3aed, #6d28d9); border: none;
	border-radius: 8px; padding: 7px 12px; color: #fff; font-size: 12px;
	font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
	transition: opacity 0.15s;
}
.sp-comment-input button:hover { opacity: 0.85; }

/* ── Post Editor (inline in sidebar) ── */
.ss-editor {
	display: none; flex-direction: column; gap: 8px; padding: 12px;
	flex: 1; overflow-y: auto;
}
.ss-editor.open { display: flex; }
.ss-editor__header { display: flex; align-items: center; justify-content: space-between; }
.ss-editor__title { font-weight: 700; font-size: 14px; color: #e2d5f0; }
.ss-editor__close { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; padding: 4px; }
.ss-editor__close:hover { color: #e2d5f0; }
.ss-editor__group { display: flex; flex-direction: column; gap: 3px; }
.ss-editor__group--grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ss-editor__group--half { flex: 1; min-width: 0; }
.ss-editor__field-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.04em; }
.ss-editor input {
	width: 100%; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.1);
	border-radius: 6px; background: rgba(255,255,255,0.04); color: #e2d5f0;
	font-family: inherit; font-size: 13px; outline: none; box-sizing: border-box;
}
.ss-editor input:focus { border-color: #ffd700; }
.ss-editor__row { display: flex; gap: 10px; }
.ss-editor__check {
	font-size: 11px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.ss-editor__check input { width: auto; }
.ss-editor__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 2px; }
.ss-editor__actions button {
	padding: 6px 16px; border-radius: 6px; border: none;
	font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
	transition: all 0.15s;
}
.ss-editor__cancel { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.ss-editor__cancel:hover { color: #e2d5f0; background: rgba(255,255,255,0.12); }
.ss-editor__delete { background: rgba(239,68,68,0.15); color: #f87171; }
.ss-editor__delete:hover { background: rgba(239,68,68,0.25); }
.ss-editor__publish { background: #ffd700; color: #1a1a2e; }
.ss-editor__publish:hover { opacity: 0.85; }

/* TipTap container inside sidebar editor */
.ss-editor__tiptap-container {
	flex: 1; min-height: 0; position: relative;
	border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
	background: rgba(255,255,255,0.04);
	display: flex; flex-direction: column;
}
/* Hide the full toolbar in sidebar — use bubble menu + slash commands instead */
.ss-editor__tiptap-container .te-toolbar { display: none; }
.ss-editor__tiptap-container .te-wrapper {
	border: none; background: transparent; overflow: visible;
	flex: 1; display: flex; flex-direction: column;
}
.ss-editor__tiptap-container .te-editor {
	flex: 1; overflow: visible; display: flex; flex-direction: column;
}
.ss-editor__tiptap-container .ProseMirror {
	padding: 10px 12px; flex: 1; outline: none;
	color: #e2d5f0; font-family: inherit; font-size: 13px;
}
.ss-editor__tiptap-container .ProseMirror p.is-editor-empty:first-child::before {
	color: rgba(255,255,255,0.25); pointer-events: none; float: left; height: 0;
}
.ss-editor__tiptap-container:focus-within { border-color: #ffd700; }
/* Bubble menu needs high z-index in sidebar context */
.ss-editor .te-bubble { position: fixed; z-index: 10000; }
/* Status bar compact */
.ss-editor__tiptap-container .te-status { font-size: 10px; padding: 2px 8px; opacity: 0.5; }

/* Styled access level dropdown */
.ss-editor__access-select { position: relative; }
.ss-editor__access-trigger {
	width: 100%; display: flex; align-items: center; gap: 6px;
	padding: 7px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
	background: rgba(255,255,255,0.04); color: #e2d5f0;
	font-family: inherit; font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.ss-editor__access-trigger:hover { border-color: rgba(255,255,255,0.2); }
.ss-editor__access-trigger.open { border-color: #ffd700; }
.ss-editor__access-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ss-editor__access-chevron { width: 14px; height: 14px; margin-left: auto; opacity: 0.4; flex-shrink: 0; }
.ss-editor__access-dropdown {
	display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
	margin-top: 4px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
	background: #12101e; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
	overflow: hidden;
}
.ss-editor__access-dropdown.open { display: block; }
.ss-editor__access-option {
	width: 100%; display: flex; align-items: center; gap: 6px;
	padding: 8px 10px; border: none; background: transparent;
	color: rgba(255,255,255,0.6); font-family: inherit; font-size: 12px;
	cursor: pointer; transition: all 0.1s; text-align: left;
}
.ss-editor__access-option:hover { background: rgba(255,255,255,0.06); color: #e2d5f0; }
.ss-editor__access-option.active { background: rgba(107,74,163,0.15); color: #c9a0dc; }

/* Access level description */
.ss-editor__access-desc {
	display: block; font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 1px;
}
.ss-editor__access-option.active .ss-editor__access-desc { color: rgba(201,160,220,0.5); }

/* Class pills in editor */
.ss-editor__class-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.ss-editor__class-pill {
	padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
	background: transparent; color: rgba(255,255,255,0.5);
	font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
	transition: all 0.15s;
}
.ss-editor__class-pill:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
.ss-editor__class-pill.active { background: #ffd70020; border-color: #ffd700; color: #ffd700; }
.ss-editor__class-pill[data-class]:not([data-class=""]) { border-color: var(--pill-color, #8b5cf6); }
.ss-editor__class-pill[data-class]:not([data-class=""]).active {
	background: color-mix(in srgb, var(--pill-color, #8b5cf6) 20%, transparent);
	border-color: var(--pill-color, #8b5cf6); color: var(--pill-color, #8b5cf6);
}

/* Icon picker grid */
.ss-editor__icon-picker {
	display: flex; flex-wrap: wrap; gap: 3px;
}
.ss-editor__icon-btn {
	width: 24px; height: 24px; border-radius: 4px;
	border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
	color: rgba(255,255,255,0.4); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.15s; padding: 0;
}
.ss-editor__icon-btn svg { width: 13px; height: 13px; }
.ss-editor__icon-btn:hover { border-color: #6b4aa3; color: #c9a0dc; background: rgba(107,74,163,0.1); }
.ss-editor__icon-btn.active { border-color: #ffd700; color: #ffd700; background: rgba(255,215,0,0.1); }

/* ── Post Detail Modal ── */
.sp-modal-overlay {
	position: fixed; inset: 0; z-index: 10000;
	background: rgba(0, 0, 0, 0.6);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity 0.2s ease;
	backdrop-filter: blur(4px);
}
.sp-modal-overlay.open { opacity: 1; }
.sp-modal {
	background: #12101e; border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px; width: 90%; max-width: 640px; max-height: 85vh;
	display: flex; flex-direction: column;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
	transform: scale(0.95) translateY(10px);
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-modal-overlay.open .sp-modal { transform: scale(1) translateY(0); }
.sp-modal__header {
	display: flex; align-items: flex-start; justify-content: space-between;
	padding: 20px 24px 12px; gap: 12px;
}
.sp-modal__header-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.sp-modal__icon {
	width: 40px; height: 40px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-modal__icon svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-modal__title { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1.3; }
.sp-modal__meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; flex-wrap: wrap; }
.sp-modal__badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.sp-modal__header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.sp-modal__maximize { background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer; padding: 6px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.sp-modal__maximize:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.sp-modal__close { background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer; padding: 4px; border-radius: 6px; flex-shrink: 0; }
.sp-modal__close:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }

/* Maximized modal */
.sp-modal--maximized {
	width: 100% !important; max-width: 100% !important; max-height: 100% !important;
	height: 100%; border-radius: 0;
}
.sp-modal--maximized .sp-modal__header { padding: 10px 16px 8px; }
.sp-modal--maximized .sp-modal__body {
	flex: 1; min-height: 0; padding: 0 12px 8px;
	display: flex; flex-direction: column;
}
.sp-modal--maximized .sp-modal__content {
	flex: 1; min-height: 0; display: flex; flex-direction: column;
}
.sp-modal--maximized .sp-modal__content > div[data-iframe],
.sp-modal--maximized .sp-modal__content > .te-iframe-wrapper,
.sp-modal--maximized .sp-modal__content iframe {
	flex: 1; min-height: 0; height: 100% !important;
}
.sp-modal--maximized .sp-modal__reactions { padding: 4px 12px 4px; }
.sp-modal--maximized .sp-modal__comments { max-height: 120px; padding: 8px 12px; }
.sp-modal__body { flex: 1; overflow-y: auto; padding: 0 24px 16px; }
.sp-modal__content { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.7); word-wrap: break-word; }
.sp-modal__content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.sp-modal__content h1, .sp-modal__content h2, .sp-modal__content h3 { color: rgba(255,255,255,0.85); margin: 12px 0 6px; }
.sp-modal__content p { margin: 6px 0; }
.sp-modal__content a { color: #a78bfa; }
.sp-modal__content blockquote { border-left: 3px solid #6b4aa3; padding-left: 12px; margin: 8px 0; color: rgba(255,255,255,0.5); }
.sp-modal__content pre { background: rgba(255,255,255,0.04); padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.sp-modal__reactions { display: flex; gap: 6px; padding: 0 24px 12px; flex-wrap: wrap; }
.sp-modal__comments { border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 24px; max-height: 300px; overflow-y: auto; }
.sp-modal-comment { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.sp-modal-comment--reply { margin-left: 36px; }
.sp-modal-comment__avatar {
	width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
	background: rgba(107,74,163,0.3); color: #a78bfa;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sp-modal-comment__avatar canvas { display: block; width: 100%; height: 100%; }
.sp-modal-comment__avatar--teacher { background: rgba(255,215,0,0.15); color: #ffd700; }
.sp-modal-comment-input { display: flex; gap: 8px; margin-top: 12px; }
.sp-modal-comment-input input {
	flex: 1; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px; background: rgba(255,255,255,0.04); color: #e2d5f0;
	font-family: inherit; font-size: 13px; outline: none;
}
.sp-modal-comment-input input:focus { border-color: #ffd700; }
.sp-modal-comment-input button {
	padding: 8px 16px; border-radius: 8px; border: none;
	background: #ffd700; color: #1a1a2e; font-family: inherit;
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.sp-modal-comment-input button:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════
   NOTIFICATIONS TAB
   ═══════════════════════════════════════════ */
.ss-notif-item {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 10px 14px; cursor: pointer; transition: background 0.1s;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04); position: relative;
	border-radius: 8px; margin-bottom: 2px;
}
.ss-notif-item:hover { background: rgba(107, 74, 163, 0.08); }
.ss-notif-item--read { opacity: 0.55; }

.ss-notif-icon {
	width: 32px; height: 32px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ss-notif-icon svg { width: 16px; height: 16px; }
.ss-notif-icon--info { background: rgba(100, 181, 246, 0.15); color: #64b5f6; }
.ss-notif-icon--success { background: rgba(86, 212, 143, 0.15); color: #56d48f; }
.ss-notif-icon--warning { background: rgba(255, 183, 77, 0.15); color: #ffb74d; }
.ss-notif-icon--action { background: rgba(186, 104, 200, 0.15); color: #ba68c8; }
.ss-notif-icon--reward { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.ss-notif-icon--assignment { background: rgba(107, 74, 163, 0.15); color: #c9a0dc; }
.ss-notif-icon--reminder { background: rgba(255, 138, 101, 0.15); color: #ff8a65; }
.ss-notif-icon--message { background: rgba(107, 74, 163, 0.15); color: #c9a0dc; }

.ss-notif-content { flex: 1; min-width: 0; }
.ss-notif-title { font-size: 13px; font-weight: 600; color: #e2e8f0; line-height: 1.3; }
.ss-notif-body {
	font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.4; margin-top: 2px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ss-notif-meta { font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 4px; }
.ss-notif-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #6b4aa3; flex-shrink: 0; margin-top: 4px;
}

/* ═══════════════════════════════════════════
   MESSAGES TAB
   ═══════════════════════════════════════════ */

/* ── Thread List ── */
.ss-thread-item {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 10px 14px; cursor: pointer; transition: background 0.1s;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: 8px; margin-bottom: 2px;
}
.ss-thread-item:hover { background: rgba(107, 74, 163, 0.08); }
.ss-thread-item--unread .ss-thread-subject { color: #ffd700; font-weight: 700; }
.ss-thread-avatar {
	width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700; color: #fff;
	background: #6b4aa3; overflow: hidden;
}
.ss-thread-avatar canvas { width: 32px !important; height: 32px !important; display: block; }
.ss-thread-avatar--shared { background: #f59e0b; }
.ss-thread-info { flex: 1; min-width: 0; }
.ss-thread-subject { font-size: 13px; font-weight: 600; color: #e2e8f0; line-height: 1.3; }
.ss-thread-preview { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-thread-meta { font-size: 10px; color: rgba(255,255,255,0.2); margin-top: 3px; }
.ss-thread-badges { display: flex; gap: 4px; align-items: center; }
.ss-thread-badge {
	font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 6px;
	text-transform: uppercase; letter-spacing: 0.03em;
}
.ss-thread-badge--shared { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.ss-thread-badge--count { background: rgba(107, 74, 163, 0.15); color: #c9a0dc; }

/* ── Thread Detail ── */
.ss-thread-detail { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.ss-thread-detail--open { display: flex; }

.ss-thread-header {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.ss-thread-back {
	width: 28px; height: 28px; border: none; background: rgba(255,255,255,0.06);
	border-radius: 6px; color: rgba(255,255,255,0.5); cursor: pointer;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ss-thread-back:hover { color: #ffd700; background: rgba(255,255,255,0.1); }
.ss-thread-back svg { width: 16px; height: 16px; }
.ss-thread-header-info { flex: 1; min-width: 0; }
.ss-thread-header-subject { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.ss-thread-header-participants { font-size: 10px; color: rgba(255,255,255,0.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ss-thread-messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
.ss-msg-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 10px; }
.ss-msg-row--me { justify-content: flex-end; }
.ss-msg-avatar {
	width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 700; color: #fff; background: #6b4aa3;
	overflow: hidden;
}
.ss-msg-avatar canvas { width: 24px !important; height: 24px !important; display: block; }
.ss-msg-bubble-wrap { max-width: 80%; }
.ss-msg-bubble {
	padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5;
	word-wrap: break-word;
}
.ss-msg-bubble--them { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); border-bottom-left-radius: 4px; }
.ss-msg-bubble--me { background: rgba(107, 74, 163, 0.3); color: rgba(255,255,255,0.9); border-bottom-right-radius: 4px; }
.ss-msg-sender { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.ss-msg-time { font-size: 10px; color: rgba(255,255,255,0.2); margin-top: 4px; }

/* Message reactions */
.ss-msg-reactions { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.ss-msg-react-chip {
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px; padding: 2px 6px; font-size: 11px; cursor: pointer;
	transition: all 0.15s; display: inline-flex; align-items: center; gap: 2px;
	color: rgba(255,255,255,0.5);
}
.ss-msg-react-chip:hover { background: rgba(255,255,255,0.1); }
.ss-msg-react-chip--active { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); color: #c4b5fd; }
.ss-msg-react-count { font-size: 10px; }
.ss-msg-react-add {
	background: none; border: 1px dashed rgba(255,255,255,0.08); border-radius: 12px;
	padding: 2px 6px; font-size: 11px; cursor: pointer; color: rgba(255,255,255,0.25);
}
.ss-msg-react-add:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.4); }
.ss-msg-react-picker {
	position: absolute; background: rgba(20,16,40,0.95); border: 1px solid rgba(255,255,255,0.12);
	border-radius: 10px; padding: 4px; display: flex; flex-wrap: wrap; gap: 2px;
	z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ss-msg-react-picker button {
	background: none; border: none; font-size: 16px; padding: 3px 5px;
	cursor: pointer; border-radius: 6px;
}
.ss-msg-react-picker button:hover { background: rgba(255,255,255,0.1); }

/* Thread reply input */
.ss-thread-reply {
	display: flex; gap: 8px; padding: 10px 12px;
	border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.ss-thread-reply-editor { flex: 1; }
.ss-thread-reply input {
	width: 100%; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px; background: rgba(255,255,255,0.04); color: #e2d5f0;
	font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box;
}
.ss-thread-reply input:focus { border-color: #ffd700; }
.ss-thread-reply button {
	padding: 8px 16px; border-radius: 8px; border: none;
	background: #ffd700; color: #1a1a2e; font-family: inherit;
	font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.ss-thread-reply button:hover { opacity: 0.85; }

/* ── Compose View ── */
.ss-compose { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.ss-compose--open { display: flex; }
.ss-compose-form {
	flex: 1; display: flex; flex-direction: column; gap: 10px;
	padding: 12px; overflow-y: auto;
}
.ss-compose-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.ss-compose-input {
	width: 100%; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.1);
	border-radius: 6px; background: rgba(255,255,255,0.04); color: #e2d5f0;
	font-family: inherit; font-size: 13px; outline: none; box-sizing: border-box;
}
.ss-compose-input:focus { border-color: #ffd700; }
.ss-compose-recipients-btn {
	width: 100%; padding: 8px 10px; border: 1px dashed rgba(255,255,255,0.15);
	border-radius: 6px; background: transparent; color: rgba(255,255,255,0.4);
	font-family: inherit; font-size: 12px; cursor: pointer; text-align: left;
}
.ss-compose-recipients-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.6); }
.ss-compose-recipients-btn--selected { border-style: solid; border-color: #6b4aa3; color: #c9a0dc; }
.ss-compose-editor-wrap {
	flex: 1; min-height: 100px; border: 1px solid rgba(255,255,255,0.1);
	border-radius: 6px; overflow: hidden;
}
.ss-compose-textarea {
	width: 100%; min-height: 100px; padding: 8px 10px;
	border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
	background: rgba(255,255,255,0.04); color: #e2d5f0;
	font-family: inherit; font-size: 13px; outline: none; resize: vertical;
	box-sizing: border-box;
}
.ss-compose-textarea:focus { border-color: #ffd700; }
.ss-compose-toggle {
	display: flex; align-items: center; gap: 6px;
	font-size: 11px; color: rgba(255,255,255,0.5); cursor: pointer;
}
.ss-compose-actions { display: flex; justify-content: flex-end; padding-top: 8px; }
.ss-compose-send {
	padding: 8px 20px; border-radius: 8px; border: none;
	background: #ffd700; color: #1a1a2e; font-family: inherit;
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.ss-compose-send:hover { opacity: 0.85; }
.ss-compose-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══════════════════════════════════════════
   FEATURED RESOURCES & BOOKMARKS
   ═══════════════════════════════════════════ */

/* ── Section (collapsible) ── */
.ss-section {
	margin-bottom: 8px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
}
.ss-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 12px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	font-weight: 700;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: color 0.15s;
}
.ss-section__header:hover { color: #ffd700; }
.ss-section__title {
	display: flex;
	align-items: center;
	gap: 6px;
}
.ss-section__body {
	padding: 0 8px 8px;
}
.ss-section__empty {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.25);
	padding: 4px 4px;
}
.ss-bookmarks-section .ss-section__title svg,
.ss-bookmarks-section .ss-section__header { color: #ffd700; }
.ss-resources-section .ss-section__title svg { color: #a78bfa; }

/* ── Resource Link Items ── */
.ss-resource {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	margin-bottom: 2px;
	border-radius: 8px;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.7);
	transition: all 0.15s;
	font-size: 12px;
}
.ss-resource:hover {
	background: rgba(107, 74, 163, 0.12);
	color: #c9a0dc;
}
.ss-resource__icon {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: rgba(107, 74, 163, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #a78bfa;
}
.ss-resource__title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}
.ss-resource__actions {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.25);
}
.ss-resource-add {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	margin-top: 4px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.35);
	font-size: 11px;
	font-family: inherit;
	cursor: pointer;
	width: 100%;
	transition: all 0.15s;
}
.ss-resource-add:hover {
	border-color: #ffd700;
	color: #ffd700;
	background: rgba(255, 215, 0, 0.05);
}

/* ── Bookmark Button ── */
.ss-bookmark-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	transition: all 0.15s;
	flex-shrink: 0;
}
.ss-bookmark-btn:hover { color: #ffd700; background: rgba(255, 215, 0, 0.1); }
.ss-bookmark-btn--active { color: #ffd700; }
.ss-bookmark-btn--active:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* ── Bookmarked Post Item ── */
.ss-bm-post {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	margin-bottom: 2px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s;
}
.ss-bm-post:hover { background: rgba(107, 74, 163, 0.12); }
.ss-bm-post-icon {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ss-bm-post-icon svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: white;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ss-bm-post__info { flex: 1; min-width: 0; }
.ss-bm-post__title {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ss-bm-post__meta {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.3);
}

/* ── Resource Editor Modal ── */
.ss-resource-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ss-resource-modal {
	background: #1a1a2e;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 20px;
	width: 360px;
	max-width: 90vw;
}
.ss-resource-modal__header {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 16px;
}
.ss-resource-modal__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
	margin-top: 10px;
}
.ss-resource-modal__input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: #e2d5f0;
	font-family: inherit;
	font-size: 13px;
	outline: none;
	box-sizing: border-box;
}
.ss-resource-modal__input:focus { border-color: #ffd700; }
.ss-resource-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}
.ss-resource-modal__actions button {
	padding: 6px 16px;
	border-radius: 6px;
	border: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
}
.ss-res-icon-picker {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: 4px;
}
.ss-res-icon-opt {
	width: 32px;
	height: 32px;
	border: 1.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s;
}
.ss-res-icon-opt:hover { border-color: #6b4aa3; color: #a78bfa; }
.ss-res-icon-opt.active { border-color: #ffd700; color: #ffd700; background: rgba(255, 215, 0, 0.1); }

/* ── Content Picker (slash command dropdown) ── */
.ss-res-url-wrap { position: relative; }
.ss-content-picker {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 260px;
	overflow-y: auto;
	background: #1e1e36;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	margin-top: 4px;
	z-index: 10;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.ss-content-picker::-webkit-scrollbar { width: 4px; }
.ss-content-picker::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
.ss-cp-loading, .ss-cp-empty {
	padding: 12px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.35);
	text-align: center;
}
.ss-cp-group { padding: 4px 0; }
.ss-cp-group + .ss-cp-group { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ss-cp-group-label {
	padding: 6px 12px 2px;
	font-size: 10px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.35);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.ss-cp-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 7px 12px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-family: inherit;
	font-size: 12px;
	text-align: left;
	cursor: pointer;
	transition: background 0.1s;
}
.ss-cp-item:hover { background: rgba(107, 74, 163, 0.15); }
.ss-cp-item-icon {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: rgba(107, 74, 163, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #a78bfa;
}
.ss-cp-item-info { flex: 1; min-width: 0; }
.ss-cp-item-name {
	display: block;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ss-cp-item-detail {
	display: block;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.3);
	margin-top: 1px;
}

/* ── Body layout adjustment when sidebar is open ── */
body.ss-open .quick-panel { right: 410px; }

/* ── Responsive ── */
@media (max-width: 900px) {
	.ss-sidebar { width: 320px; }
}
@media (max-width: 500px) {
	.ss-sidebar { width: 100%; }
	.ss-toggle { top: 4px; right: 4px; }
}
