/**
 * shadcn/ui layer for OSSN
 *
 * Design tokens are shadcn/ui's "zinc" base with the "green" theme applied
 * (values copied from shadcn-ui/ui apps/v4/registry/themes.ts).
 * Loaded after the GoBlue-derived base stylesheet and overrides it.
 */
@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('https://staging.comlagalumni.org/themes/shadcn/vendors/geist/Geist-Variable.woff2') format('woff2');
}

/* ------------------------------------------------------------------ tokens */
:root {
	--radius: 0.375rem;               /* 6px base corner (Ahmed: less rounded than shadcn default 10px) */
	--background: oklch(1 0 0);
	--foreground: oklch(0.141 0.005 285.823);
	--card: oklch(1 0 0);
	--card-foreground: oklch(0.141 0.005 285.823);
	--popover: oklch(1 0 0);
	--popover-foreground: oklch(0.141 0.005 285.823);
	--primary: oklch(0.527 0.154 150.069);
	--primary-foreground: oklch(0.982 0.018 155.826);
	--secondary: oklch(0.967 0.001 286.375);
	--secondary-foreground: oklch(0.21 0.006 285.885);
	--muted: oklch(0.967 0.001 286.375);
	--muted-foreground: oklch(0.552 0.016 285.938);
	--accent: oklch(0.967 0.001 286.375);
	--accent-foreground: oklch(0.21 0.006 285.885);
	--destructive: oklch(0.577 0.245 27.325);
	--border: oklch(0.92 0.004 286.32);
	--input: oklch(0.92 0.004 286.32);
	--ring: oklch(0.792 0.209 151.711);
	--chart-1: oklch(0.871 0.15 154.449);
	--chart-2: oklch(0.723 0.219 149.579);
	--chart-3: oklch(0.627 0.194 149.214);
	--chart-4: oklch(0.527 0.154 150.069);
	--chart-5: oklch(0.448 0.119 151.328);
	--sidebar: oklch(0.985 0 0);
	--sidebar-foreground: oklch(0.141 0.005 285.823);
	--sidebar-primary: oklch(0.627 0.194 149.214);
	--sidebar-primary-foreground: oklch(0.982 0.018 155.826);
	--sidebar-accent: oklch(0.967 0.001 286.375);
	--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
	--sidebar-border: oklch(0.92 0.004 286.32);
	--sidebar-ring: oklch(0.792 0.209 151.711);

	--sc-sidebar-width: 16rem;
	--sc-header-height: 3.5rem;
	/* Sizes from the shadcncraft Pro Figma kit (Card, Button, Input, Field components).
	   The kit draws controls and cards flat: its control and surface shadows are transparent,
	   so xs/sm are empty here; md/lg stay for menus, popovers and dialogs. */
	--sc-shadow-xs: 0 0 #0000;
	--sc-shadow-sm: 0 0 #0000;
	--sc-control-h: 2rem;              /* button and input height: 32px */
	--sc-control-h-sm: 1.75rem;        /* small button: 28px */
	--sc-control-h-lg: 2.25rem;        /* large button: 36px */
	--sc-control-px: 0.625rem;         /* button and input side padding: 10px */
	/* corners: Ahmed prefers fields and buttons less rounded than the kit's 10px */
	--sc-control-radius: var(--radius);                /* 6px */
	--sc-control-radius-sm: var(--radius);             /* 6px: small buttons match the rest */
	--sc-container-radius: var(--radius);              /* 6px: cards and panels match fields and buttons */
	--sc-tag-radius: 0.25rem;          /* 4px: tags, chips, count badges */
	--sc-card-pad: 1rem;               /* card padding: 16px */
	--sc-card-border: color-mix(in oklch, var(--foreground) 10%, transparent);
	--sc-field-gap: 0.625rem;          /* label to field: 10px */
	--sc-field-stack: 1rem;            /* between fields: 16px */
	--sc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--sc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--sc-font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color-scheme: light;
}
:root.dark {
	--background: oklch(0.141 0.005 285.823);
	--foreground: oklch(0.985 0 0);
	--card: oklch(0.21 0.006 285.885);
	--card-foreground: oklch(0.985 0 0);
	--popover: oklch(0.21 0.006 285.885);
	--popover-foreground: oklch(0.985 0 0);
	--primary: oklch(0.448 0.119 151.328);
	--primary-foreground: oklch(0.982 0.018 155.826);
	--secondary: oklch(0.274 0.006 286.033);
	--secondary-foreground: oklch(0.985 0 0);
	--muted: oklch(0.274 0.006 286.033);
	--muted-foreground: oklch(0.705 0.015 286.067);
	--accent: oklch(0.274 0.006 286.033);
	--accent-foreground: oklch(0.985 0 0);
	--destructive: oklch(0.704 0.191 22.216);
	--border: oklch(1 0 0 / 10%);
	--input: oklch(1 0 0 / 15%);
	--ring: oklch(0.527 0.154 150.069);
	--sidebar: oklch(0.21 0.006 285.885);
	--sidebar-foreground: oklch(0.985 0 0);
	--sidebar-primary: oklch(0.723 0.219 149.579);
	--sidebar-primary-foreground: oklch(0.982 0.018 155.826);
	--sidebar-accent: oklch(0.274 0.006 286.033);
	--sidebar-accent-foreground: oklch(0.985 0 0);
	--sidebar-border: oklch(1 0 0 / 10%);
	--sidebar-ring: oklch(0.527 0.154 150.069);
	color-scheme: dark;
}

/* Bootstrap 5.3 reads these, so its components follow the tokens */
:root, :root.dark {
	--bs-body-font-family: var(--sc-font);
	--bs-body-font-size: 0.875rem;
	--bs-body-bg: var(--background);
	--bs-body-color: var(--foreground);
	--bs-emphasis-color: var(--foreground);
	--bs-secondary-color: var(--muted-foreground);
	--bs-tertiary-bg: var(--muted);
	--bs-secondary-bg: var(--muted);
	--bs-border-color: var(--border);
	--bs-border-radius: var(--radius);
	--bs-border-radius-sm: var(--sc-tag-radius);
	--bs-border-radius-lg: var(--radius);
	--bs-link-color: var(--primary);
	--bs-link-hover-color: var(--primary);
	--bs-link-color-rgb: 22, 163, 74;
	--bs-link-hover-color-rgb: 21, 128, 61;
	--bs-primary: var(--primary);
	--bs-primary-rgb: 22, 163, 74;
	--bs-focus-ring-color: color-mix(in oklch, var(--ring) 50%, transparent);
}

/* ------------------------------------------------------------------ base */
body.sc {
	background: var(--background) !important;
	color: var(--foreground);
	font-family: var(--sc-font) !important;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.sc *, body.sc *::before, body.sc *::after { border-color: var(--border); }
body.sc h1, body.sc h2, body.sc h3, body.sc h4, body.sc h5, body.sc h6,
body.sc input, body.sc button, body.sc select, body.sc textarea {
	font-family: var(--sc-font) !important;
	color: inherit;
}
body.sc h1, body.sc h2, body.sc h3 { letter-spacing: -0.025em; font-weight: 600; }
body.sc a { color: var(--foreground); text-decoration: none; }
body.sc a:hover { color: var(--primary); }
body.sc ::selection { background: color-mix(in oklch, var(--primary) 25%, transparent); }
body.sc :focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent) !important;
	border-radius: var(--sc-tag-radius);
}

/* Lucide icons rendered by vendors/lucide/ossn-lucide.js */
.sc-lucide { font-style: normal; display: inline-flex; align-items: center; justify-content: center; line-height: 1; vertical-align: -0.15em; }
.sc-lucide::before, .sc-lucide::after { content: none !important; display: none !important; }
.sc-icon { width: 1em; height: 1em; stroke-width: 2; flex-shrink: 0; }
i[data-icon] { font-style: normal; display: inline-flex; width: 1rem; height: 1rem; }
i[data-icon] .sc-icon { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ app shell */
.sc-shell { min-height: 100vh; background: var(--background); }
body.sc .sc-shell.sc-has-sidebar .ossn-page-container,
body.sc .ossn-page-container.sc-inset {
	margin-left: 0 !important;
	width: auto !important;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	transition: padding-left 200ms ease-linear;
	position: relative;
	float: none !important;
}
@media (min-width: 1024px) {
	body.sc .sc-shell.sc-has-sidebar .sc-inset { padding-left: var(--sc-sidebar-width); }
	.sc-sidebar-collapsed body.sc .sc-shell.sc-has-sidebar .sc-inset { padding-left: 0; }
}
body.sc .sc-main.ossn-inner-page {
	flex: 1;
	padding: 1.5rem 1rem 2rem;
	margin: 0 !important;
	width: 100% !important;
	background: transparent;
}
@media (min-width: 768px) { body.sc .sc-main.ossn-inner-page { padding: 1.5rem 1.5rem 2.5rem; } }

/* header (SidebarInset header) */
body.sc .topbar.sc-header {
	position: sticky !important;
	top: 0;
	z-index: 30;
	height: var(--sc-header-height);
	min-height: var(--sc-header-height);
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0 1rem !important;
	margin: 0 !important;
	width: 100% !important;
	background: color-mix(in oklch, var(--background) 85%, transparent) !important;
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--border);
	box-shadow: none !important;
	color: var(--foreground);
}
body.sc .sc-header-left, body.sc .sc-header-right { display: flex !important; align-items: center; gap: 0.5rem; width: auto !important; float: none !important; margin: 0 !important; }
body.sc .sc-header-title { display: inline-flex !important; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--foreground) !important; }
body.sc .sc-header .site-name span, body.sc .sc-header .site-name a { color: inherit !important; font-size: inherit; }
.sc-separator-v { width: 1px; height: 1rem; background: var(--border); margin: 0 0.25rem; }
@media (min-width: 1024px) { .sc-has-sidebar .sc-header-title { display: none !important; } }

/* header actions: friend requests / messages / notifications */
body.sc .topbar-menu-right { float: none !important; position: static; }
body.sc .sc-header-actions { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
body.sc .sc-header-actions > li { position: relative; display: block; float: none; list-style: none; margin: 0; padding: 0; }
body.sc .sc-header-actions > li > a {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--sc-control-h); height: var(--sc-control-h); border-radius: var(--sc-control-radius);
	color: var(--foreground) !important; padding: 0 !important; background: transparent;
	transition: background-color 150ms;
}
body.sc .sc-header-actions > li > a:hover { background: var(--accent); color: var(--accent-foreground) !important; }
body.sc .sc-header-actions .ossn-icon { display: inline-flex; font-size: 1rem !important; color: inherit !important; width: auto; height: auto; background: none !important; margin: 0 !important; }
body.sc .sc-header-actions .ossn-icon i { font-size: 1rem; color: inherit !important; }
body.sc .ossn-notification-container {
	position: absolute !important; top: 2px; right: 2px; left: auto !important;
	min-width: 1rem; height: 1rem; padding: 0 0.25rem; border-radius: var(--sc-tag-radius);
	background: var(--primary) !important; color: var(--primary-foreground) !important;
	font-size: 10px; line-height: 1rem; font-weight: 600; text-align: center; border: 2px solid var(--background);
	box-sizing: content-box;
}

/* ------------------------------------------------------------------ sidebar */
body.sc .sidebar.sc-sidebar {
	position: fixed !important;
	inset: 0 auto 0 0;
	z-index: 40;
	width: var(--sc-sidebar-width) !important;
	height: 100vh !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column;
	background: var(--sidebar) !important;
	color: var(--sidebar-foreground);
	border-right: 1px solid var(--sidebar-border);
	box-shadow: none !important;
	transform: translateX(-100%);
	transition: transform 200ms ease-linear;
	overflow: hidden;
	left: 0 !important;
}
@media (min-width: 1024px) {
	body.sc .sidebar.sc-sidebar { transform: none; }
	.sc-sidebar-collapsed body.sc .sidebar.sc-sidebar { transform: translateX(-100%); }
}
.sc-sidebar-mobile-open body.sc .sidebar.sc-sidebar { transform: none; box-shadow: var(--sc-shadow-lg) !important; }
.sc-sidebar-backdrop { display: none; }
@media (max-width: 1023.98px) {
	.sc-sidebar-mobile-open .sc-sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(0 0 0 / 0.5); }
}

.sc-sidebar-header { padding: 0.5rem; }
.sc-brand {
	display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-radius: var(--radius);
	color: var(--sidebar-foreground) !important;
}
.sc-brand:hover { background: var(--sidebar-accent); }
.sc-brand-mark {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 2rem; height: 2rem; border-radius: var(--radius);
	background: var(--sidebar-primary); color: var(--sidebar-primary-foreground);
}
.sc-brand-mark-sm { width: 1.75rem; height: 1.75rem; }
/* Alumni crest as the brand mark: no green tile behind it */
.sc-brand-mark.sc-brand-mark-img { background: transparent !important; border-radius: 0; width: 2.25rem; height: 2.25rem; }
.sc-brand-mark.sc-brand-mark-sm.sc-brand-mark-img { width: 2rem; height: 2rem; }
.sc-brand-mark-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-brand-text { display: grid; line-height: 1.25; min-width: 0; }
.sc-brand-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-brand-sub { font-size: 0.75rem; color: var(--muted-foreground); }

body.sc .sc-sidebar-content.sidebar-contents {
	flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
	padding: 0 !important; margin: 0 !important; width: 100% !important; background: transparent !important;
}
/* the profile card the core injects into the sidebar is shown in the footer instead */
body.sc .sc-sidebar .newseed-uinfo { display: none !important; }

/* sidebar search */
body.sc .sc-sidebar form.ossn-search { padding: 0 0.5rem 0.5rem; margin: 0 !important; position: relative; background: none !important; }
body.sc .sc-sidebar form.ossn-search fieldset { position: relative; margin: 0; padding: 0; border: 0; }
body.sc .sc-sidebar form.ossn-search input[type="text"] {
	width: 100% !important; height: 2rem !important; margin: 0 !important;
	padding: 0 0.5rem 0 2rem !important; font-size: 0.875rem !important;
	background: var(--background) !important; border: 1px solid var(--sidebar-border) !important;
	border-radius: var(--sc-control-radius) !important; box-shadow: none !important; color: var(--foreground) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: 0.55rem center !important;
}

/* SidebarGroup / SidebarMenu */
body.sc .sc-nav { padding: 0 !important; margin: 0 !important; background: transparent !important; width: 100% !important; }
.sc-group { position: relative; display: flex; flex-direction: column; padding: 0.5rem; }
.sc-group-label {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	height: 2rem; padding: 0 0.5rem; border: 0; background: transparent; border-radius: var(--radius);
	font-size: 0.75rem; font-weight: 500; color: color-mix(in oklch, var(--sidebar-foreground) 70%, transparent);
	text-align: left; cursor: pointer;
}
.sc-group-label:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.sc-group-chevron { width: 0.875rem !important; height: 0.875rem !important; transition: transform 200ms; }
.sc-group-label.collapsed .sc-group-chevron { transform: rotate(-90deg); }
body.sc .sc-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; background: transparent !important; }
/* the display:flex above overrode Bootstrap's .collapse, so the Links / Groups toggles never hid their lists */
body.sc .sc-menu.collapse:not(.show) { display: none; }
body.sc .sc-menu.collapsing { overflow: hidden; }
body.sc .sc-menu-item { list-style: none; margin: 0; padding: 0; border: 0 !important; background: none !important; }
body.sc a.sc-menu-button {
	display: flex !important; align-items: center; gap: 0.5rem; width: 100%;
	height: 2rem; padding: 0 0.5rem !important; border-radius: var(--radius);
	font-size: 0.875rem; line-height: 1; font-weight: 400;
	color: var(--sidebar-foreground) !important; background: transparent; overflow: hidden;
	transition: background-color 150ms, color 150ms;
}
body.sc a.sc-menu-button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sc a.sc-menu-button:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground) !important; }
body.sc a.sc-menu-button[data-active="true"] { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground) !important; font-weight: 500; }
body.sc a.sc-menu-button[data-active="true"] i { color: var(--sidebar-primary); }

/* sidebar footer: NavUser */
.sc-sidebar-footer { padding: 0.5rem; border-top: 1px solid var(--sidebar-border); position: relative; }
.sc-nav-user {
	display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.5rem; border: 0;
	background: transparent; border-radius: var(--radius); text-align: left; color: var(--sidebar-foreground);
}
.sc-nav-user:hover, .sc-nav-user[aria-expanded="true"] { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.sc-avatar { width: 2rem; height: 2rem; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: var(--muted); }
.sc-nav-user-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.sc-nav-user-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-nav-user-sub { font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-nav-user-chevron { margin-left: auto; color: var(--muted-foreground); }

/* ------------------------------------------------------------------ dropdown menu */
body.sc .dropdown-menu {
	--bs-dropdown-bg: var(--popover);
	--bs-dropdown-color: var(--popover-foreground);
	--bs-dropdown-border-color: var(--border);
	--bs-dropdown-link-color: var(--popover-foreground);
	--bs-dropdown-link-hover-bg: var(--accent);
	--bs-dropdown-link-hover-color: var(--accent-foreground);
	--bs-dropdown-link-active-bg: var(--accent);
	--bs-dropdown-link-active-color: var(--accent-foreground);
	--bs-dropdown-divider-bg: var(--border);
	min-width: 14rem; padding: 0.25rem !important; margin-top: 0.25rem;
	background: var(--popover) !important; color: var(--popover-foreground);
	border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
	box-shadow: var(--sc-shadow-md) !important; font-size: 0.875rem;
}
body.sc .dropdown-menu .dropdown-item, body.sc .dropdown-menu > li > a {
	display: flex !important; align-items: center; gap: 0.5rem; width: 100%;
	padding: 0.375rem 0.5rem !important; border-radius: var(--radius); /* 6px: only tags use 4px */
	color: var(--popover-foreground) !important; background: transparent; font-size: 0.875rem; line-height: 1.25rem;
	border: 0; text-align: left; white-space: nowrap;
}
body.sc .dropdown-menu .dropdown-item:hover, body.sc .dropdown-menu > li > a:hover,
body.sc .dropdown-menu .dropdown-item:focus { background: var(--accent) !important; color: var(--accent-foreground) !important; }
body.sc .dropdown-menu .dropdown-item i, body.sc .dropdown-menu > li > a i { color: var(--muted-foreground); width: 1rem; height: 1rem; }
body.sc .dropdown-menu .dropdown-item.text-danger, body.sc .dropdown-menu .menu-topbar-dropdown-logout:hover { color: var(--destructive) !important; }
body.sc .dropdown-menu .dropdown-divider { margin: 0.25rem -0.25rem; border-top: 1px solid var(--border); opacity: 1; }
.sc-dropdown-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; }
.sc-dropdown-label span { display: grid; line-height: 1.25; min-width: 0; }
.sc-dropdown-label strong { font-size: 0.875rem; font-weight: 600; }
.sc-dropdown-label small { font-size: 0.75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; }
.sc-sidebar-footer .dropdown-menu { width: calc(var(--sc-sidebar-width) - 1rem); }

/* ------------------------------------------------------------------ buttons */
.sc-btn, body.sc .btn {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 0.375rem;
	height: var(--sc-control-h); padding: 0 var(--sc-control-px) !important; white-space: nowrap;
	font-size: 0.875rem !important; font-weight: 500 !important; line-height: 1 !important;
	border-radius: var(--sc-control-radius) !important; border: 1px solid transparent !important;
	box-shadow: var(--sc-shadow-xs); text-shadow: none !important; background-image: none !important;
	transition: background-color 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
	cursor: pointer;
}
body.sc .btn-sm { height: var(--sc-control-h-sm); padding: 0 var(--sc-control-px) !important; font-size: 0.875rem !important; gap: 0.25rem; border-radius: var(--sc-control-radius-sm) !important; }
body.sc .btn-lg { height: var(--sc-control-h-lg); padding: 0 1rem !important; }
.sc-btn-icon { width: var(--sc-control-h); padding: 0 !important; }
.sc-btn-primary, body.sc .btn-primary, body.sc .btn-success, body.sc input[type="submit"].btn, body.sc #ossn-submit-button {
	background: var(--primary) !important; color: var(--primary-foreground) !important; border-color: var(--primary) !important;
}
.sc-btn-primary:hover, body.sc .btn-primary:hover, body.sc .btn-success:hover, body.sc #ossn-submit-button:hover {
	background: color-mix(in oklch, var(--primary) 90%, black) !important; color: var(--primary-foreground) !important;
}
body.sc .btn-default, body.sc .btn-light, body.sc .btn-secondary, body.sc .button-grey, body.sc .btn-outline-secondary {
	background: var(--background) !important; color: var(--foreground) !important; border-color: var(--input) !important;
}
body.sc .btn-default:hover, body.sc .btn-light:hover, body.sc .btn-secondary:hover, body.sc .button-grey:hover, body.sc .btn-outline-secondary:hover {
	background: var(--accent) !important; color: var(--accent-foreground) !important;
}
body.sc .btn-danger { background: var(--destructive) !important; color: #fff !important; border-color: var(--destructive) !important; }
body.sc .btn-danger:hover { background: color-mix(in oklch, var(--destructive) 90%, black) !important; }
body.sc .btn-warning {
	background: var(--secondary) !important; color: var(--secondary-foreground) !important; border-color: transparent !important;
}
body.sc .btn-warning:hover { background: color-mix(in oklch, var(--secondary) 80%, var(--foreground) 6%) !important; }
.sc-btn-ghost, body.sc .btn-link { background: transparent !important; color: var(--foreground) !important; box-shadow: none !important; border-color: transparent !important; }
.sc-btn-ghost:hover, body.sc .btn-link:hover { background: var(--accent) !important; color: var(--accent-foreground) !important; }
body.sc .button-grey {
	display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.75rem !important;
	border: 1px solid var(--input) !important; border-radius: var(--sc-control-radius) !important;
	font-size: 0.875rem; font-weight: 500; box-shadow: var(--sc-shadow-xs); text-shadow: none;
}
body.sc .btn:disabled, body.sc .btn.disabled { opacity: 0.5; pointer-events: none; }

/* ------------------------------------------------------------------ inputs */
body.sc input[type="text"], body.sc input[type="password"], body.sc input[type="email"], body.sc input[type="number"],
body.sc input[type="search"], body.sc input[type="url"], body.sc input[type="tel"], body.sc input[type="date"],
body.sc textarea, body.sc select, body.sc .form-control, body.sc .form-select {
	width: 100%;
	min-height: var(--sc-control-h);
	padding: 0.25rem var(--sc-control-px) !important;
	font-size: 0.875rem !important;
	line-height: 1.25rem;
	color: var(--foreground) !important;
	background-color: transparent !important;
	border: 1px solid var(--input) !important;
	border-radius: var(--sc-control-radius) !important;
	box-shadow: none !important;
	transition: border-color 150ms, box-shadow 150ms;
	outline: none;
}
:root.dark body.sc input[type="text"], :root.dark body.sc input[type="password"], :root.dark body.sc input[type="email"],
:root.dark body.sc textarea, :root.dark body.sc select, :root.dark body.sc .form-control { background-color: color-mix(in oklch, var(--input) 30%, transparent) !important; }
body.sc textarea { min-height: 4rem; }
body.sc select, body.sc .form-select {
	appearance: none; -webkit-appearance: none; padding-right: 2rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 0.6rem center !important;
}
body.sc input::placeholder, body.sc textarea::placeholder { color: var(--muted-foreground) !important; opacity: 1; }
body.sc input[type="text"]:focus, body.sc input[type="password"]:focus, body.sc input[type="email"]:focus, body.sc input[type="number"]:focus,
body.sc input[type="search"]:focus, body.sc textarea:focus, body.sc select:focus, body.sc .form-control:focus {
	border-color: var(--ring) !important;
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent) !important;
}
body.sc label, body.sc .ossn-form label { font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.375rem; }
body.sc input[type="checkbox"], body.sc input[type="radio"], body.sc .ossn-radio-input {
	accent-color: var(--primary); width: 1rem; height: 1rem; vertical-align: -0.15em; margin-right: 0.375rem;
}
body.sc .ossn-form input[type="text"], body.sc .ossn-form input[type="password"], body.sc .ossn-form textarea, body.sc .ossn-form select { margin-bottom: 0.75rem; }

/* ------------------------------------------------------------------ cards */
body.sc .ossn-widget, body.sc .widget, body.sc .ossn-layout-module, body.sc .ossn-wall-container,
body.sc .ossn-wall-item, body.sc .newsfeed-middle-top, body.sc .ossn-group-profile .ossn-group-top-row,
body.sc .ossn-profile .top-container, body.sc .ossn-search-page .ossn-search-results, body.sc .ossn-page-contents,
body.sc .ossn-layout-media .content, body.sc .ossn-messages .message-container, body.sc .ossn-messages .messages-recent {
	background: var(--card) !important;
	color: var(--card-foreground);
	border: 1px solid var(--sc-card-border) !important;
	border-radius: var(--sc-container-radius) !important;
	box-shadow: var(--sc-shadow-xs) !important;
}
/* media layout (notifications page, single photo view): base CSS adds 10px side margins, so these pages
   sat further in than the feed and profile. Same side gutters as the other pages. */
body.sc .ossn-layout-media .content { margin-left: 0 !important; margin-right: 0 !important; }
/* card title: kit CardHeader title is 16px medium, line height 22px */
body.sc .ossn-widget .widget-heading, body.sc .widget .widget-heading, body.sc .ossn-layout-module .module-title,
body.sc .ossn-widget .ossn-widget-heading {
	background: transparent !important; color: var(--card-foreground) !important;
	border: 0 !important; /* drop the old #eee top/left/right lines (bright in dark mode); keep only the divider below */
	border-bottom: 1px solid var(--border) !important; border-radius: 0 !important;
	padding: var(--sc-card-pad) !important; font-size: 1rem !important; line-height: 1.375rem; font-weight: 500 !important; letter-spacing: 0;
	text-transform: none !important;
}
/* OSSN's inner .title div stays bold: every card title is 16px medium */
body.sc .ossn-layout-module .module-title .title { font-weight: 500 !important; }
/* several buttons in a card header (album Add/Edit...) sat touching: 8px apart */
body.sc .ossn-layout-module .module-title .controls { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
body.sc .ossn-widget .widget-contents, body.sc .widget .widget-contents, body.sc .ossn-layout-module .module-contents { padding: var(--sc-card-pad) !important; }

/* ------------------------------------------------------------------ dialog (Ossn.MessageBox) */
body.sc .ossn-halt { background: rgb(0 0 0 / 0.5) !important; opacity: 1 !important; backdrop-filter: blur(1px); }
body.sc .ossn-message-box {
	background: var(--background) !important; color: var(--foreground);
	border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
	box-shadow: var(--sc-shadow-lg) !important; overflow: hidden; padding: 0 !important;
}
body.sc .ossn-message-box .title {
	background: transparent !important; color: var(--foreground) !important; border: 0 !important;
	padding: 1.5rem 1.5rem 0.25rem !important; font-size: 1.125rem !important; font-weight: 600 !important; height: auto !important;
	letter-spacing: -0.01em; border-radius: 0 !important; /* old 10px top corners; the box itself is 6px and clips */
}
body.sc .ossn-message-box .title .close-box { color: var(--muted-foreground) !important; opacity: 0.7; font-size: 1rem; top: 1.25rem !important; right: 1.25rem !important; }
body.sc .ossn-message-box .title .close-box:hover { opacity: 1; }
body.sc .ossn-message-box .contents { padding: 1rem 1.5rem !important; background: transparent !important; }
body.sc .ossn-message-box .control { background: transparent !important; border: 0 !important; padding: 0 1.5rem 1.5rem !important; display: flex; justify-content: flex-end; gap: 0.5rem; }
body.sc .ossn-message-box .control { border-radius: 0 !important; } /* old 10px bottom corners */
/* dialog footer buttons are standard 32px controls (OSSN prints them as btn-sm) */
/* Dialog buttons: OSSN outputs the primary action first; show Cancel on the left and the primary action on the right */
body.sc .ossn-message-box .control .controls { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 0.5rem; }
body.sc .ossn-message-box .control .btn { margin: 0 !important; height: var(--sc-control-h); }
/* the server-rendered dialog prints a plain "X": show the Lucide x (16px) instead */
body.sc .ossn-message-box .title .close-box:not(:has(i, svg)) { font-size: 0 !important; line-height: 0; }
body.sc .ossn-message-box .title .close-box:not(:has(i, svg))::before {
	content: ""; display: inline-block; width: var(--sc-icon); height: var(--sc-icon); background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Gap between the privacy option cards (the generic .radio-block rule zeroes their margins with !important) */
/* Add Group: "Group Name" label above its field (it sat beside it), field full width */
body.sc .ossn-message-box div:has(> input[name="groupname"]) { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
body.sc .ossn-message-box div:has(> input[name="groupname"]) > label { display: block; margin: 0 !important; float: none !important; width: auto !important; }
body.sc .ossn-message-box input[name="groupname"] { display: block; width: 100% !important; max-width: none !important; margin: 0 !important; float: none !important; }
body.sc .ossn-message-box .group-add-privacy .ossn-privacy { display: flex; flex-direction: column; gap: 0.5rem; }
body.sc .ossn-message-box .group-add-privacy .ossn-privacy > div:first-child label { margin-bottom: 0 !important; }
body.sc .ossn-message-box .group-add-privacy .radio-block {
	display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.625rem 0.75rem;
	border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8125rem; color: var(--muted-foreground);
}
body.sc .ossn-message-box .group-add-privacy .radio-block:has(input:checked) { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 6%, transparent); color: var(--foreground); }
body.sc .ossn-message-box .group-add-privacy .radio-block input { margin-top: 0.15rem; }

/* ------------------------------------------------------------------ system messages (Sonner-like) */
body.sc .ossn-system-messages { z-index: 1100; }
body.sc .ossn-system-messages .alert, body.sc .alert {
	background: var(--popover) !important; color: var(--popover-foreground) !important;
	border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
	box-shadow: var(--sc-shadow-lg) !important; font-size: 0.875rem; padding: 0.875rem 1rem !important;
}
body.sc .alert-success { border-left: 3px solid oklch(0.627 0.194 149.214) !important; }
body.sc .alert-danger { border-left: 3px solid var(--destructive) !important; }
body.sc .alert-warning { border-left: 3px solid oklch(0.769 0.188 70.08) !important; }
body.sc .alert-info { border-left: 3px solid var(--primary) !important; }

/* ------------------------------------------------------------------ badges / pagination / tabs */
body.sc .badge { border-radius: var(--sc-tag-radius); font-weight: 500; font-size: 0.75rem; background: var(--primary); color: var(--primary-foreground); }
body.sc .pagination { gap: 0.25rem; }
body.sc .page-link {
	border: 1px solid transparent !important; border-radius: var(--radius) !important;
	color: var(--foreground) !important; background: transparent !important; min-width: var(--sc-control-h); height: var(--sc-control-h);
	display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem;
}
body.sc .page-link:hover { background: var(--accent) !important; }
body.sc .page-item.active .page-link { border-color: var(--input) !important; background: var(--background) !important; box-shadow: var(--sc-shadow-xs); font-weight: 500; }

/* ------------------------------------------------------------------ loading */
body.sc .ossn-page-loading-annimation { background: var(--background) !important; }
body.sc .ossn-loading {
	border: 2px solid var(--border) !important; border-top-color: var(--primary) !important;
	border-radius: 999px !important; background: none !important; width: 1.5rem; height: 1.5rem;
	animation: sc-spin 0.7s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* scrollbars: follow the theme in light and dark (base CSS paints every scrollbar light grey, bright in dark mode) */
:root ::-webkit-scrollbar-track, :root::-webkit-scrollbar-track { background-color: transparent; border-left: 0; }
:root ::-webkit-scrollbar-thumb, :root::-webkit-scrollbar-thumb { background-color: color-mix(in oklch, var(--muted-foreground) 35%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
:root ::-webkit-scrollbar-thumb:hover, :root::-webkit-scrollbar-thumb:hover { background-color: color-mix(in oklch, var(--muted-foreground) 60%, transparent); }
:root ::-webkit-scrollbar-corner, :root::-webkit-scrollbar-corner { background: transparent; }
body.sc .sc-sidebar-content::-webkit-scrollbar { width: 6px; }
body.sc .sc-sidebar-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* ------------------------------------------------------------------ fixes */
html { background: var(--background); }
body.sc .sc-menu-item::before, body.sc .sc-menu-item::after, body.sc .sc-header-actions > li::before { content: none !important; display: none !important; }

/* ================================================================== components */

/* -------- wall composer + posts */
body.sc .ossn-wall-container { overflow: visible; margin: 0 0 1rem !important; }
/* card header: one bottom divider, no leftover GoBlue border or half-rounded corner */
body.sc .ossn-wall-container .wall-tabs {
	background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--border) !important;
	padding: 0.75rem var(--sc-card-pad) !important; border-radius: var(--sc-container-radius) var(--sc-container-radius) 0 0 !important;
	display: flex; align-items: center; margin: 0 !important;
}
body.sc .ossn-wall-container .wall-tabs .item {
	color: var(--foreground) !important; font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; background: transparent !important;
	padding: 0 !important; border: 0 !important; border-radius: 0 !important; display: inline-flex !important; align-items: center; gap: 0.5rem; list-style: none;
}
body.sc .ossn-wall-container .wall-tabs .item i { color: var(--primary); margin: 0 !important; }
body.sc .ossn-wall-container .wall-tabs .item i svg { width: 1rem; height: 1rem; }
body.sc .ossn-wall-container .wall-tabs .item:hover { background: transparent !important; }
/* body: text area on top, then one toolbar row (attachments left, privacy + Post right) */
body.sc .ossn-wall-container-data {
	background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: var(--sc-card-pad) var(--sc-card-pad) 0 !important;
	display: flex; flex-wrap: wrap; align-items: center; position: relative;
}
body.sc .ossn-wall-container-data > .ossn-wall-userimage-form { position: absolute !important; top: var(--sc-card-pad) !important; left: var(--sc-card-pad) !important; margin: 0 !important; }
body.sc .ossn-wall-container-data > .ossn-wall-userimage-form img { width: 2rem !important; height: 2rem !important; }
/* a post with a chosen background keeps OSSN's own canvas size and centring (OssnPostBackground), only 6px corners */
body.sc .ossn-wall-container-data > .ossn-wall-textarea.postbg-container { flex: 1 1 100%; border-radius: var(--sc-container-radius) !important; }
body.sc .ossn-wall-container-data > .ossn-wall-textarea:not(.postbg-container) { flex: 1 1 100%; min-height: 3.5rem; font-size: 0.875rem !important; line-height: 1.5; padding: 0.375rem 0 0 2.75rem !important; }
body.sc .ossn-wall-container-data > #ossn-wall-postbg, body.sc .ossn-wall-container-data > #ossn-wall-friend,
body.sc .ossn-wall-container-data > #ossn-wall-location, body.sc .ossn-wall-container-data > #ossn-wall-photo { flex: 1 1 100%; }
body.sc .ossn-wall-container-data textarea, body.sc .ossn-wall-container-data .ossn-editor {
	border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0.25rem 0 !important; font-size: 0.875rem !important; resize: none;
}
/* toolbar = kit CardFooter: full card width, muted band, top border, 12px/16px padding */
body.sc .ossn-wall-container-data > .controls,
body.sc .ossn-wall-container-data > .ossn-wall-privacy,
body.sc .ossn-wall-container-data > .ossn-wall-post-button-container {
	margin: var(--sc-card-pad) 0 0 !important; padding: 0.75rem 0 !important; border: 0 !important; border-top: 1px solid var(--border) !important;
	border-radius: 0 !important; background: color-mix(in oklch, var(--muted) 50%, transparent) !important; box-shadow: none !important; height: auto !important;
	position: static !important; float: none !important; order: 10; display: flex !important; align-items: center;
}
body.sc .ossn-wall-container-data > .controls {
	flex: 1 1 auto; gap: 0.25rem; margin-left: calc(var(--sc-card-pad) * -1) !important; padding-left: calc(var(--sc-card-pad) - 0.25rem) !important;
	border-bottom-left-radius: calc(var(--sc-container-radius) - 1px) !important;
}
body.sc .ossn-wall-container-data > .ossn-wall-privacy { padding-right: 0.5rem !important; order: 11; }
body.sc .ossn-wall-container-data > .ossn-wall-post-button-container {
	order: 12; margin-right: calc(var(--sc-card-pad) * -1) !important; padding-right: var(--sc-card-pad) !important;
	border-bottom-right-radius: calc(var(--sc-container-radius) - 1px) !important;
}
body.sc .ossn-wall-container-data > .ossn-wall-privacy > span {
	display: inline-flex; align-items: center; gap: 0.375rem; height: var(--sc-control-h); padding: 0 var(--sc-control-px);
	border: 1px solid var(--input); border-radius: var(--sc-control-radius); background: var(--background);
	font-size: 0.875rem; font-weight: 500; color: var(--foreground); cursor: pointer;
}
body.sc .ossn-wall-container-data > .ossn-wall-privacy > span:hover { background: var(--accent); }
body.sc .ossn-wall-container-data > .ossn-wall-privacy i { margin: 0 !important; }
body.sc .ossn-wall-container-data > .ossn-wall-post-button-container .ossn-wall-post { margin: 0 !important; height: var(--sc-control-h); font-size: 0.875rem !important; }
body.sc .ossn-wall-container .controls { display: flex; align-items: center; gap: 0.25rem; }
body.sc .ossn-wall-container .controls li {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: var(--sc-control-h); height: var(--sc-control-h); padding: 0 !important; margin: 0 !important; border-radius: var(--sc-control-radius) !important;
	background: transparent !important; color: var(--muted-foreground) !important; border: 0 !important; float: none !important;
}
body.sc .ossn-wall-container .controls li:hover { background: var(--accent) !important; color: var(--accent-foreground) !important; }
body.sc .ossn-wall-container .controls li i { font-size: 1rem; }
body.sc .ossn-wall-privacy-dummy {
	background: var(--background) !important; border: 1px solid var(--input) !important; color: var(--foreground) !important;
	border-radius: var(--sc-control-radius) !important; height: var(--sc-control-h); padding: 0 var(--sc-control-px) !important; box-shadow: var(--sc-shadow-xs);
	display: inline-flex !important; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 500;
}
body.sc .ossn-wall-container input[type="text"], body.sc .ossn-wall-container input[type="file"] { background: transparent !important; }

body.sc .ossn-wall-item { padding: var(--sc-card-pad) !important; margin-bottom: 1rem !important; }
/* one left edge inside the post card: header, text, actions and comments all line up */
body.sc .ossn-wall-item .meta, body.sc .ossn-wall-item .post-contents { padding-left: 0 !important; padding-right: 0 !important; }
body.sc .ossn-wall-item .post-contents { margin-top: 0.75rem !important; }
body.sc .ossn-wall-item .post-contents p { margin: 0; }
/* the comment "Post" button is for phones only; on wider screens Enter sends the comment */
@media (min-width: 768px) { body.sc .comment-container .comment-post-btn { display: none !important; } }
/* members with nothing in the right column get one centred feed column */
body.sc .ossn-layout-newsfeed > .row:not(:has(> .newsfeed-col-sidebar *)) > .newsfeed-col-sidebar { display: none !important; }
body.sc .ossn-layout-newsfeed > .row:not(:has(> .newsfeed-col-sidebar *)) > .newsfeed-col-wall { flex: 0 0 100% !important; width: 100% !important; max-width: 42rem !important; margin-left: auto !important; margin-right: auto !important; }
body.sc .ossn-wall-item .meta .user, body.sc .ossn-wall-item .meta a.owner-link { font-weight: 600; color: var(--foreground) !important; font-size: 0.875rem; }
body.sc .ossn-wall-item .meta .post-meta, body.sc .ossn-wall-item .time-created, body.sc .time-created { color: var(--muted-foreground) !important; font-size: 0.75rem; }
body.sc .ossn-wall-item .user-img img, body.sc .ossn-wall-item .meta img, body.sc .comments-item img.comment-user-img {
	border-radius: 999px !important;
}
/* post header avatar: 40px (composer and comment avatars stay 32px) */
body.sc .ossn-wall-item .meta > img.user-img { width: 2.5rem !important; height: 2.5rem !important; }
body.sc .ossn-wall-item .post-contents, body.sc .ossn-wall-item .post-contents p { color: var(--foreground); font-size: 0.875rem; line-height: 1.6; }
body.sc .ossn-wall-item .post-contents img, body.sc .ossn-wall-image-container img { border-radius: var(--radius) !important; border: 1px solid var(--border) !important; }

/* like / comment / share row */
body.sc .menu-likes-comments-share {
	background: transparent !important; border-top: 1px solid var(--border) !important; border-bottom: 0 !important;
	margin: 0.75rem calc(var(--sc-card-pad) * -1) 0 !important; padding: 0.25rem 0.75rem !important; display: flex; gap: 0.25rem;
}
body.sc .menu-likes-comments-share > li { flex: 1; list-style: none; }
body.sc .menu-likes-comments-share > li a {
	display: flex !important; align-items: center; justify-content: center; gap: 0.5rem; height: var(--sc-control-h);
	border-radius: var(--radius); color: var(--muted-foreground) !important; font-weight: 500; font-size: 0.875rem;
}
body.sc .menu-likes-comments-share > li a:hover { background: var(--accent) !important; color: var(--accent-foreground) !important; }
body.sc .ossn-like-reactions-panel { background: var(--popover) !important; border: 1px solid var(--border) !important; box-shadow: var(--sc-shadow-lg) !important; border-radius: var(--radius) !important; }

/* comments */
body.sc .comments-list { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0.75rem 0 0 !important; gap: 0.75rem !important; }
/* empty placeholders (no older comments yet, nobody typing) take no space */
body.sc .comments-list > [class*="ossn-comments-list-"]:empty { display: none !important; }
body.sc .ossn-wall-item .comments-list { padding-bottom: 0 !important; }
body.sc .comments-list > .comments-realtime-status { margin-top: -0.75rem !important; min-height: 0; }
body.sc .comments-list .comments-item .comment-contents {
	/* owner: lighter grey than muted, rounder corners (12px) than other containers */ background: color-mix(in oklch, var(--muted) 55%, var(--card)) !important; color: var(--foreground); border: 0 !important;
	border-radius: 0.75rem !important; padding: 0.5rem 0.75rem !important;
}
/* comment input: kit bordered Input (1px input border, no fill, 6px corners), same in dark mode */
body.sc .comment-box, body.sc .comment-container span[readonly='readonly'], body.sc .comment-container input[readonly='readonly'],
:root.dark body.sc .comment-box, :root.dark body.sc .comment-container span[readonly='readonly'], :root.dark body.sc .comment-container input[readonly='readonly'] {
	background: transparent !important; border: 1px solid var(--input) !important; border-radius: 0.75rem !important; /* owner: rounder, matches the comment bubbles */
	color: var(--foreground) !important; box-shadow: none !important; padding-left: 0.875rem !important;
}
/* focus: owner asked for no green border or ring on the comment box; it keeps its normal neutral border */
body.sc .comment-box:focus-within, :root.dark body.sc .comment-box:focus-within, body.sc .comment-box:focus, :root.dark body.sc .comment-box:focus { border-color: var(--input) !important; box-shadow: none !important; outline: none !important; background: transparent !important; }
body.sc .ossn-comments-view-all { background: transparent !important; color: var(--muted-foreground) !important; border: 0 !important; font-weight: 500; font-size: 0.8125rem; }
body.sc .ossn-comments-view-all:hover { color: var(--foreground) !important; text-decoration: underline; }

/* -------- newsfeed right column / ads */
body.sc .newsfeed-right .ossn-widget { margin-bottom: 1rem; }
body.sc .ossn-ad-item { background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; }
body.sc .ossn-ad-item:hover { background: var(--accent) !important; }
body.sc .ossn-ad-item .ad-sponsored-tag { background: var(--secondary) !important; color: var(--secondary-foreground) !important; border-radius: var(--sc-tag-radius) !important; }
body.sc .ossn-sidebar-admin-cta {
	background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: var(--sc-container-radius) !important;
	box-shadow: var(--sc-shadow-xs) !important; color: var(--card-foreground) !important;
}
body.sc .ossn-sidebar-admin-cta * { color: inherit; }
body.sc .ossn-sidebar-admin-cta p, body.sc .ossn-sidebar-admin-cta .text-muted { color: var(--muted-foreground) !important; }
body.sc .ossn-sidebar-admin-cta i { color: var(--primary) !important; }
body.sc .ossn-sidebar-admin-cta .btn, body.sc .ossn-sidebar-admin-cta a.btn {
	background: var(--primary) !important; color: var(--primary-foreground) !important; border-color: var(--primary) !important; border-radius: var(--radius) !important;
}

/* -------- chat dock + online friends column */
body.sc .ossn-chat-windows-long, body.sc .ossn-chat-windows-long .inner {
	background: var(--sidebar) !important; border-left: 1px solid var(--sidebar-border) !important; box-shadow: none !important; color: var(--muted-foreground);
}
/* strip layout: "Online" heading + count on top, friends' photos, empty state in the middle,
   chat sound toggle at the bottom (heading and labels added by scChatRail() in js/shadcn.php) */
body.sc .ossn-chat-windows-long .inner {
	display: flex !important; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0 0 0.75rem !important; overflow-y: auto;
}
body.sc .sc-chat-rail-head {
	flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
	padding: 0.75rem 0.25rem 0.625rem; border-bottom: 1px solid var(--sidebar-border);
}
body.sc .sc-chat-rail-title { font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--sidebar-foreground); }
body.sc .sc-chat-rail-count {
	min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--sc-tag-radius); background: var(--muted); color: var(--muted-foreground);
	font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
body.sc .sc-chat-rail-head.has-friends .sc-chat-rail-count { background: var(--primary); color: var(--primary-foreground); }
body.sc .ossn-chat-windows-long .friends-list-item {
	flex: 0 0 auto; order: 1; display: flex; justify-content: center; width: 3.5rem; padding: 0.25rem 0 !important; margin: 0 !important;
	background: transparent !important; border: 0 !important; border-radius: var(--sc-control-radius); cursor: pointer;
}
body.sc .ossn-chat-windows-long .friends-list-item:hover { background: var(--sidebar-accent) !important; }
body.sc .ossn-chat-windows-long .friends-list-item .icon { position: relative; }
body.sc .ossn-chat-windows-long .friends-list-item img {
	width: 2.5rem !important; height: 2.5rem !important; border-radius: 999px !important; object-fit: cover;
	padding: 0 !important; border: 2px solid var(--sidebar) !important; box-shadow: 0 0 0 2px var(--primary) !important; background: var(--muted) !important;
}
body.sc .ossn-chat-windows-long .ossn-chat-none {
	order: 1; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0 0.5rem; text-align: center; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground);
}
body.sc .sc-chat-rail-empty-icon {
	width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--muted); color: var(--muted-foreground);
}
body.sc .ossn-chat-windows-long .ossn-chat-pling {
	order: 2; margin-top: auto !important; flex: 0 0 auto; display: inline-flex !important; align-items: center; justify-content: center;
	width: var(--sc-control-h); height: var(--sc-control-h); padding: 0 !important; line-height: 1 !important;
	border-radius: var(--sc-control-radius); color: var(--muted-foreground); cursor: pointer;
}
body.sc .ossn-chat-windows-long .ossn-chat-pling:hover { background: var(--sidebar-accent); color: var(--sidebar-foreground); }
body.sc .ossn-chat-windows-long .ossn-chat-pling.is-on { color: var(--primary); }
body.sc .ossn-chat-windows-long .ossn-chat-pling:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
body.sc .ossn-chat-windows-long .ossn-chat-pling i, body.sc .ossn-chat-windows-long .ossn-chat-pling svg { width: 1rem; height: 1rem; margin: 0 !important; }
body.sc .ossn-chat-windows-long script { display: none; }
body.sc .ossn-chat-base .ossn-chat-bar .inner, body.sc .friend-tab-item .friend-tab, body.sc .ossn-chat-tab-titles {
	background: var(--card) !important; color: var(--card-foreground) !important; border: 1px solid var(--border) !important;
	border-radius: var(--radius) var(--radius) 0 0 !important; box-shadow: var(--sc-shadow-md) !important;
}
body.sc .ossn-chat-base .ossn-chat-bar .inner:hover, body.sc .ossn-chat-tab-active { background: var(--accent) !important; }
body.sc .ossn-chat-tab-titles { background: var(--primary) !important; color: var(--primary-foreground) !important; border-color: var(--primary) !important; }
/* chat window title bar is a neutral card header (owner decision messages-4); the dock friends-list title keeps the rule above */
body.sc .friend-tab-item .ossn-chat-tab-titles { background: var(--card) !important; color: var(--card-foreground) !important; border-color: var(--border) !important; }
body.sc .ossn-chat-tab-titles * { color: inherit !important; }
body.sc .friend-tab-item .tab-container, body.sc .friend-tab-item .tab-container .data, body.sc .ossn-chat-base .ossn-chat-bar .friends-list {
	background: var(--card) !important; border-color: var(--border) !important; color: var(--card-foreground);
}
body.sc .friend-tab-item .data .message-sender .text { background: var(--primary) !important; color: var(--primary-foreground) !important; border-radius: var(--radius) !important; }
body.sc .friend-tab-item .data .message-reciever .text { background: var(--muted) !important; color: var(--foreground) !important; border-radius: var(--radius) !important; }
body.sc .ossn-chat-triangle { display: none !important; }
body.sc .friend-tab-item .friend-tab input[type='text'] { border-radius: var(--sc-control-radius) !important; }
body.sc .ossn-inchat-status-online, body.sc .ossn-recent-message-status-online .ossn-inmessage-status-circle,
body.sc .ossn-inmessage-status-online .ossn-inmessage-status-circle { background: oklch(0.723 0.219 149.579) !important; }

/* bottom chat dock: "Chat (n)" bar and minimised chat tabs as small card tabs (kit type + spacing) */
body.sc .ossn-chat-base .ossn-chat-bar .inner.friends-tab,
body.sc .ossn-chat-base .friend-tab-item .inner.friend-tab {
	display: flex !important; align-items: center; gap: 0.5rem; height: 2.5rem !important; padding: 0 0.75rem !important;
	border: 1px solid var(--sc-card-border) !important; border-bottom: 0 !important; border-radius: var(--radius) var(--radius) 0 0 !important;
	background: var(--card) !important; color: var(--card-foreground) !important;
	box-shadow: 0 -2px 6px -2px rgb(0 0 0 / 0.08) !important; cursor: pointer;
	font-family: var(--sc-font) !important; font-size: 0.875rem !important; font-weight: 500 !important; line-height: 1.25rem;
}
body.sc .ossn-chat-base .ossn-chat-bar .inner.friends-tab:hover,
body.sc .ossn-chat-base .friend-tab-item .inner.friend-tab:hover { background: var(--accent) !important; }
body.sc .ossn-chat-base .ossn-chat-icon, body.sc .ossn-chat-base .ossn-chat-inner-text {
	display: flex !important; align-items: center; gap: 0.5rem; padding: 0 !important; margin: 0 !important; background: none !important;
	font: inherit !important; color: inherit !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.sc .ossn-chat-base .ossn-chat-pling { display: inline-flex !important; align-items: center; padding: 0 !important; color: var(--muted-foreground); line-height: 1 !important; }
body.sc .ossn-chat-base .ossn-chat-pling .sc-icon { width: var(--sc-icon) !important; height: var(--sc-icon) !important; }
/* minimised chat: the status wrapper spans the whole bar; show status as a small dot before the name instead */
body.sc .ossn-chat-base .friend-tab-item [id^="ossnchat-ustatus-"] {
	display: flex !important; align-items: center; gap: 0.5rem; min-width: 0; flex: 1 1 auto;
	background: none !important; background-image: none !important; padding: 0 !important; margin: 0 !important; height: auto !important;
}
body.sc .ossn-chat-base .friend-tab-item [id^="ossnchat-ustatus-"]::before {
	content: ""; flex: 0 0 auto; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--muted-foreground);
}
body.sc .ossn-chat-base .friend-tab-item .ossn-chat-icon-online::before { background: oklch(0.723 0.219 149.579) !important; }
/* the dock is 33px tall in OSSN but the tabs above are 2.5rem: match it so tabs and open windows are not cut off at the bottom (moved from pages/messages.php) */
body.sc .ossn-chat-base { height: 2.5rem !important; }
body.sc .friend-tab-item .tab-container { margin-top: calc(2.5rem - var(--ossn-chat-panel-height, 400px)) !important; }
/* chat / message icons: OSSN colours them GoBlue blue (#0b769c) through this variable; use the muted text colour */
body.sc { --ossn-inchat-icon-color: var(--muted-foreground); }

/* -------- notifications / friend requests / messages popovers */
body.sc .ossn-notifications-box {
	background: var(--popover) !important; color: var(--popover-foreground);
	border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: var(--sc-shadow-lg) !important;
	overflow: hidden;
}
body.sc .ossn-notifications-box .selected { display: none !important; }
body.sc .ossn-notifications-box .type-name {
	background: transparent !important; color: var(--foreground) !important; border-bottom: 1px solid var(--border) !important;
	font-weight: 600; font-size: 0.875rem; padding: 0.75rem 1rem !important; text-transform: none !important;
	height: auto !important; /* OSSN fixes it at 25px: the title overflowed */
}
body.sc .ossn-notifications-box .notificaton-item, body.sc .ossn-notification-messages .user-item, body.sc .notification-friends li {
	background: transparent !important; border-color: var(--border) !important; color: var(--foreground) !important;
}
body.sc .ossn-notifications-box .notificaton-item:hover, body.sc .ossn-notifications-box li:hover, body.sc .ossn-notification-messages .user-item:hover {
	background: var(--accent) !important;
}
body.sc .ossn-notification-unviewed, body.sc .ossn-notification-messages .message-new { background: color-mix(in oklch, var(--muted) 60%, transparent) !important; }
/* only inside the popover: on the /notifications/all page this line was a stray divider above the list */
body.sc .ossn-notifications-box .bottom-all, body.sc .ossn-notifications-box .ossn-notifications-all {
	background: transparent !important; border-top: 1px solid var(--border) !important; color: var(--primary) !important; font-weight: 500;
}
/* OSSN fixes the footer at 40px, which made the list scroll by 1px */
body.sc .ossn-notifications-box .bottom-all { height: auto !important; }
body.sc .ossn-notifications-box img { border-radius: 999px !important; }

/* messages page */
body.sc .ossn-messages { background: transparent !important; border: 0 !important; }
body.sc .ossn-messages .messages-recent .messages-from .user-item { background: transparent !important; border-color: var(--border) !important; border-radius: var(--radius); }
body.sc .ossn-messages .messages-recent .messages-from .user-item:hover { background: var(--accent) !important; }
body.sc .ossn-messages .messages-recent .messages-from .message-new { background: color-mix(in oklch, var(--muted) 60%, transparent) !important; }
body.sc .message-box-sent { background: var(--primary) !important; color: var(--primary-foreground) !important; border-radius: var(--radius) !important; border: 0 !important; }
body.sc .message-box-sent * { color: inherit !important; }
body.sc .message-box-recieved { background: var(--muted) !important; color: var(--foreground) !important; border-radius: var(--radius) !important; border: 0 !important; }
body.sc .message-form-form { background: transparent !important; border-top: 1px solid var(--border) !important; }
body.sc #message-with-user-widget { background: var(--card) !important; border-color: var(--border) !important; }

/* -------- profile + group headers */
/* one 1px card border everywhere, same colour as the post cards (kit card border) */
body.sc .ossn-profile .top-container, body.sc .ossn-group-profile .profile-header {
	background: var(--card) !important; border: 1px solid var(--sc-card-border) !important; border-radius: var(--sc-container-radius) !important; overflow: hidden;
}
body.sc .ossn-group-profile .profile-header .header-bottom, body.sc .profile-menu-hr-container, body.sc .ossn-profile-usermetadata {
	background: var(--card) !important; border-color: var(--sc-card-border) !important; color: var(--card-foreground);
}
/* the name row is the last thing inside the cover card: its own bottom line doubled the card edge */
body.sc .ossn-profile .top-container .ossn-profile-usermetadata { border-bottom: 0 !important; }
/* tab bar card: 1px on all sides (base CSS made the bottom 2px plus an inner 1px line) */
body.sc .profile-menu-hr-container { border: 1px solid var(--sc-card-border) !important; border-radius: var(--sc-container-radius) !important; box-shadow: none !important; overflow: visible; /* hidden clipped the phone tab dropdown */ }
body.sc .profile-menu-hr-container .profile-hr-menu { border-bottom: 0 !important; }
body.sc .post-contents.ossn-photos-wall { border-color: var(--border) !important; border-radius: var(--sc-control-radius) !important; overflow: hidden; }
body.sc .ossn-profile .profile-photo img, body.sc .ossn-profile .profile-photo {
	border: 4px solid var(--card) !important; border-radius: 999px !important; box-shadow: var(--sc-shadow-sm) !important; background: var(--card) !important;
}
/* #group-header-menu > ul: not the phone dropdown list inside it */
body.sc .profile-hr-menu, body.sc #group-header-menu > ul, body.sc .group-header-menu .first-item { background: transparent !important; border-color: var(--border) !important; }
body.sc .profile-hr-menu > ul > li > a, body.sc #group-header-menu > ul > li > a, body.sc #group-header-menu > li > a {
	color: var(--muted-foreground) !important; background: transparent !important; font-weight: 500; font-size: 0.875rem;
	border-radius: var(--radius); border: 0 !important;
}
body.sc .profile-hr-menu > ul > li > a:hover, body.sc #group-header-menu > ul > li > a:hover, body.sc #group-header-menu > li > a:hover {
	color: var(--foreground) !important; background: var(--accent) !important;
}
body.sc .btn-standalone-grey, body.sc .group-header-more {
	background: var(--background) !important; color: var(--foreground) !important; border: 1px solid var(--input) !important;
	border-radius: var(--radius) !important; box-shadow: var(--sc-shadow-xs);
}
body.sc .profile-edit-tabs a { color: var(--muted-foreground) !important; border-radius: var(--radius); background: transparent !important; }
/* as strong as the rule above, so the open tab gets its background */
body.sc .profile-edit-tabs a.profile-edit-tab-item-active, body.sc .profile-edit-tabs a:hover { background: var(--accent) !important; color: var(--foreground) !important; }
body.sc .ossn-profile-edit-layout, body.sc .profile-edit-layout-right { background: var(--card) !important; border-color: var(--border) !important; }
body.sc .profile-edit-layout-title { background: transparent !important; color: var(--foreground) !important; border-color: var(--border) !important; font-weight: 600; }

/* user lists (friends, members, search) */
body.sc .user-item-card .user-item-inner, body.sc .ossn-users-list-item, body.sc .ossn-list-users .ossn-users-list-item {
	background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: none !important;
}
body.sc .user-item-card .user-avatar-container img { border-radius: 999px !important; }
body.sc .ossn-action-btn {
	display: inline-flex; align-items: center; gap: 0.375rem; height: var(--sc-control-h); padding: 0 var(--sc-control-px); font-size: 0.875rem; /* 14px like other buttons */ font-weight: 500;
	border-radius: var(--sc-control-radius); border: 1px solid var(--input); background: var(--background); color: var(--foreground) !important; box-shadow: var(--sc-shadow-xs);
}
body.sc .ossn-action-btn:hover { background: var(--accent); }
/* 16px icon in controls */
body.sc .ossn-action-btn svg, body.sc .ossn-action-btn .sc-icon { width: var(--sc-icon) !important; height: var(--sc-icon) !important; }
body.sc .ossn-action-btn.btn-primary-outline { border-color: color-mix(in oklch, var(--primary) 40%, transparent); color: var(--primary) !important; }
/* dark mode: the dark primary green on near-black was hard to read (about 3:1); use the lighter sidebar green token */
:root.dark body.sc .ossn-action-btn.btn-primary-outline { color: var(--sidebar-primary) !important; border-color: color-mix(in oklch, var(--sidebar-primary) 40%, transparent); }
body.sc .ossn-action-btn.btn-danger-outline { color: var(--destructive) !important; }
body.sc .group-search-items .row { background: var(--card) !important; border-color: var(--border) !important; }

/* group admin picker + role badges (OssnGroups) */
body.sc .ossn-group-admin-chip { background: var(--secondary) !important; border-color: var(--border) !important; color: var(--secondary-foreground); }
body.sc .ossn-group-admin-results { background: var(--popover) !important; border-color: var(--border) !important; box-shadow: var(--sc-shadow-md) !important; }
body.sc .ossn-group-admin-results li:hover { background: var(--accent) !important; }
body.sc .ossn-group-role-badge { background: var(--secondary) !important; color: var(--secondary-foreground) !important; border-radius: var(--sc-tag-radius) !important; }
body.sc .ossn-group-role-badge.ossn-group-role-owner { background: var(--primary) !important; color: var(--primary-foreground) !important; }

/* photos */
body.sc .ossn-photos li, body.sc .ossn-profile-module-albums a { border-radius: var(--radius) !important; overflow: hidden; background: var(--muted) !important; border-color: var(--border) !important; }

/* footer */
body.sc .ossn-footer, body.sc .menu-footer, body.sc .footer-contents { color: var(--muted-foreground) !important; font-size: 0.8125rem; background: transparent !important; border-color: var(--border) !important; }
body.sc .menu-footer a, body.sc .ossn-footer a { color: var(--muted-foreground) !important; }
body.sc .menu-footer a:hover, body.sc .ossn-footer a:hover { color: var(--foreground) !important; }
/* no full-page loading veil; shadcn apps render straight away */
body.sc .ossn-page-loading-annimation { display: none !important; }

/* flatten legacy gradients into shadcn buttons */
body.sc .btn-admin-cta {
	display: inline-flex !important; align-items: center; gap: 0.5rem; height: var(--sc-control-h); padding: 0 1rem !important;
	background: var(--primary) !important; background-image: none !important; color: var(--primary-foreground) !important;
	border-radius: var(--sc-control-radius) !important; box-shadow: var(--sc-shadow-xs) !important; font-weight: 500; font-size: 0.875rem;
}
body.sc .btn-admin-cta:hover { background: color-mix(in oklch, var(--primary) 90%, black) !important; transform: none !important; }
body.sc .btn-admin-cta i { color: inherit !important; }
body.sc .button-grey, body.sc .btn-action, body.sc .btn-standalone-grey { background-image: none !important; }
body.sc .btn-action {
	display: inline-flex; align-items: center; gap: 0.375rem; height: var(--sc-control-h); padding: 0 var(--sc-control-px) !important;
	background: var(--background) !important; color: var(--foreground) !important; border: 1px solid var(--input) !important;
	border-radius: var(--sc-control-radius) !important; box-shadow: var(--sc-shadow-xs); text-shadow: none !important; font-weight: 500;
}
body.sc .btn-action:hover { background: var(--accent) !important; }
body.sc .ossn-login .login-icon-badge { background: var(--primary) !important; background-image: none !important; color: var(--primary-foreground) !important; }

/* OssnChat's online-friends column (now hidden: the chat button replaced it, so no room is reserved for it) */
@media (min-width: 1360px) {
	body.sc .ossn-chat-windows-long { width: 80px !important; z-index: 31; }
	/* OssnChat sets the height from the window size; take the top bar off so the sound toggle stays on screen */
	body.sc .ossn-chat-windows-long .inner { margin-top: var(--sc-header-height) !important; height: calc(100vh - var(--sc-header-height)) !important; border-top: 1px solid var(--sidebar-border) !important; border-left: 0 !important; }
}
body.sc .user-item-card { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
/* one search icon only (base CSS draws a Font Awesome glyph on the fieldset) */
body.sc .sc-sidebar form.ossn-search fieldset::before { content: none !important; display: none !important; }
/* notifications/messages/friend-request popovers drop below the header, right-aligned */
body.sc .sc-header-actions #notificationBox { position: static !important; }
body.sc .sc-header .ossn-notifications-box {
	position: absolute !important; top: calc(var(--sc-header-height) - 0.25rem) !important; right: 0.75rem !important; left: auto !important;
	width: min(24rem, calc(100vw - 1.5rem)) !important; z-index: 60;
}
body.sc .sc-header .topbar-menu-right { position: static !important; }
/* the popover is hidden until OSSN first opens it (OSSN then writes an inline style). pages/notifications.php
   makes the box display:flex, which showed an empty "Notifications" box on every page load. */
body.sc .sc-header .ossn-notifications-box:not([style]) { display: none !important; }
body.sc .sc-header .ossn-notifications-box .metadata { max-height: 26rem; overflow-y: auto; }

/* ================================================================== admin panel */
body.sc-admin { background: var(--muted) !important; }
:root.dark body.sc-admin { background: var(--background) !important; }
body.sc-admin .sc-admin-header {
	position: sticky; top: 0; z-index: 30; height: var(--sc-header-height); padding: 0 !important;
	background: var(--background) !important; border-bottom: 1px solid var(--border); box-shadow: none !important;
}
body.sc-admin .sc-admin-header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
body.sc-admin .sc-admin-header .sc-brand { padding: 0.25rem 0.5rem 0.25rem 0; }
body.sc-admin .sc-admin-header .sc-brand:hover { background: transparent; }
body.sc-admin .sc-admin-logo { max-height: 2rem; border-radius: var(--radius); }
body.sc-admin .sc-admin-header-actions { display: flex; align-items: center; gap: 0.25rem; }
.sc-btn-outline { background: var(--background) !important; color: var(--foreground) !important; border-color: var(--input) !important; height: var(--sc-control-h); padding: 0 var(--sc-control-px) !important; }
.sc-btn-outline:hover { background: var(--accent) !important; }
body.sc-admin .sc-admin-header .sc-btn-icon { height: 2rem; width: 2rem; }

/* admin navigation bar -> shadcn NavigationMenu */
body.sc-admin .topbar-menu { background: var(--background) !important; border-bottom: 1px solid var(--border); position: sticky; top: var(--sc-header-height); z-index: 29; }
body.sc-admin .topbar-menu .navbar, body.sc-admin .navbar-default { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0.375rem 0 !important; min-height: 0; }
body.sc-admin .topbar-menu .nav-link, body.sc-admin .navbar-default .navbar-nav > li > a {
	display: inline-flex !important; align-items: center; gap: 0.375rem; height: var(--sc-control-h); padding: 0 0.75rem !important;
	border-radius: var(--sc-control-radius); color: var(--foreground) !important; font-size: 0.875rem; font-weight: 500; background: transparent !important;
}
body.sc-admin .topbar-menu .nav-link:hover, body.sc-admin .topbar-menu .nav-link.show, body.sc-admin .navbar-default .navbar-nav > li > a:hover {
	background: var(--accent) !important; color: var(--accent-foreground) !important;
}
body.sc-admin .topbar-menu .nav-link i { color: var(--muted-foreground); }
body.sc-admin .navbar-toggler { border: 1px solid var(--input) !important; border-radius: var(--radius) !important; background: var(--background) !important; color: var(--foreground) !important; }
body.sc-admin .dropdown-submenu > a::after { border-left-color: var(--muted-foreground) !important; }

/* admin page chrome */
body.sc-admin > .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
body.sc-admin .page-title, body.sc-admin .ossn-admin-page-title {
	background: transparent !important; border: 0 !important; color: var(--foreground) !important; padding: 0 0 1rem !important;
	font-size: 1.5rem !important; font-weight: 600 !important; letter-spacing: -0.025em; text-transform: none !important; box-shadow: none !important;
}
body.sc-admin .ossn-admin-pg-content, body.sc-admin .card, body.sc-admin .admin-dashboard-box-small,
body.sc-admin .ossn-admin-dashboard .graph-card-main, body.sc-admin .ossn-admin-dashboard .pie-mini-card,
body.sc-admin .ossn-admin-dashboard .metric-card, body.sc-admin .ossn-admin-dashboard .cache-action-card,
body.sc-admin .ossn-com-row, body.sc-admin .ossn-admin-all-users {
	background: var(--card) !important; color: var(--card-foreground) !important;
	border: 1px solid var(--border) !important; border-radius: var(--sc-container-radius) !important; box-shadow: var(--sc-shadow-xs) !important;
}
body.sc-admin form.ossn-form { background: transparent !important; }
body.sc-admin .card-header, body.sc-admin .table-titles, body.sc-admin .ossn-users-list thead tr {
	background: transparent !important; color: var(--muted-foreground) !important; border-color: var(--border) !important; font-weight: 500;
}
body.sc-admin .ossn-admin-dashboard .admin-dashboard-title { color: var(--muted-foreground) !important; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.875rem; }
body.sc-admin .ossn-admin-dashboard .card-value { color: var(--foreground) !important; font-weight: 700; letter-spacing: -0.025em; }
body.sc-admin .ossn-admin-dashboard .icon-wrap {
	background: color-mix(in oklch, var(--primary) 10%, transparent) !important; color: var(--primary) !important;
	border-radius: var(--radius) !important; box-shadow: none !important;
}
body.sc-admin .ossn-admin-dashboard .icon-wrap i { color: inherit !important; }
body.sc-admin .ossn-admin-dashboard .bg-red.icon-wrap, body.sc-admin .ossn-admin-dashboard .icon-wrap.bg-red { background: color-mix(in oklch, var(--destructive) 12%, transparent) !important; color: var(--destructive) !important; }
body.sc-admin .ossn-admin-dashboard .btn-flush-dark {
	background: var(--primary) !important; color: var(--primary-foreground) !important; border: 0 !important;
	border-radius: var(--radius) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important;
}
body.sc-admin .ossn-admin-dashboard .btn-flush-dark:hover { background: color-mix(in oklch, var(--primary) 90%, black) !important; }

/* admin tables */
body.sc-admin table, body.sc-admin .table { --bs-table-bg: transparent; --bs-table-color: var(--foreground); --bs-table-border-color: var(--border); color: var(--foreground); }
body.sc-admin .ossn-users-list th, body.sc-admin .ossn-users-list td, body.sc-admin table td, body.sc-admin table th { border-color: var(--border) !important; background: transparent !important; color: inherit; }
body.sc-admin .ossn-users-list tbody tr:hover, body.sc-admin table tbody tr:hover { background: var(--muted) !important; }
body.sc-admin .ossn-admin-search-pro-line { background: var(--background) !important; border: 1px solid var(--input) !important; border-radius: var(--radius) !important; box-shadow: var(--sc-shadow-xs) !important; }
body.sc-admin .ossn-admin-search-pro-line:focus-within { border-color: var(--ring) !important; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent) !important; }
body.sc-admin .ossn-admin-search-pro-line input[type="text"] { border: 0 !important; box-shadow: none !important; }
body.sc-admin .btn-pro-black-add, body.sc-admin .ossn-admin-search-pro-line .btn-search-trigger { background: var(--primary) !important; color: var(--primary-foreground) !important; border-radius: var(--sc-tag-radius) !important; }

/* components / themes list */
body.sc-admin .ossn-com-row:hover { background: var(--card) !important; border-color: color-mix(in oklch, var(--primary) 35%, var(--border)) !important; }
body.sc-admin .ossn-com-row .com-ui-name { color: var(--foreground) !important; }
body.sc-admin .ossn-com-row .com-ui-version, body.sc-admin .ossn-com-row .com-description-text, body.sc-admin .ossn-com-row .meta-tile label { color: var(--muted-foreground) !important; }
body.sc-admin .ossn-com-row .com-row-details, body.sc-admin .ossn-com-row .meta-tile { background: var(--muted) !important; border-color: var(--border) !important; }
body.sc-admin .ossn-com-row .btn-success-modern { background: var(--primary) !important; color: var(--primary-foreground) !important; border-color: var(--primary) !important; }
body.sc-admin .ossn-com-row .btn-warning-modern { background: var(--secondary) !important; color: var(--secondary-foreground) !important; border-color: var(--border) !important; }
body.sc-admin .ossn-com-row .btn-danger-modern { background: transparent !important; color: var(--destructive) !important; border-color: color-mix(in oklch, var(--destructive) 40%, transparent) !important; }
body.sc-admin .ossn-com-row .dot-active { background: oklch(0.723 0.219 149.579) !important; }

body.sc-admin footer { color: var(--muted-foreground) !important; border-top: 1px solid var(--border) !important; background: transparent !important; font-size: 0.8125rem; padding: 1rem 0 !important; margin-top: 1.5rem; }
body.sc-admin footer a { color: var(--foreground) !important; font-weight: 500; }

/* ================================================================== login / sign-up (shadcn "login" block) */
body.sc .ossn-startup-wrapper { background: var(--muted) !important; min-height: calc(100vh - var(--sc-header-height)); border-radius: 0 !important; }
:root.dark body.sc .ossn-startup-wrapper { background: var(--background) !important; }
body.sc .sc-main:has(.ossn-startup-wrapper) { padding: 0 !important; }
body.sc .ossn-startup-wrapper .blob-container, body.sc .ossn-startup-wrapper .blob, body.sc .ossn-startup-wrapper .bg-blob,
body.sc .ossn-startup-wrapper .bg-blob-2, body.sc .ossn-startup-wrapper .header-line { display: none !important; }
body.sc .ossn-startup-wrapper .glass-signup-card {
	background: var(--card) !important; color: var(--card-foreground) !important;
	border: 1px solid var(--sc-card-border) !important; border-radius: var(--sc-container-radius) !important;
	box-shadow: var(--sc-shadow-sm) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
	padding: var(--sc-card-pad) !important; /* cards: 16px */
}
body.sc .ossn-startup-wrapper .glass-signup-card::before, body.sc .ossn-startup-wrapper .glass-signup-card::after { content: none !important; display: none !important; }
body.sc .ossn-startup-wrapper h1, body.sc .ossn-startup-wrapper h2, body.sc .ossn-startup-wrapper .text-dark {
	color: var(--card-foreground) !important; font-size: 1.5rem !important; font-weight: 600 !important; letter-spacing: -0.025em;
}
body.sc .ossn-startup-wrapper p, body.sc .ossn-startup-wrapper .text-muted { color: var(--muted-foreground) !important; }
body.sc .ossn-startup-wrapper .login-icon-badge {
	width: 3rem !important; height: 3rem !important; border-radius: var(--radius) !important; margin: 0 auto !important;
	display: flex !important; align-items: center; justify-content: center; box-shadow: none !important; font-size: 1.25rem;
	position: static !important; transform: none !important;
}
body.sc .ossn-startup-wrapper .forgot-link, body.sc .ossn-startup-wrapper .login-footer a {
	color: var(--muted-foreground) !important; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 4px;
	display: inline-flex; align-items: center; gap: 0.375rem;
}
body.sc .ossn-startup-wrapper .forgot-link:hover, body.sc .ossn-startup-wrapper .login-footer a:hover { color: var(--foreground) !important; }
body.sc .ossn-startup-wrapper .ossn-form input[type="submit"].btn { width: 100%; height: var(--sc-control-h) !important; }
body.sc .ossn-startup-wrapper footer { border-color: var(--border) !important; }
/* phones: the cards sit 22px inside the container (row 10px + column 12px) but the footer sat at 12px;
   give the footer the same side gutter so their edges line up */
@media (max-width: 575.98px) {
	body.sc .ossn-startup-wrapper > .container > footer { padding-left: 22px !important; padding-right: 22px !important; }
}
body.sc .ossn-startup-wrapper input[type="text"], body.sc .ossn-startup-wrapper input[type="password"],
body.sc .ossn-startup-wrapper input[type="email"] { background: var(--background) !important; }
body.sc .ossn-startup-wrapper .landing-page-icons-span, body.sc .ossn-startup-wrapper .feature-icon {
	background: color-mix(in oklch, var(--primary) 10%, transparent) !important; color: var(--primary) !important; border-radius: var(--radius) !important; box-shadow: none !important;
}
body.sc .sc-header .sc-brand-mark, body.sc .sc-header .sc-brand-mark * { color: var(--sidebar-primary-foreground) !important; }

/* shadcn RadioGroup look for OSSN radio blocks */
body.sc .radio-block-container { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.25rem 0 0.75rem; }
body.sc .radio-block { display: inline-flex !important; align-items: center; gap: 0.5rem; margin: 0 !important; font-size: 0.875rem; }
body.sc .radio-block span { font-weight: 500; color: var(--foreground); }
/* Every radio on the site and in the admin panel. The old base styles (default.php,
   administrator.php) push the checked mark 7px/5px off-centre and colour it blue; reset all of that. */
body.sc input[type="radio"] {
	-webkit-appearance: none !important; appearance: none !important; display: inline-grid !important; place-content: center;
	position: relative !important; top: 0 !important; vertical-align: middle !important;
	width: 1rem !important; height: 1rem !important; margin: 0 !important; padding: 0 !important; flex-shrink: 0;
	border: 1px solid var(--input) !important; border-radius: 999px !important; background: var(--background) !important;
	box-shadow: none !important; outline: none !important; cursor: pointer;
	transition: border-color 150ms, box-shadow 150ms;
}
:root.dark body.sc input[type="radio"] { background: color-mix(in oklch, var(--input) 30%, transparent) !important; }
body.sc input[type="radio"]:hover { border-color: color-mix(in oklch, var(--primary) 55%, var(--input)) !important; }
body.sc input[type="radio"]::before {
	content: "" !important; position: static !important; left: auto !important; top: auto !important; font: inherit !important;
	width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary);
	transform: scale(0) !important; transition: transform 120ms ease-out;
}
body.sc input[type="radio"]::after { content: none !important; }
body.sc input[type="radio"]:checked { border-color: var(--primary) !important; }
body.sc input[type="radio"]:checked::before { transform: scale(1) !important; }
body.sc input[type="radio"]:focus-visible { border-color: var(--ring) !important; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent) !important; }
body.sc input[type="radio"]:disabled { opacity: 0.5; cursor: not-allowed; }
body.sc .radio-block:has(input:checked) span { color: var(--foreground); font-weight: 500 !important; }
body.sc .ossn-startup-wrapper .signup-title span { text-transform: none !important; letter-spacing: 0 !important; color: var(--muted-foreground) !important; font-size: 0.875rem; font-weight: 400; }
body.sc .ossn-startup-wrapper .feature-tag {
	background: var(--background) !important; border: 1px solid var(--border) !important; color: var(--foreground) !important;
	border-radius: var(--sc-tag-radius) !important; box-shadow: none !important; font-weight: 500; backdrop-filter: none !important;
}
body.sc .ossn-startup-wrapper .feature-tag i { color: var(--primary) !important; }
/* Landing and sign-up card: calmer type scale */
body.sc .ossn-startup-wrapper h1 { font-size: 1.25rem !important; line-height: 1.4; }
body.sc .ossn-startup-wrapper .signup-title h2 { font-size: 1rem !important; line-height: 1.375rem; font-weight: 500 !important; letter-spacing: 0 !important; }
body.sc .ossn-startup-wrapper .feature-tag { font-size: 0.75rem !important; }
body.sc .radio-block span { font-size: 0.875rem !important; font-weight: 400 !important; margin: 0 !important; }
body.sc .ossn-startup-wrapper .terms-text { font-size: 0.8125rem !important; line-height: 1.5; color: var(--muted-foreground) !important; }
/* Year picker (graduation year / "set"): trigger looks like an input, opens a popover grid.
   See scInitYearSelects() in js/shadcn.php. */
body.sc .sc-yearselect-wrap { position: relative; width: 100%; }
/* the sign-up card clipped its contents (old glass effect); let the year panel overflow it */
body.sc .ossn-startup-wrapper .glass-signup-card { overflow: visible !important; }
body.sc .sc-yearselect-native {
	position: absolute !important; left: 0; bottom: 0; width: 100% !important; height: 1px !important; min-height: 0 !important;
	opacity: 0 !important; pointer-events: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
}
body.sc .sc-yearselect-trigger {
	display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%;
	height: var(--sc-control-h); padding: 0 var(--sc-control-px); margin: 0;
	font: inherit; font-size: 0.875rem; line-height: 1.25rem; text-align: left; color: var(--foreground);
	background: var(--background); border: 1px solid var(--input); border-radius: var(--sc-control-radius);
	cursor: pointer; transition: border-color 150ms, box-shadow 150ms;
}
:root.dark body.sc .sc-yearselect-trigger { background: color-mix(in oklch, var(--input) 30%, transparent); }
body.sc .sc-yearselect-trigger.is-placeholder { color: var(--muted-foreground); }
body.sc .sc-yearselect-trigger:focus-visible, body.sc .sc-yearselect-trigger[aria-expanded="true"] {
	outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}
body.sc .sc-yearselect-trigger.is-invalid { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in oklch, var(--destructive) 20%, transparent); }
body.sc .sc-yearselect-icon { flex-shrink: 0; color: var(--muted-foreground); }
/* popover = kit Date Picker: compact, 8px below the field, caption + grid, popover shadow */
body.sc .sc-yearselect-panel {
	position: absolute; z-index: 60; top: calc(100% + 0.5rem); left: 0; width: max-content;
	padding: 0.5rem; background: var(--popover); color: var(--popover-foreground);
	border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
body.sc .sc-yearselect-panel[hidden] { display: none; }
body.sc .sc-yearselect-caption {
	display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; height: 1.75rem; margin: 0 0 0.375rem;
}
body.sc .sc-yearselect-label { font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; color: var(--foreground); font-variant-numeric: tabular-nums; }
body.sc .sc-yearselect-nav {
	display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; padding: 0; margin: 0;
	border: 0; border-radius: var(--sc-control-radius-sm); background: transparent; color: var(--foreground); opacity: 0.6; cursor: pointer;
}
body.sc .sc-yearselect-nav:hover:not(:disabled) { background: var(--accent); opacity: 1; }
body.sc .sc-yearselect-nav:disabled { opacity: 0.25; cursor: default; }
body.sc .sc-yearselect-nav:focus-visible { outline: none; opacity: 1; box-shadow: 0 0 0 2px var(--ring); }
body.sc .sc-yearselect-grid { display: grid; grid-template-columns: repeat(4, 3.25rem); gap: 0.25rem; }
body.sc .sc-yearselect-year {
	height: 2rem; padding: 0; margin: 0; border: 0; border-radius: var(--sc-control-radius-sm);
	background: transparent; color: var(--foreground); font: inherit; font-size: 0.875rem; line-height: 1.25rem; font-variant-numeric: tabular-nums;
	cursor: pointer;
}
body.sc .sc-yearselect-year:hover:not(:disabled) { background: var(--accent); color: var(--accent-foreground); }
body.sc .sc-yearselect-year:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
body.sc .sc-yearselect-year.is-outside { color: var(--muted-foreground); opacity: 0.6; }
body.sc .sc-yearselect-year.is-today { background: var(--muted); font-weight: 500; }
body.sc .sc-yearselect-year.is-selected, body.sc .sc-yearselect-year.is-selected:hover { background: var(--primary); color: var(--primary-foreground); opacity: 1; font-weight: 500; }
body.sc .sc-yearselect-year:disabled { opacity: 0.3; cursor: default; }
/* Sign-up form layout: one field per row, label above each field.
   Spacing: 24px under the heading, 8px label to field, 20px between fields, 20px around the terms line. */
body.sc .ossn-startup-wrapper .glass-signup-card .signup-title { margin: 0 0 var(--sc-field-stack) !important; }
body.sc .ossn-startup-wrapper .glass-signup-card .signup-title h2 { margin: 0 0 0.25rem !important; }
body.sc #ossn-home-signup fieldset { margin: 0; padding: 0; }
body.sc #ossn-home-signup .sc-signup-field,
body.sc #ossn-home-signup .sc-signup-extra .text { display: flex; flex-direction: column; gap: var(--sc-field-gap); margin: 0 0 var(--sc-field-stack); }
body.sc #ossn-home-signup .sc-signup-field label,
body.sc #ossn-home-signup .sc-signup-extra label { font-size: 0.875rem; font-weight: 500; line-height: 1; color: var(--foreground); margin: 0; }
body.sc #ossn-home-signup .sc-signup-hint { font-size: 0.75rem !important; line-height: 1rem; color: var(--muted-foreground) !important; margin: -0.125rem 0 0 !important; }
body.sc #ossn-home-signup .sc-signup-field input, body.sc #ossn-home-signup .sc-signup-field select,
body.sc #ossn-home-signup .sc-signup-extra .text input { margin: 0 !important; }
body.sc #ossn-home-signup .sc-signup-field select { height: var(--sc-control-h); cursor: pointer; }
/* "Select your set" prompt shows grey until a year is picked */
body.sc #ossn-home-signup .sc-signup-field select:invalid { color: var(--muted-foreground) !important; }
body.sc #ossn-home-signup .sc-signup-field select option { color: var(--foreground); }
body.sc #ossn-home-signup .sc-signup-extra .radio-block-container { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; row-gap: var(--sc-field-gap); margin: 0 0 var(--sc-field-stack) !important; padding: 0 !important; }
body.sc #ossn-home-signup .sc-signup-extra .radio-block-container > label { flex-basis: 100%; }
body.sc #ossn-home-signup .radio-block { gap: 0.5rem; line-height: 1; }
body.sc #ossn-home-signup .radio-block span { line-height: 1.25rem; }
body.sc .ossn-startup-wrapper #ossn-home-signup .terms-text { margin: 0 0 var(--sc-field-stack) !important; }
body.sc .ossn-startup-wrapper #ossn-home-signup #ossn-submit-button { margin: 0 !important; box-shadow: none !important; }
body.sc #ossn-home-signup #ossn-signup-errors:not(.d-none) { margin: 0 0 var(--sc-field-stack); }
/* Placeholder CSSI logo is dark text on transparent: keep its box light in dark mode too */
:root.dark body.sc .ossn-startup-wrapper .brand-glass-box { background: #fff !important; }
body.sc .ossn-startup-wrapper .brand-glass-box { padding: 12px 16px !important; }
body.sc .ossn-startup-wrapper .brand-glass-box .main-logo { height: 64px !important; width: auto !important; max-width: 100% !important; }
body.sc .ossn-startup-wrapper #ossn-home-signup .terms-text a { color: var(--foreground) !important; font-weight: 500 !important; text-decoration: underline; text-underline-offset: 4px; }
body.sc .ossn-startup-wrapper .brand-glass-box { background: var(--card) !important; border: 1px solid var(--border) !important; box-shadow: none !important; backdrop-filter: none !important; border-radius: var(--radius) !important; }

/* comments area: keep it inside the card padding (OssnComments pulls it out with margin: 0 -15px) */
body.sc .ossn-wall-item .comments-list {
	margin: 0 !important; padding: 0.75rem 0 0.25rem !important;
	display: flex; flex-direction: column; gap: 0.75rem;
}
body.sc .ossn-wall-item .comments-list .comments-item { margin: 0 !important; padding: 0 !important; }
body.sc .ossn-wall-item .comments-list .comment-container,
body.sc .ossn-wall-item .comments-list form { margin: 0 !important; }
/* once reacted, OSSN shows its own reaction emoji: drop the outline icon so there's only one */
html body.sc .menu-likes-comments-share > li a.ossn-reacted-item.ossn-reacted-item::before { content: none !important; display: none !important; }
body.sc .menu-likes-comments-share > li a.ossn-reacted-item { color: var(--primary) !important; }

/* ================================================================== shared popovers opened from any composer or comment box
   (moved from pages/feed.php so profile and group walls look the same) */
/* tag-friends suggestions */
body.sc .token-input-dropdown {
	background: var(--popover) !important; color: var(--popover-foreground) !important; border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important; box-shadow: var(--sc-shadow-lg) !important; padding: 0.25rem !important; overflow: hidden;
	font-size: 0.875rem !important; font-family: inherit !important;
}
body.sc .token-input-dropdown p { margin: 0 !important; padding: 0.375rem 0.5rem !important; color: var(--muted-foreground) !important; font-size: 0.875rem !important; }
body.sc .token-input-dropdown ul { margin: 0 !important; padding: 0 !important; }
body.sc .token-input-dropdown ul li {
	margin: 0 !important; padding: 0.375rem 0.5rem !important; border: 0 !important; border-radius: var(--sc-tag-radius);
	background: transparent !important; color: var(--popover-foreground) !important; list-style: none;
}
body.sc .token-input-dropdown ul li { display: flex; align-items: center; gap: 0.5rem; }
body.sc .token-input-dropdown ul li > div { padding-left: 0 !important; }
body.sc .token-input-dropdown ul li img { width: 1.5rem !important; height: 1.5rem !important; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
body.sc .token-input-dropdown .full_name { color: inherit !important; font-weight: 400 !important; font-size: 0.875rem; }
body.sc .token-input-dropdown .full_name b { font-weight: 600; }
body.sc .token-input-dropdown ul li.token-input-selected-dropdown-item { background: var(--accent) !important; color: var(--accent-foreground) !important; }
/* emoji picker (popover opened from the composer and comment boxes) */
body.sc .emojii-container {
	background: var(--popover) !important; color: var(--popover-foreground) !important; border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important; box-shadow: var(--sc-shadow-lg) !important; padding: 0 0.25rem 0.25rem !important; overflow: hidden;
}
body.sc .emojii-container .nav-tabs { border-bottom: 1px solid var(--border) !important; padding: 0.25rem 0 !important; gap: 0.125rem; }
body.sc .emojii-container .nav-tabs .emojii {
	display: inline-flex; align-items: center; justify-content: center; height: var(--sc-control-h); padding: 0 0.375rem !important;
	border: 0 !important; border-radius: var(--sc-control-radius) !important; background: transparent !important;
}
body.sc .emojii-container .nav-tabs .emojii:hover, body.sc .emojii-container .nav-tabs .active .emojii { background: var(--accent) !important; }
body.sc .emojii-container .emojii-list li.emojii { border-radius: var(--sc-tag-radius); cursor: pointer; }
body.sc .emojii-container .emojii-list li.emojii:hover { background: var(--accent); }
body.sc .emojii-container .smiles-close {
	display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; margin-top: 0.375rem !important;
	border-radius: var(--sc-control-radius) !important; background: transparent !important; color: var(--muted-foreground) !important;
}
body.sc .emojii-container .smiles-close:hover { background: var(--accent) !important; color: var(--accent-foreground) !important; }
body.sc .emojii-container .smiles-close svg { width: 1rem; height: 1rem; }

/* ================================================================== post action bar (LinkedIn-style single row)
 * OSSN prints two rows: .menu-stats (reaction stack + count, comment count) and
 * .menu-likes-comments-share (Like / Comment buttons). Both are flattened with display:contents
 * and their pieces placed in one row:  [like][n] [comment][n] [share] ........ [reaction stack]
 * Pure CSS, so OSSN's ajax re-renders after liking/commenting keep the layout.
 */
html body.sc .ossn-wall-item .comments-likes {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 0.125rem;
	margin: 0.75rem 0 0 !important; padding: 0 !important;
}
html body.sc .ossn-wall-item .comments-likes > .menu-stats,
html body.sc .ossn-wall-item .comments-likes > .menu-likes-comments-share,
html body.sc .ossn-wall-item .comments-likes .like-share { display: contents !important; }
html body.sc .ossn-wall-item .menu-likes-comments-share > li { list-style: none; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; }

/* icon buttons */
html body.sc .ossn-wall-item .menu-likes-comments-share > li > a {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 0;
	height: var(--sc-control-h) !important; min-height: 0 !important; line-height: 0 !important; /* OSSN forces 40px: 32px control */
	min-width: var(--sc-control-h); padding: 0 0.5rem !important; font-size: 0 !important;
	border-radius: var(--radius); color: var(--muted-foreground) !important; background: transparent !important;
}
html body.sc .ossn-wall-item .menu-likes-comments-share > li > a:hover { background: var(--accent) !important; color: var(--foreground) !important; }
/* 16px icons in the action buttons, on every page with post cards */
html body.sc .ossn-wall-item .menu-likes-comments-share > li > a::before { width: var(--sc-icon) !important; height: var(--sc-icon) !important; margin: 0 !important; }
html body.sc .ossn-wall-item .menu-likes-comments-share > li > a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* reacted: OSSN's emoji replaces the outline icon, scaled to the same size */
html body.sc .ossn-wall-item .menu-likes-comments-share .ossn-reacted-item-icon { display: inline-flex; width: var(--sc-icon); height: var(--sc-icon); align-items: center; justify-content: center; }

/* order: like, like count, comment, comment count, others, reaction stack */
html body.sc .ossn-wall-item .menu-likes-comments-share > li:has(.post-control-like),
html body.sc .ossn-wall-item .menu-likes-comments-share > li:has(.entity-menu-extra-like) { order: 1; }
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-title-wholiked { order: 2; }
html body.sc .ossn-wall-item .menu-likes-comments-share > li:has(.post-control-comment),
html body.sc .ossn-wall-item .menu-likes-comments-share > li:has(.entity-menu-extra-comment) { order: 3; }
html body.sc .ossn-wall-item .comments-likes .ossn-comments-counter-stats { order: 4; }
html body.sc .ossn-wall-item .menu-likes-comments-share > li { order: 5; }
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-list { order: 6; margin-left: auto !important; }
html body.sc .ossn-wall-item .comments-likes > .comments-list { order: 10; flex: 0 0 100%; }

/* counts read like "👍 101  💬 14" */
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-title-wholiked,
html body.sc .ossn-wall-item .comments-likes .ossn-comments-counter-stats {
	display: inline-flex !important; align-items: center; margin: 0 0.5rem 0 -0.125rem !important; padding: 0 !important;
	font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground) !important; cursor: pointer; background: none !important; /* 12px medium counts */
}
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-title-wholiked a { color: inherit !important; }
html body.sc .ossn-wall-item .comments-likes .ossn-comments-counter-stats > span,
html body.sc .ossn-wall-item .comments-likes .ossn-comments-counter-stats::before { display: none !important; }

/* reaction stack on the right, overlapping like LinkedIn */
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-list { display: inline-flex !important; align-items: center; padding: 0 !important; cursor: pointer; float: none !important; }
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-list li {
	list-style: none; display: inline-flex; width: 1.25rem; height: 1.25rem; margin: 0 0 0 -0.3rem !important; padding: 0 !important;
	align-items: center; justify-content: center; border-radius: 999px; box-shadow: 0 0 0 2px var(--card); background: var(--card); overflow: hidden; float: none !important;
}
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-list li:first-child { margin-left: 0 !important; }

/* comments get their own divider now that the action row has none */
html body.sc .ossn-wall-item .comments-likes > .comments-list { border-top: 1px solid var(--border) !important; margin-top: 0.5rem !important; padding-top: 0.75rem !important; }
html body.sc .ossn-wall-item .comments-likes > .comments-list:empty { border-top: 0 !important; padding: 0 !important; margin: 0 !important; }
/* reaction icons are 16px Lucide icons now (see Reactions below), no scaling needed */
html body.sc .ossn-wall-item .menu-likes-comments-share .ossn-reacted-item-icon {
	position: relative !important; transform: none !important; width: var(--sc-icon) !important; height: var(--sc-icon) !important; overflow: visible; margin: 0 !important;
}
html body.sc .ossn-wall-item .comments-likes .ossn-reaction-list li { position: relative; width: 1.125rem !important; height: 1.125rem !important; overflow: visible; }
html body.sc .ossn-wall-item .comments-likes .ossn-comments-counter-stats { margin-left: -0.375rem !important; }

/* ================================================================== cover photos: fixed 4:1 shape (matches the crop) */
body.sc .ossn-profile .top-container .profile-cover,
body.sc .ossn-group-profile .ossn-group-cover {
	height: auto !important; aspect-ratio: 4 / 1; min-height: 0 !important; background: var(--muted) !important;
}
body.sc .ossn-profile .top-container .profile-cover > img,
body.sc .ossn-profile .top-container .profile-cover #draggable,
body.sc .ossn-group-profile .ossn-group-cover > img,
body.sc .ossn-group-profile .ossn-group-cover #draggable {
	position: absolute !important; inset: 0 !important; top: 0 !important; left: 0 !important;
	width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center;
}
body.sc .ossn-profile .top-container .profile-cover, body.sc .ossn-group-profile .ossn-group-cover { position: relative; }
/* cropping replaces drag-to-reposition */
body.sc #reposition-profile-cover, body.sc .reposition-cover, body.sc #reposition-group-cover { display: none !important; }

/* ================================================================== crop dialog (shadcn Dialog) */
.sc-crop-open, .sc-crop-open body { overflow: hidden; }
.sc-crop-overlay {
	position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
	padding: 1rem; background: rgb(0 0 0 / 0.6); backdrop-filter: blur(2px);
}
.sc-crop-overlay[hidden] { display: none; }
.sc-crop-dialog {
	width: min(56rem, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; gap: 1rem;
	padding: 1.5rem; background: var(--background); color: var(--foreground);
	border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--sc-shadow-lg);
	font-family: var(--sc-font);
}
.sc-crop-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sc-crop-header h2 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.sc-crop-header p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }
.sc-crop-header .sc-btn-icon { margin: -0.5rem -0.5rem 0 0; flex-shrink: 0; }
.sc-crop-stage { position: relative; height: min(60vh, 28rem); background: var(--muted); border-radius: var(--radius); overflow: hidden; }
.sc-crop-stage img { display: block; max-width: 100%; }
.sc-crop-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.sc-crop-tools, .sc-crop-actions { display: flex; align-items: center; gap: 0.5rem; }
.sc-crop-tools .sc-btn-icon { width: var(--sc-control-h); height: var(--sc-control-h); }
.sc-crop-size { font-size: 0.8125rem; color: var(--muted-foreground); margin-left: 0.25rem; font-variant-numeric: tabular-nums; }
.sc-crop-size.is-warn { color: oklch(0.666 0.179 58.318); }
.sc-crop-actions .sc-btn { height: var(--sc-control-h); }
/* Cropper.js chrome in theme colours */
.sc-crop-stage .cropper-view-box { outline: 2px solid var(--primary); outline-color: var(--primary); border-radius: 2px; }
.sc-crop-stage .cropper-line, .sc-crop-stage .cropper-point { background-color: var(--primary); }
.sc-crop-stage .cropper-point { width: 8px; height: 8px; border-radius: 999px; opacity: 1; }
.sc-crop-stage .cropper-modal { background-color: rgb(0 0 0 / 0.55); opacity: 1; }
.sc-crop-stage .cropper-dashed { border-color: rgb(255 255 255 / 0.5); }
@media (max-width: 640px) {
	.sc-crop-dialog { padding: 1rem; }
	.sc-crop-stage { height: 50vh; }
	.sc-crop-actions { width: 100%; }
	.sc-crop-actions .sc-btn { flex: 1; }
}

/* longer school name: allow two lines in the sidebar brand instead of truncating */
.sc-brand { align-items: center; }
.sc-brand-name { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.sc-brand-sub { margin-top: 0.125rem; }

/* post cards: Bootstrap's .row (margin: 0 -12px) was eating the card padding, leaving ~8px gutters */
html body.sc .ossn-wall-item > .row { margin-left: 0 !important; margin-right: 0 !important; }
html body.sc .ossn-wall-item > .row > [class*="col"] { padding-left: 0 !important; padding-right: 0 !important; }
/* comment section: comfortable breathing room inside the card */
html body.sc .ossn-wall-item .comments-likes > .comments-list { padding: 1rem 0 0.25rem !important; gap: 1rem; }
html body.sc .ossn-wall-item .comments-list .comment-container { padding-top: 0.25rem !important; }
/* comment box: 32px control on every page (was 40px); right padding leaves room for the camera / emoji icons */
html body.sc .comments-list .comment-box { /* posts and the single photo view */
	min-height: var(--sc-control-h) !important; margin: 0 !important; line-height: 1.25rem;
	padding: 0.3125rem 4rem 0.3125rem var(--sc-control-px) !important;
}
/* camera / emoji icons in the comment box: 16px, muted */
body.sc .comment-container .ossn-comment-attach-photo i,
body.sc .comment-container .ossn-comment-attach-photo svg { width: var(--sc-icon) !important; height: var(--sc-icon) !important; font-size: 1rem !important; color: var(--muted-foreground) !important; }
body.sc .comment-container .ossn-comment-attach-photo i:hover,
body.sc .comment-container .ossn-comment-attach-photo i:hover svg { color: var(--foreground) !important; }
html body.sc .ossn-wall-item .comments-list .comment-container input[type="submit"],
html body.sc .ossn-wall-item .comments-list .comment-container .btn { margin-top: 0.5rem !important; }

/* Local development only: "Fill test data" bar on the sign-up and login forms (js/shadcn.php scDevFillButtons) */
body.sc .sc-dev-fill {
	display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
	margin: 0 0 var(--sc-field-stack); padding: 0.375rem 0.375rem 0.375rem 0.625rem;
	border: 1px dashed var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--muted) 50%, transparent);
	font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground);
}
body.sc .sc-dev-fill button {
	height: var(--sc-control-h-sm); padding: 0 var(--sc-control-px); margin: 0;
	border: 1px solid var(--input); border-radius: var(--sc-control-radius-sm); background: var(--background);
	font: inherit; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--foreground); cursor: pointer; /* 14px like other buttons */
}
body.sc .sc-dev-fill button:hover { background: var(--accent); }

/* Footer sits at the bottom of the window on short pages and after the content on long ones:
   the main area fills the window height and the footer takes up the space left above it. */
body.sc .sc-main { display: flex; flex-direction: column; }
body.sc .sc-main > .container-xl { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
body.sc .sc-main > .container-xl > footer { margin-top: auto !important; margin-bottom: 0 !important; }
body.sc .sc-main > .container-xl > :not(footer):has(+ footer) { margin-bottom: 1.5rem; }

/* Sign-up done: next-step panel that replaces OSSN's one-line notice (js/shadcn.php scSignupNextStep) */
body.sc .ossn-startup-wrapper .glass-signup-card.sc-signup-done .signup-title { display: none; }
body.sc .sc-signup-next { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 0.5rem 0 0; }
body.sc .sc-signup-next-icon {
	width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.25rem;
	border-radius: 999px; background: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary);
}
body.sc .sc-signup-next h3 { margin: 0; font-size: 1rem; line-height: 1.375rem; font-weight: 500; color: var(--foreground); }
body.sc .ossn-startup-wrapper .sc-signup-next p { margin: 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground) !important; }
body.sc .ossn-startup-wrapper .sc-signup-next p strong { display: block; color: var(--foreground); font-weight: 500; overflow-wrap: anywhere; }
body.sc .ossn-startup-wrapper .sc-signup-next p.sc-signup-next-hint { font-size: 0.75rem; line-height: 1rem; }
body.sc .sc-signup-next .sc-signup-next-login { width: 100%; margin-top: 0.75rem; text-decoration: none; }

/* ================================================================== notifications menu
   Modelled on the shadcncraft kit's Notification Item: popover with soft border and popover shadow,
   item = media (avatar + type badge) | title (name, medium) + description (muted) + time | dismiss on hover. */
body.sc .ossn-notification-container {
	top: -0.25rem !important; right: -0.25rem !important; min-width: 0.75rem; height: 1rem; padding: 0 0.25rem;
	font-size: 0.625rem; line-height: 1rem; border-width: 2px;
}
/* header count badges: red circle (owner preference); a single digit is a full circle, more digits stretch into a pill */
body.sc .ossn-notification-container {
	box-sizing: border-box !important; min-width: 1.125rem; height: 1.125rem; padding: 0 0.125rem !important;
	line-height: 1.125rem !important; text-align: center; font-variant-numeric: tabular-nums;
	border: 0 !important; border-radius: 999px !important; background: var(--destructive) !important; color: oklch(0.984 0.003 247.858) !important; /* Tailwind slate-50 */
	box-shadow: none !important; text-shadow: none !important; /* OSSN adds a dark drop shadow and text shadow */
}
body.sc .sc-header .ossn-notifications-box {
	border: 1px solid var(--sc-card-border) !important; border-radius: var(--radius) !important; padding: 0 !important; margin: 0 !important;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}
body.sc .ossn-notifications-box .type-name {
	display: flex !important; align-items: center; justify-content: space-between; gap: 0.75rem;
	font-size: 0.875rem !important; font-weight: 500 !important; line-height: 1.25rem; padding: 0.75rem 1rem !important; margin: 0 !important;
}
body.sc .ossn-notifications-box .type-name a {
	font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground) !important; text-decoration: none; float: none !important;
}
body.sc .ossn-notifications-box .type-name a:hover { color: var(--foreground) !important; }
body.sc .ossn-notifications-box .metadata, body.sc .ossn-notifications-box .messages-inner, body.sc .ossn-notifications-box .ossn-notifications-all {
	width: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; float: none !important; background: transparent !important;
}
body.sc .ossn-notifications-box .ossn-notifications-all > li {
	list-style: none; margin: 0 !important; padding: 0 !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; position: relative;
}
body.sc .ossn-notifications-box .ossn-notifications-all > li:last-child { border-bottom: 0 !important; }
body.sc .ossn-notifications-box .ossn-notification-item-a {
	position: relative; display: flex !important; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 2.5rem 0.75rem 1rem !important;
	color: var(--foreground) !important; text-decoration: none !important;
}
body.sc .ossn-notifications-box .notification-image { position: relative; flex: 0 0 2rem; margin: 0 !important; }
body.sc .ossn-notifications-box .notification-image img { width: 2rem !important; height: 2rem !important; object-fit: cover; display: block; }
body.sc .ossn-notifications-box .notfi-meta { position: static !important; flex: 1 1 auto; min-width: 0; }
/* type icon (like, comment...) as a small badge on the avatar's corner */
body.sc .ossn-notifications-box .notfi-meta > [class^="ossn-notification-icon"] {
	position: absolute !important; left: calc(1rem + 2rem - 0.75rem); top: calc(0.75rem + 2rem - 0.75rem);
	width: 1rem !important; height: 1rem !important; margin: 0 !important; padding: 0 !important; float: none !important;
	display: inline-flex !important; align-items: center; justify-content: center; font-size: 0.625rem !important;
	border-radius: 999px; background: var(--primary) !important; color: var(--primary-foreground) !important;
	box-shadow: 0 0 0 2px var(--popover); background-image: none !important;
}
body.sc .ossn-notifications-box .notfi-meta > [class^="ossn-notification-icon"] i,
body.sc .ossn-notifications-box .notfi-meta > [class^="ossn-notification-icon"] svg { width: 0.625rem !important; height: 0.625rem !important; margin: 0 !important; color: inherit !important; }
body.sc .ossn-notifications-box .notfi-meta .data {
	font-size: 0.875rem !important; line-height: 1.25rem; color: var(--muted-foreground) !important; padding: 0 !important; margin: 0 !important;
}
body.sc .ossn-notifications-box .notfi-meta .data strong { color: var(--foreground) !important; font-weight: 500; }
body.sc .ossn-notifications-box .notfi-meta .time-created {
	display: block; margin-top: 0.125rem; font-size: 0.75rem !important; line-height: 1rem; font-style: normal !important; color: var(--muted-foreground) !important;
}
/* unread rows: lightest neutral grey (owner preference, not green) */
body.sc .ossn-notifications-box .ossn-notification-unviewed { background: color-mix(in oklch, var(--muted) 60%, transparent) !important; }
body.sc .ossn-notifications-box .ossn-notifications-all > li:hover { background: var(--accent) !important; }
/* dismiss: quiet icon button, shown on hover/focus (kit ItemActions) */
body.sc .ossn-notifications-box .ossn-notif-delete-item {
	position: absolute !important; top: 0.625rem; right: 0.625rem; width: 1.5rem; height: 1.5rem;
	display: inline-flex !important; align-items: center; justify-content: center; border-radius: var(--sc-control-radius);
	color: var(--muted-foreground) !important; opacity: 0; transition: opacity 120ms, background-color 120ms; cursor: pointer;
}
body.sc .ossn-notifications-box .ossn-notifications-all > li:hover .ossn-notif-delete-item,
body.sc .ossn-notifications-box .ossn-notif-delete-item:focus-visible { opacity: 1; }
body.sc .ossn-notifications-box .ossn-notif-delete-item:hover { background: var(--background); color: var(--foreground) !important; }
body.sc .ossn-notifications-box .ossn-notif-delete-item svg { width: 0.875rem !important; height: 0.875rem !important; margin: 0 !important; }
body.sc .ossn-notifications-box .bottom-all { padding: 0 !important; margin: 0 !important; border-top: 1px solid var(--border) !important; }
body.sc .ossn-notifications-box .bottom-all a {
	display: block; padding: 0.625rem 1rem; text-align: center; font-size: 0.875rem; font-weight: 500; line-height: 1.25rem;
	color: var(--foreground) !important; text-decoration: none;
}
body.sc .ossn-notifications-box .bottom-all a:hover { background: var(--accent); }

/* ================================================================== icon sizes (Lucide)
   Owner decision: Lucide everywhere, sized by context (shadcn sizes), not by the surrounding text.
   16px default: buttons, menus, sidebar, header actions, toolbars, tabs, inputs.
   12px small:   inside meta text (time, privacy), tags and badges.
   20px large:   overlays on photos (change photo / cover) and empty states. */
:root { --sc-icon: 1rem; --sc-icon-sm: 0.75rem; --sc-icon-lg: 1.25rem; }
body.sc .sc-icon, body.sc i[data-icon] .sc-icon { width: var(--sc-icon) !important; height: var(--sc-icon) !important; }
body.sc .time-created .sc-icon, body.sc .post-meta .sc-icon, body.sc .ossn-wall-item .meta .sc-icon,
body.sc .feature-tag .sc-icon, body.sc .badge .sc-icon, body.sc .sc-tag .sc-icon,
body.sc .ossn-wall-item .meta .post-meta i .sc-icon { width: var(--sc-icon-sm) !important; height: var(--sc-icon-sm) !important; }
body.sc .profile-photo .upload-photo .sc-icon,
/* the i[data-icon] form is listed so it beats the 16px "i[data-icon] .sc-icon" rule above */
body.sc .sc-empty .sc-icon, body.sc .sc-empty i[data-icon] .sc-icon { width: var(--sc-icon-lg) !important; height: var(--sc-icon-lg) !important; }
/* kit Empty parts any page can reuse: 40px muted icon box, 16px medium title, 14px muted line */
body.sc .sc-empty-media {
	display: flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; height: 2.5rem; margin-bottom: 0.5rem;
	border-radius: var(--radius); background: var(--muted); color: var(--foreground);
}
body.sc .sc-empty-media i { display: inline-flex; line-height: 1; }
body.sc .sc-empty-title { margin: 0; font-size: 1rem; line-height: 1.5rem; font-weight: 500; color: var(--foreground); }
body.sc .sc-empty-description { margin: 0; max-width: 24rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
/* menu buttons that sit inside the post details line are still buttons: standard 16px */
body.sc .ossn-wall-item .post-menu .sc-icon, body.sc .ossn-wall-item .meta .dropdown > a .sc-icon { width: var(--sc-icon) !important; height: var(--sc-icon) !important; }
/* notification type glyph sits in a 16px badge: keep it 10px */
body.sc .ossn-notifications-box .notfi-meta > [class^="ossn-notification-icon"]::before { width: 0.625rem !important; height: 0.625rem !important; margin: 0 !important; }

/* chat dock stack: only the front chat shows; the rest sit behind a "+N" button (js/shadcn.php scChatStack) */
body.sc .ossn-chat-containers .friend-tab-item.sc-chat-stacked { display: none !important; }
body.sc .ossn-chat-containers .sc-chat-stack { position: relative; float: right; margin: 0 0 0 0.3125rem; }
body.sc .ossn-chat-containers .sc-chat-stack[hidden] { display: none; }
body.sc .sc-chat-stack-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
	height: 2.5rem; min-width: 2.75rem; padding: 0 0.75rem; margin: 0;
	border: 1px solid var(--sc-card-border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
	background: var(--card); color: var(--card-foreground); box-shadow: 0 -2px 6px -2px rgb(0 0 0 / 0.08);
	font: inherit; font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer;
}
body.sc .sc-chat-stack-btn:hover { background: var(--accent); }
body.sc .sc-chat-stack-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
body.sc .sc-chat-stack-dot { display: none; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary); }
body.sc .sc-chat-stack.has-new .sc-chat-stack-btn { color: var(--primary); border-color: color-mix(in oklch, var(--primary) 40%, transparent); }
body.sc .sc-chat-stack.has-new .sc-chat-stack-dot { display: inline-block; }
body.sc .sc-chat-stack-menu {
	position: absolute; bottom: calc(100% + 0.25rem); right: 0; z-index: 70; min-width: 13rem; max-height: 18rem; overflow-y: auto; padding: 0.25rem;
	background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--sc-card-border); border-radius: var(--radius);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
body.sc .sc-chat-stack-menu[hidden] { display: none; }
/* "+N" lives inside the front chat (owner preference: one element): a small count button at the right end of the tab, or in the open window header before minimise/close */
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-tab,
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-header { float: none; display: inline-flex; align-items: center; flex: 0 0 auto; margin: 0 0 0 auto !important; vertical-align: middle; }
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-header { margin-right: 0.25rem !important; }
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-tab .sc-chat-stack-btn,
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-header .sc-chat-stack-btn {
	height: 1.5rem; min-width: 0; padding: 0 0.375rem; font-size: 0.75rem; line-height: 1rem;
	border: 1px solid var(--sc-card-border); border-radius: var(--sc-tag-radius); box-shadow: none; background: transparent;
}
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-tab .sc-chat-stack-btn:hover,
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-header .sc-chat-stack-btn:hover { background: var(--accent); }
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-tab .sc-chat-stack-menu { bottom: calc(100% + 0.5rem); top: auto; right: -0.75rem; }
body.sc .ossn-chat-containers .sc-chat-stack.sc-chat-stack-in-header .sc-chat-stack-menu { bottom: auto; top: calc(100% + 0.25rem); right: 0; }
body.sc .sc-chat-stack-title { padding: 0.375rem 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--muted-foreground); }
body.sc .sc-chat-stack-item {
	display: flex; align-items: center; gap: 0.5rem; width: 100%; height: 2rem; padding: 0 0.5rem; margin: 0;
	border: 0; border-radius: var(--sc-control-radius); background: transparent; color: var(--foreground);
	font: inherit; font-size: 0.875rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
body.sc .sc-chat-stack-item:hover, body.sc .sc-chat-stack-item:focus-visible { outline: none; background: var(--accent); }
body.sc .sc-chat-stack-status { flex: 0 0 auto; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--muted-foreground); opacity: 0.5; }
body.sc .sc-chat-stack-item.has-new { font-weight: 500; }
body.sc .sc-chat-stack-item.has-new .sc-chat-stack-status { background: var(--primary); opacity: 1; }

/* like / comment icon buttons: the hidden label must not add a gap (liked and unliked are both 32px wide),
   and the icon takes the button's own text colour, not OSSN's fixed grey (dims in dark mode) */
body.sc .menu-likes-comments-share > li > a { gap: 0 !important; }
body.sc .menu-likes-comments-share > li > a::before { color: inherit !important; }

/* comment box icons (photo, emoji): pinned inside the 32px box (the box starts 4px down the fieldset), centred top to bottom, 10px from the right edge, 8px apart */
body.sc .comment-container form fieldset { position: relative; }
body.sc .comment-container .ossn-comment-attach-photo i {
	position: absolute !important; top: 0.75rem !important; float: none !important; margin: 0 !important; padding: 0 !important;
	display: block !important; width: var(--sc-icon) !important; height: var(--sc-icon) !important; line-height: 0 !important; z-index: 1; cursor: pointer;
}
body.sc .comment-container .ossn-comment-attach-photo i.fa-camera { right: 0.625rem !important; }
body.sc .comment-container .ossn-comment-attach-photo i.fa-smile { right: 2.125rem !important; }
body.sc .comment-container .ossn-comment-attach-photo i svg { display: block; margin: 0 !important; position: static !important; }

/* comment bubbles span the full width of the comment column (owner preference) instead of shrinking to the text */
body.sc .comments-item .comment-contents-container { display: block !important; width: 100% !important; }

/* chat sound lives in Account settings > Notifications now (owner preference): hide OSSN's bell in the chat rail and chat tabs (the Messages page bell stays) */
html body.sc .ossn-chat-windows-long .ossn-chat-pling,
html body.sc .ossn-chat-icon .ossn-chat-pling,
html body.sc .ossn-chat-base .ossn-chat-pling { display: none !important; }

/* Account settings > Notifications: kit Switch rows */
body.sc .sc-settings-section { display: flex; flex-direction: column; gap: 0.75rem; }
body.sc .sc-settings-title { margin: 0; font-size: 1rem; line-height: 1.5rem; font-weight: 500; color: var(--foreground); }
body.sc .sc-switch-row {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.75rem 1rem;
	border: 1px solid var(--sc-card-border); border-radius: var(--radius); cursor: pointer; font-weight: 400;
}
body.sc .sc-switch-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
body.sc .sc-switch-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--foreground); }
body.sc .sc-switch-hint { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
body.sc input.sc-switch {
	appearance: none; -webkit-appearance: none; flex: 0 0 auto; position: relative; width: 2rem; height: 1.15rem; margin: 0; padding: 0;
	border: 1px solid transparent; border-radius: 999px; background: var(--input); cursor: pointer; transition: background-color 150ms;
}
body.sc input.sc-switch::after {
	content: ""; position: absolute; top: 50%; left: 1px; width: 0.875rem; height: 0.875rem; border-radius: 999px;
	background: var(--background); transform: translateY(-50%); transition: transform 150ms;
}
body.sc input.sc-switch:checked { background: var(--primary); }
body.sc input.sc-switch:checked::after { transform: translate(calc(2rem - 0.875rem - 4px), -50%); }
body.sc input.sc-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
body.sc .sc-settings-actions { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { body.sc input.sc-switch, body.sc input.sc-switch::after { transition: none; } }

/* online rail: each friend row is just the 40px avatar; the rail's 8px gap spaces them (OSSN's 50px box, 5px margin and 4px padding made 73px rows) */
html body.sc .ossn-chat-windows-long .friends-list-item { padding: 0 !important; height: auto !important; min-height: 0 !important; }
html body.sc .ossn-chat-windows-long .friends-list-item .friends-item-inner { margin: 0 !important; height: auto !important; }
html body.sc .ossn-chat-windows-long .friends-list-item .icon { width: auto !important; height: auto !important; line-height: 0; }

/* chat dock sits at the bottom right, next to the online rail, instead of OSSN's fixed 910/1100px box that started near the left
   (that box put an opened chat window over the middle of the feed) */
html body.sc .ossn-chat-base { left: auto !important; right: 0.5rem !important; width: auto !important; max-width: calc(100vw - 1rem); }
@media (min-width: 1360px) { html body.sc .ossn-chat-base { right: calc(80px + 0.5rem) !important; } }
html body.sc .ossn-chat-base .ossn-chat-containers { width: auto !important; }
html body.sc .ossn-chat-containers .friend-tab-item:first-child { margin-right: 0 !important; }
/* the open chat window lines up with the right edge of its tab */
html body.sc .ossn-chat-containers .friend-tab-item { position: relative; }
html body.sc .ossn-chat-containers .friend-tab-item .tab-container { left: auto !important; right: 0 !important; margin-left: 0 !important; }
/* below 1360px the "Chat" bar shows instead of the rail: float the open chats beside it, so the dock stays one row and never drops below the screen */
html body.sc .ossn-chat-base .ossn-chat-containers { float: right; }

/* ===== Chat: one floating button + panel (js/shadcn.php scChatPanel), owner preference inspired by X's chat drawer =====
   OSSN's online-friends rail, "Chat" bar, bottom chat tabs and the header messages icon are replaced by it */
html body.sc .ossn-chat-windows-long,
html body.sc .ossn-chat-base .ossn-chat-bar,
html body.sc .ossn-chat-base .ossn-chat-containers,
html body.sc #ossn-notif-messages { display: none !important; }
/* the page no longer leaves room for the rail (OssnChat sets an inline 90px right margin) */
html body.sc .ossn-inner-page { margin-right: 0 !important; }
/* the chat base stays (OssnChat's live updates look inside it) but takes no space and catches no clicks */
html body.sc .ossn-chat-base { height: 0 !important; width: 0 !important; right: 0 !important; overflow: visible !important; pointer-events: none; }
html body.sc .ossn-chat-base .sc-chat-panel { pointer-events: auto; }

/* floating button: 32px, bottom right */
body.sc .sc-chat-fab {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 1040; width: 2rem; height: 2rem; padding: 0; margin: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); cursor: pointer;
}
body.sc .sc-chat-fab:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
body.sc .sc-chat-fab:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
body.sc .sc-chat-fab svg { width: var(--sc-icon); height: var(--sc-icon); }
/* unread count: same red circle as the header badges */
body.sc .sc-chat-fab-badge {
	position: absolute; top: -0.375rem; right: -0.375rem; box-sizing: border-box; min-width: 1.125rem; height: 1.125rem; padding: 0 0.125rem;
	border-radius: 999px; background: var(--destructive); color: oklch(0.984 0.003 247.858);
	font-size: 0.625rem; font-weight: 600; line-height: 1.125rem; text-align: center; font-variant-numeric: tabular-nums;
}
body.sc .sc-chat-fab-badge[hidden] { display: none; }

/* panel: above the button, 360px wide */
body.sc .sc-chat-panel {
	position: fixed; right: 1rem; bottom: 3.5rem; z-index: 1040; width: 22.5rem; max-width: calc(100vw - 2rem);
	height: min(35rem, calc(100vh - 6rem)); display: flex; flex-direction: column; overflow: hidden;
	background: var(--card); color: var(--card-foreground); border: 1px solid var(--sc-card-border); border-radius: var(--radius);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); font-size: 0.875rem;
}
body.sc .sc-chat-panel[hidden] { display: none; }
body.sc .sc-chat-panel-head { display: flex; align-items: center; gap: 0.25rem; flex: 0 0 auto; height: 3rem; padding: 0 0.5rem 0 0.75rem; border-bottom: 1px solid var(--sc-card-border); }
body.sc .sc-chat-panel-title { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; line-height: 1.5rem; }
body.sc .sc-chat-title-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
body.sc .sc-chat-icon-btn {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; margin: 0;
	border: 0; border-radius: var(--radius); background: transparent; color: var(--muted-foreground); cursor: pointer; text-decoration: none;
}
body.sc .sc-chat-icon-btn[hidden] { display: none; }
body.sc .sc-chat-icon-btn:hover { background: var(--accent); color: var(--accent-foreground); }
body.sc .sc-chat-icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
body.sc .sc-chat-icon-btn svg { width: var(--sc-icon); height: var(--sc-icon); }

/* conversation list: kit Item rows */
body.sc .sc-chat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.25rem; }
body.sc .sc-chat-list[hidden] { display: none; }
body.sc .sc-chat-row {
	display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.5rem; margin: 0; border: 0; border-radius: var(--radius);
	background: transparent; color: var(--foreground); text-align: left; cursor: pointer; font: inherit;
}
body.sc .sc-chat-row:hover, body.sc .sc-chat-row:focus-visible { outline: none; background: var(--accent); }
body.sc .sc-chat-avatar { position: relative; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; }
body.sc .sc-chat-avatar img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; }
body.sc .sc-chat-avatar-sm { width: 1.75rem; height: 1.75rem; }
body.sc .sc-chat-online { position: absolute; right: 0; bottom: 0; width: 0.625rem; height: 0.625rem; border-radius: 999px; background: oklch(0.723 0.219 149.579); box-shadow: 0 0 0 2px var(--card); }
body.sc .sc-chat-avatar-sm .sc-chat-online { width: 0.5rem; height: 0.5rem; }
body.sc .sc-chat-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
body.sc .sc-chat-row-top { display: flex; align-items: baseline; gap: 0.5rem; }
body.sc .sc-chat-row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; line-height: 1.25rem; }
body.sc .sc-chat-row-time { flex: 0 0 auto; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
body.sc .sc-chat-row-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
body.sc .sc-chat-row.is-unread .sc-chat-row-text { color: var(--foreground); font-weight: 500; }
body.sc .sc-chat-unread-dot { flex: 0 0 auto; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary); }
body.sc .sc-chat-loading { padding: 1rem; color: var(--muted-foreground); text-align: center; }
body.sc .sc-chat-empty { padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
body.sc .sc-chat-empty .sc-empty-media { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: var(--muted); color: var(--foreground); }
body.sc .sc-chat-empty .sc-empty-media svg { width: var(--sc-icon-lg); height: var(--sc-icon-lg); }
body.sc .sc-chat-empty .sc-empty-title { font-size: 1rem; font-weight: 500; }
body.sc .sc-chat-empty .sc-empty-text { color: var(--muted-foreground); }

/* conversation: OssnChat's window, made to fill the panel (its own title bar is replaced by the panel header) */
body.sc .sc-chat-thread { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.sc .sc-chat-thread[hidden] { display: none; }
html body.sc .sc-chat-thread .friend-tab-item {
	float: none !important; position: static !important; width: auto !important; flex: 1 1 auto; min-height: 0; margin: 0 !important;
	display: flex !important; flex-direction: column;
}
html body.sc .sc-chat-thread .friend-tab-item .tab-container {
	display: flex !important; flex-direction: column; flex: 1 1 auto; min-height: 0; position: static !important;
	width: auto !important; height: auto !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
}
html body.sc .sc-chat-thread .ossn-chat-tab-titles { display: none !important; }
html body.sc .sc-chat-thread .tab-container .data { flex: 1 1 auto; min-height: 0; width: auto !important; height: auto !important; overflow-y: auto; padding: 0.75rem !important; }
html body.sc .sc-chat-thread .friend-tab {
	display: block !important; position: relative !important; width: auto !important; height: auto !important; flex: 0 0 auto;
	margin: 0 !important; padding: 0.5rem !important; border: 0 !important; border-top: 1px solid var(--sc-card-border) !important; border-radius: 0 !important;
	background: var(--card) !important; cursor: default !important;
}
html body.sc .sc-chat-thread .friend-tab .ossn-chat-new-message,
html body.sc .sc-chat-thread .friend-tab [id^="ossnchat-ustatus-"] { display: none !important; }
html body.sc .sc-chat-thread .friend-tab form { display: flex !important; align-items: center; gap: 0.25rem; position: relative; margin: 0; flex-wrap: wrap; }
html body.sc .sc-chat-thread .friend-tab input[name="message"] {
	display: block !important; position: static !important; flex: 1 1 auto; min-width: 0; width: auto !important; height: var(--sc-control-h) !important; margin: 0 !important;
	padding: 0 4.25rem 0 var(--sc-control-px) !important; border: 1px solid var(--input) !important; border-radius: 0.75rem !important;
	background: transparent !important; color: var(--foreground) !important; box-shadow: none !important; font-size: 0.875rem;
}
html body.sc .sc-chat-thread .friend-tab input[name="message"]:focus { outline: none; border-color: var(--input) !important; box-shadow: none !important; }
html body.sc .sc-chat-thread .friend-tab .ossn-chat-icon-smile-set { position: absolute !important; right: 0.625rem; top: 50%; transform: translateY(-50%); margin: 0 !important; display: flex !important; gap: 0.5rem; }
html body.sc .sc-chat-thread .friend-tab .ossn-chat-message-attachment-details:not(:empty) { flex-basis: 100%; order: 2; font-size: 0.75rem; color: var(--muted-foreground); }
/* the conversation input fills the panel width (OSSN gives the chat input and its form fixed widths) */
html body.sc .sc-chat-thread .friend-tab form { width: 100% !important; max-width: none !important; }
html body.sc .sc-chat-thread .friend-tab input[name="message"] { max-width: none !important; }
html body.sc .sc-chat-thread .friend-tab .ossn-chat-icon-smile-set > div { width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important; line-height: 0; }

/* chat panel header: All/Unread filter dropdown (kit Dropdown Menu) */
body.sc .sc-chat-panel-title { flex: 0 1 auto; }
body.sc .sc-chat-back[hidden] ~ .sc-chat-panel-title { flex: 0 1 auto; }
body.sc .sc-chat-filter { position: relative; flex: 0 0 auto; margin-right: auto; }
body.sc .sc-chat-filter[hidden] { display: none; }
body.sc .sc-chat-back:not([hidden]) ~ .sc-chat-panel-title { flex: 1 1 auto; }
body.sc .sc-chat-filter-btn {
	display: inline-flex; align-items: center; gap: 0.25rem; height: var(--sc-control-h-sm); padding: 0 0.5rem; margin: 0 0 0 0.25rem;
	border: 1px solid var(--input); border-radius: var(--radius); background: transparent; color: var(--foreground);
	font: inherit; font-size: 0.75rem; font-weight: 500; cursor: pointer;
}
body.sc .sc-chat-filter-btn:hover { background: var(--accent); }
body.sc .sc-chat-filter-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
body.sc .sc-chat-filter-btn svg { width: var(--sc-icon-sm); height: var(--sc-icon-sm); color: var(--muted-foreground); }
body.sc .sc-chat-filter-menu {
	position: absolute; top: calc(100% + 0.25rem); left: 0; z-index: 5; min-width: 9rem; padding: 0.25rem;
	background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--sc-card-border); border-radius: var(--radius);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
body.sc .sc-chat-filter-menu[hidden] { display: none; }
body.sc .sc-chat-filter-item {
	display: flex; align-items: center; gap: 0.5rem; width: 100%; height: 2rem; padding: 0 0.5rem; margin: 0;
	border: 0; border-radius: var(--radius); background: transparent; color: var(--foreground); font: inherit; font-size: 0.875rem; text-align: left; cursor: pointer;
}
body.sc .sc-chat-filter-item:hover, body.sc .sc-chat-filter-item:focus-visible { outline: none; background: var(--accent); }
body.sc .sc-chat-filter-check { display: inline-flex; width: 1rem; height: 1rem; visibility: hidden; }
body.sc .sc-chat-filter-item[aria-checked="true"] .sc-chat-filter-check { visibility: visible; }
body.sc .sc-chat-filter-check svg { width: 1rem; height: 1rem; }
body.sc .sc-chat-filter-count { margin-left: auto; font-size: 0.75rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

/* New message pop-up (kit Dialog + Command-style search list) */
body.sc .sc-chat-modal { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 1rem 1rem; }
body.sc .sc-chat-modal[hidden] { display: none; }
body.sc .sc-chat-modal-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
body.sc .sc-chat-modal-dialog {
	position: relative; width: 100%; max-width: 28rem; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
	background: var(--background); color: var(--foreground); border: 1px solid var(--sc-card-border); border-radius: var(--radius);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); font-size: 0.875rem;
}
body.sc .sc-chat-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 0.5rem; }
body.sc .sc-chat-modal-head h2 { margin: 0; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
body.sc .sc-chat-search { position: relative; margin: 0 1rem 0.5rem; }
body.sc .sc-chat-search-icon { position: absolute; left: 0.625rem; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--muted-foreground); pointer-events: none; }
body.sc .sc-chat-search-icon svg { width: var(--sc-icon); height: var(--sc-icon); }
body.sc input.sc-chat-search-input {
	width: 100%; height: var(--sc-control-h); margin: 0; padding: 0 var(--sc-control-px) 0 2.125rem;
	border: 1px solid var(--input); border-radius: var(--radius); background: transparent; color: var(--foreground); font-size: 0.875rem; box-shadow: none;
}
body.sc input.sc-chat-search-input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
body.sc .sc-chat-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 0.5rem 0.5rem; }
body.sc .sc-chat-modal-label { padding: 0.5rem 0.5rem 0.25rem; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
body.sc .sc-chat-group-row { border-bottom: 0; }
body.sc .sc-chat-group-media { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--muted); color: var(--foreground); }
body.sc .sc-chat-group-media svg { width: var(--sc-icon); height: var(--sc-icon); }
body.sc .sc-chat-results .sc-chat-loading { padding: 0.75rem 0.5rem; text-align: left; }
/* pop-up search: room for the 16px search icon (10px in + 16px icon + 8px gap); the site's generic search-input padding was overriding it */
html body.sc .sc-chat-modal input.sc-chat-search-input { padding: 0 var(--sc-control-px) 0 2.125rem !important; }
/* chat filter: 12px between the "Chat" title and the filter button; separator and "Mark all as read" in the menu */
body.sc .sc-chat-filter-btn { margin-left: 0.5rem; }
body.sc .sc-chat-filter-menu { min-width: 11rem; }
body.sc .sc-chat-filter-sep { height: 1px; margin: 0.25rem -0.25rem; background: var(--sc-card-border); }
body.sc .sc-chat-filter-check.is-shown { visibility: visible; color: var(--muted-foreground); }
body.sc .sc-chat-filter-item:disabled { opacity: 0.5; cursor: default; background: transparent; }

/* ===== Post button (js/shadcn.php scPostButton), owner preference after X ===== */
/* sidebar: full-width primary button at the top, under the search box */
body.sc .sc-post-btn {
	display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; height: var(--sc-control-h-lg); margin: 0 0 0.75rem; padding: 0 1rem;
	border: 0; border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground);
	font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; white-space: nowrap; overflow: hidden;
}
body.sc .sc-post-btn:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
body.sc .sc-post-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
body.sc .sc-post-btn svg { flex: 0 0 auto; width: var(--sc-icon); height: var(--sc-icon); }
/* phones: round + button stacked above the chat button */
body.sc .sc-post-fab {
	position: fixed; right: 1rem; bottom: 3.5rem; z-index: 1040; width: 2rem; height: 2rem; padding: 0; margin: 0;
	display: none; align-items: center; justify-content: center; border: 0; border-radius: 999px;
	background: var(--primary); color: var(--primary-foreground); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); cursor: pointer;
}
body.sc .sc-post-fab svg { width: var(--sc-icon); height: var(--sc-icon); }
body.sc .sc-post-fab:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
@media (max-width: 767.98px) { body.sc .sc-post-fab { display: inline-flex; } }
/* pop-up: the composer card fills the dialog, without its own card frame */
body.sc .sc-post-dialog { max-width: 38rem; overflow: visible; }
body.sc .sc-post-body { padding: 0 1rem 1rem; overflow: visible; }
html body.sc .sc-post-body .ossn-wall-container { margin: 0 !important; border: 1px solid var(--sc-card-border) !important; box-shadow: none !important; }
/* the sidebar Post button lines up with the search box (8px in from each side) */
body.sc .sc-sidebar .sc-post-btn { width: calc(100% - 1rem); margin: 0 0.5rem 0.75rem; }
/* in the pop-up, its "Create post" title replaces the composer's own "Post" tab row */
html body.sc .sc-post-body .ossn-wall-container .tabs-input { display: none !important; }

/* post card spacing (owner request): clear gaps between the major parts, tighter gaps inside each part
   major: header > text 12px, actions > divider 12px, divider > comments 16px, last comment > comment box 16px, card edge 16px
   minor: text > like/comment row 8px, between comments 12px, comment bubble > its time/Like row 4px */
html body.sc .ossn-wall-item .post-contents { margin-top: 0.75rem !important; }
html body.sc .ossn-wall-item .comments-likes { margin-top: 0.5rem !important; }
html body.sc .ossn-wall-item .comments-list { margin-top: 0.75rem !important; padding-top: 1rem !important; padding-bottom: 0 !important; }
html body.sc .ossn-wall-item .comments-list [class*="ossn-comments-list-"] .comments-item + .comments-item { margin-top: 0.75rem !important; }
html body.sc .ossn-wall-item .comments-list [class*="ossn-comments-list-"] .comment-metadata { margin-top: 0.25rem !important; }
/* the comments list is a flex column with a 12px gap; 4px more makes 16px before the comment box */
html body.sc .ossn-wall-item .comments-list [class*="ossn-comments-list-"]:not(:empty) + .comments-item { margin-top: 0.25rem !important; }
/* the comment box ends 16px from the card edge (its form had 4px of extra bottom padding) */
html body.sc .ossn-wall-item .comments-list > .comments-item form.comment-container { padding-bottom: 0 !important; }
html body.sc .ossn-wall-item .comments-likes > .comments-list { padding-bottom: 0 !important; }
/* typing in the post box: no green border or glow, same as the comment box (owner preference) */
html body.sc .ossn-wall-container .ossn-wall-textarea:focus,
html body.sc .ossn-wall-container .ossn-wall-textarea:focus-within { border-color: var(--input) !important; box-shadow: none !important; outline: none !important; }

/* group composer: the "Public"/"Closed" badge joins the toolbar band before the Post button, like Privacy on the feed
   (it sat on its own row to the left of the toolbar) */
html body.sc .ossn-wall-container-data > .ossn-wall-privacy-dummy {
	order: 11; display: flex !important; align-items: center; height: auto !important; margin: var(--sc-card-pad) 0 0 !important; padding: 0.75rem 0.5rem 0.75rem 0 !important;
	border: 0 !important; border-top: 1px solid var(--border) !important; border-radius: 0 !important; box-shadow: none !important;
	background: color-mix(in oklch, var(--muted) 50%, transparent) !important; font-size: 0.875rem;
}
html body.sc .ossn-wall-container-data > .ossn-wall-privacy-dummy > span {
	display: inline-flex; align-items: center; gap: 0.375rem; height: var(--sc-control-h); padding: 0 var(--sc-control-px);
	border: 1px solid var(--input); border-radius: var(--sc-control-radius); background: var(--background);
	font-size: 0.875rem; font-weight: 500; color: var(--foreground); cursor: default;
}
html body.sc .ossn-wall-container-data > .ossn-wall-privacy-dummy i { margin: 0 !important; display: inline-flex; color: var(--muted-foreground); }
html body.sc .ossn-wall-container-data > .ossn-wall-privacy-dummy svg { width: var(--sc-icon); height: var(--sc-icon); }

/* larger floating buttons (owner request): chat button 48px with a 20px icon; the phone + button matches and stacks above it,
   and the chat panel opens 8px above the chat button */
body.sc .sc-chat-fab, body.sc .sc-post-fab { width: 3rem; height: 3rem; }
body.sc .sc-chat-fab svg, body.sc .sc-post-fab svg { width: var(--sc-icon-lg); height: var(--sc-icon-lg); }
body.sc .sc-post-fab { bottom: 4.5rem; }
/* Post button uses the secondary style (chat stays primary); border + shadow keep it visible over white content */
body.sc .sc-post-fab { background: var(--secondary); color: var(--secondary-foreground); border: 1px solid var(--border); }
body.sc .sc-post-fab:hover { background: color-mix(in oklch, var(--secondary) 80%, var(--foreground) 6%); }
body.sc .sc-chat-panel { bottom: 4.5rem; height: min(35rem, calc(100vh - 7rem)); }
body.sc .sc-chat-fab-badge { top: -0.25rem; right: -0.25rem; }

/* ===== Reactions (owner preference: no Facebook look) =====
   OSSN's 8 animated yellow faces are redrawn as Lucide line icons: the face markup is hidden and each .emoji--TYPE
   paints its icon through a CSS mask, tinted by type. Same 8 reactions; hover on Like still opens the choices, a plain click Likes. */
html body.sc .emoji {
	width: var(--sc-reaction-size, 1rem) !important; height: var(--sc-reaction-size, 1rem) !important; min-width: 0; padding: 0;
	margin: 0 !important; transform: none !important; animation: none !important; border-radius: 0 !important;
	background: none !important; box-shadow: none !important; display: inline-block; position: relative; vertical-align: middle; flex: 0 0 auto;
	color: var(--sc-reaction-color, currentColor);
}
html body.sc .emoji > * { display: none !important; }
html body.sc .emoji::before {
	content: ""; position: absolute; inset: 0; background: currentColor;
	-webkit-mask: var(--sc-reaction-icon) center / contain no-repeat; mask: var(--sc-reaction-icon) center / contain no-repeat;
}
html body.sc .emoji::after { content: none !important; }
html body.sc .emoji--like { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%2010v12%22%2F%3E%3Cpath%20d%3D%22M15%205.88%2014%2010h5.83a2%202%200%200%201%201.92%202.56l-2.33%208A2%202%200%200%201%2017.5%2022H4a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2.76a2%202%200%200%200%201.79-1.11L12%202a3.13%203.13%200%200%201%203%203.88Z%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: var(--primary); }
html body.sc .emoji--dislike { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M17%2014V2%22%2F%3E%3Cpath%20d%3D%22M9%2018.12%2010%2014H4.17a2%202%200%200%201-1.92-2.56l2.33-8A2%202%200%200%201%206.5%202H20a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202h-2.76a2%202%200%200%200-1.79%201.11L12%2022a3.13%203.13%200%200%201-3-3.88Z%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: var(--muted-foreground); }
html body.sc .emoji--love { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2014c1.49-1.46%203-3.21%203-5.5A5.5%205.5%200%200%200%2016.5%203c-1.76%200-3%20.5-4.5%202-1.5-1.5-2.74-2-4.5-2A5.5%205.5%200%200%200%202%208.5c0%202.3%201.5%204.05%203%205.5l7%207Z%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: oklch(0.645 0.246 16.439); }
html body.sc .emoji--haha { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M18%2013a6%206%200%200%201-6%205%206%206%200%200%201-6-5h12Z%22%2F%3E%3Cline%20x1%3D%229%22%20x2%3D%229.01%22%20y1%3D%229%22%20y2%3D%229%22%2F%3E%3Cline%20x1%3D%2215%22%20x2%3D%2215.01%22%20y1%3D%229%22%20y2%3D%229%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: oklch(0.769 0.188 70.08); }
html body.sc .emoji--yay { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5.8%2011.3%202%2022l10.7-3.79%22%2F%3E%3Cpath%20d%3D%22M4%203h.01%22%2F%3E%3Cpath%20d%3D%22M22%208h.01%22%2F%3E%3Cpath%20d%3D%22M15%202h.01%22%2F%3E%3Cpath%20d%3D%22M22%2020h.01%22%2F%3E%3Cpath%20d%3D%22m22%202-2.24.75a2.9%202.9%200%200%200-1.96%203.12c.1.86-.57%201.63-1.45%201.63h-.38c-.86%200-1.6.6-1.76%201.44L14%2010%22%2F%3E%3Cpath%20d%3D%22m22%2013-.82-.33c-.86-.34-1.82.2-1.98%201.11c-.11.7-.72%201.22-1.43%201.22H17%22%2F%3E%3Cpath%20d%3D%22m11%202%20.33.82c.34.86-.2%201.82-1.11%201.98C9.52%204.9%209%205.52%209%206.23V7%22%2F%3E%3Cpath%20d%3D%22M11%2013c1.93%201.93%202.83%204.17%202%205-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5%20.83-.83%203.07.07%205%202Z%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: oklch(0.769 0.188 70.08); }
html body.sc .emoji--wow { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2215.5%22%20r%3D%222%22%2F%3E%3Cline%20x1%3D%229%22%20x2%3D%229.01%22%20y1%3D%229%22%20y2%3D%229%22%2F%3E%3Cline%20x1%3D%2215%22%20x2%3D%2215.01%22%20y1%3D%229%22%20y2%3D%229%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: oklch(0.769 0.188 70.08); }
html body.sc .emoji--sad { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M16%2016s-1.5-2-4-2-4%202-4%202%22%2F%3E%3Cline%20x1%3D%229%22%20x2%3D%229.01%22%20y1%3D%229%22%20y2%3D%229%22%2F%3E%3Cline%20x1%3D%2215%22%20x2%3D%2215.01%22%20y1%3D%229%22%20y2%3D%229%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: oklch(0.685 0.169 237.323); }
html body.sc .emoji--angry { --sc-reaction-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M16%2016s-1.5-2-4-2-4%202-4%202%22%2F%3E%3Cpath%20d%3D%22M7.5%208%2010%209%22%2F%3E%3Cpath%20d%3D%22m14%209%202.5-1%22%2F%3E%3Cpath%20d%3D%22M9%2010h.01%22%2F%3E%3Cpath%20d%3D%22M15%2010h.01%22%2F%3E%3C%2Fsvg%3E"); --sc-reaction-color: oklch(0.646 0.222 41.116); }

/* picker: kit popover with 8 ghost icon buttons; icons grey until hovered, then tinted */
html body.sc .ossn-like-reactions-panel {
	display: flex !important; align-items: center; gap: 0.125rem; width: auto !important; height: auto !important; padding: 0.25rem !important;
	margin-top: calc(-2.25rem - 0.75rem - 0.5rem) !important; border-radius: var(--radius) !important;
	background: var(--popover) !important; border: 1px solid var(--sc-card-border) !important;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}
html body.sc .ossn-like-reactions-panel li {
	display: inline-flex !important; align-items: center; justify-content: center; width: 2.25rem !important; height: 2.25rem !important;
	margin: 0 !important; padding: 0 !important; border-radius: var(--radius); list-style: none; cursor: pointer;
	--sc-reaction-size: 1.25rem;
}
html body.sc .ossn-like-reactions-panel li .emoji { color: var(--muted-foreground); transition: color 120ms, transform 120ms; }
html body.sc .ossn-like-reactions-panel li:hover { background: var(--accent); }
html body.sc .ossn-like-reactions-panel li:hover .emoji { color: var(--sc-reaction-color); transform: scale(1.15) !important; }
@media (prefers-reduced-motion: reduce) {
	html body.sc .ossn-like-reactions-panel li .emoji { transition: none; }
	html body.sc .ossn-like-reactions-panel li:hover .emoji { transform: none !important; }
}
/* chosen reaction on the Like button, the reaction stack beside the counts, and the who-reacted list: 16px, tinted */
html body.sc .ossn-reacted-item-icon, html body.sc .ossn-reaction-list li { --sc-reaction-size: 1rem; }
html body.sc .ossn-reaction-list li { display: inline-flex !important; align-items: center; justify-content: center; }
/* the choices sit 8px above what they open from (the post Like button, or the comment for a comment Like), instead of over it */
html body.sc :has(> .ossn-like-reactions-panel) { position: relative; }
html body.sc .ossn-like-reactions-panel { top: auto !important; bottom: calc(100% + 0.5rem) !important; left: 0 !important; margin: 0 !important; }

/* Friend requests dropdown: one row per request = avatar, name, then Deny (destructive ghost) and Confirm (primary).
   OSSN outputs Confirm first; `order` puts Deny on the left. */
html body.sc .notification-friends li { list-style: none; padding: 0.5rem 0.75rem !important; margin: 0 !important; }
html body.sc .notification-friends .ossn-notifications-friends-inner {
	display: flex !important; align-items: center; gap: 0.75rem; position: static !important; min-height: 0 !important; padding: 0 !important;
}
html body.sc .notification-friends .ossn-notifications-friends-inner .image {
	flex: none; float: none !important; margin: 0 !important; width: auto !important;
	/* base CSS made it a 50px table cell with the 40px photo at the top, 5px above the name and buttons */
	display: flex !important; align-items: center; height: auto !important; min-height: 0 !important; padding: 0 !important; line-height: 0;
}
html body.sc .notification-friends .ossn-notifications-friends-inner .image img {
	width: 2.5rem !important; height: 2.5rem !important; border-radius: 999px !important; object-fit: cover; display: block; margin: 0 !important;
}
html body.sc .notification-friends .notfi-meta {
	display: flex !important; align-items: center; gap: 0.75rem; flex: 1 1 auto; min-width: 0;
	position: static !important; float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important;
}
html body.sc .notification-friends .notfi-meta a.user {
	flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-size: 0.875rem; font-weight: 500 !important; color: var(--foreground) !important; margin: 0 !important; padding: 0 !important; display: block;
}
html body.sc .notification-friends .notfi-meta a.user:hover { text-decoration: underline; text-underline-offset: 4px; }
html body.sc .notification-friends .notfi-meta .controls {
	display: flex !important; align-items: center; gap: 0.5rem; flex: none;
	position: static !important; float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important;
}
html body.sc .notification-friends .notfi-meta .controls form { margin: 0 !important; display: block; }
html body.sc .notification-friends .notfi-meta .controls form[id^="remove-friend-"] { order: 1; }
html body.sc .notification-friends .notfi-meta .controls form[id^="add-friend-"] { order: 2; }
html body.sc .notification-friends .notfi-meta .controls .btn {
	height: var(--sc-control-h); padding: 0 var(--sc-control-px) !important; margin: 0 !important;
	font-size: 0.875rem !important; font-weight: 500 !important; border-radius: var(--sc-control-radius) !important; box-shadow: none !important;
}
/* Deny: destructive ghost */
html body.sc .notification-friends .notfi-meta .controls form[id^="remove-friend-"] .btn {
	background: transparent !important; border: 0 !important; color: var(--destructive) !important;
}
html body.sc .notification-friends .notfi-meta .controls form[id^="remove-friend-"] .btn:hover,
html body.sc .notification-friends .notfi-meta .controls form[id^="remove-friend-"] .btn:focus-visible {
	background: color-mix(in oklch, var(--destructive) 10%, transparent) !important;
}

/* Invite people dialog: the search results list sits in the flow (the dialog grows) instead of floating
   over the short dialog, where it was cut off */
body.sc .ossn-message-box .ossn-group-invite-picker .ossn-group-admin-results { position: static !important; max-height: 16rem; overflow-y: auto; margin-top: 0.25rem; box-shadow: none !important; }
body.sc .ossn-message-box .ossn-group-invite-picker .ossn-group-admin-search { width: 100% !important; }
body.sc .ossn-message-box .ossn-group-invite-picker .ossn-group-admin-chips:not(:empty) { margin-bottom: 0.5rem; }

/* Number bubble: group Requests tab (data-count, set in shadcn_group_posts_tab) and the Requests card title */
body.sc .sc-count-badge,
body.sc #group-header-menu a.menu-user-timeline-requests[data-count]::after {
	display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem;
	border-radius: 999px; background: var(--destructive); color: #fff;
	font-size: 0.75rem; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; vertical-align: middle;
}
body.sc #group-header-menu a.menu-user-timeline-requests[data-count]::after { content: attr(data-count); margin-left: 0.375rem; }
body.sc .sc-count-badge { margin-left: 0.375rem; }

/* Group join requests (group/<guid>/requests): Decline is a destructive ghost button on the left, Approve on the right.
   OSSN outputs Approve first; `order` swaps them. */
body.sc .ossn-group-members .user-controls-box:has(a[href*="action/group/member/approve"]) { display: flex; align-items: center; gap: 0.5rem; }
body.sc .ossn-group-members .user-controls-box a[href*="action/group/member/approve"] { order: 2; margin: 0 !important; }
body.sc .ossn-group-members .user-controls-box a[href*="action/group/member/decline"] {
	order: 1; margin: 0 !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important;
	color: var(--destructive) !important;
}
body.sc .ossn-group-members .user-controls-box a[href*="action/group/member/decline"]:hover,
body.sc .ossn-group-members .user-controls-box a[href*="action/group/member/decline"]:focus-visible {
	background: color-mix(in oklch, var(--destructive) 10%, transparent) !important;
}

/* Profile: "Respond to request" menu (someone sent you a friend request) */
body.sc .sc-friend-respond { display: inline-block; }
body.sc .sc-friend-respond > .dropdown-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
body.sc .sc-friend-respond > .dropdown-toggle::after { display: none; }
body.sc .sc-friend-respond .sc-friend-respond-chevron svg { width: 1rem; height: 1rem; opacity: 0.7; }
body.sc .sc-friend-respond .dropdown-item { display: flex; align-items: center; gap: 0.5rem; }
body.sc .sc-friend-respond .dropdown-item svg { width: 1rem; height: 1rem; }
body.sc .sc-friend-respond .dropdown-item.text-danger { color: var(--destructive) !important; }

/* reactions: the reaction you chose (on your Like button) is drawn filled, in its colour (owner request);
   faces become a solid disc with the eyes and mouth cut out */
html body.sc .emoji--like { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22black%22%3E%3Cpath%20d%3D%22M7%2010v12%22%2F%3E%3Cpath%20d%3D%22M15%205.88%2014%2010h5.83a2%202%200%200%201%201.92%202.56l-2.33%208A2%202%200%200%201%2017.5%2022H4a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2.76a2%202%200%200%200%201.79-1.11L12%202a3.13%203.13%200%200%201%203%203.88Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
html body.sc .emoji--dislike { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22black%22%3E%3Cpath%20d%3D%22M17%2014V2%22%2F%3E%3Cpath%20d%3D%22M9%2018.12%2010%2014H4.17a2%202%200%200%201-1.92-2.56l2.33-8A2%202%200%200%201%206.5%202H20a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202h-2.76a2%202%200%200%200-1.79%201.11L12%2022a3.13%203.13%200%200%201-3-3.88Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
html body.sc .emoji--love { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22black%22%20d%3D%22M19%2014c1.49-1.46%203-3.21%203-5.5A5.5%205.5%200%200%200%2016.5%203c-1.76%200-3%20.5-4.5%202-1.5-1.5-2.74-2-4.5-2A5.5%205.5%200%200%200%202%208.5c0%202.3%201.5%204.05%203%205.5l7%207Z%22%2F%3E%3C%2Fsvg%3E"); }
html body.sc .emoji--haha { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cdefs%3E%3Cmask%20id%3D%22m%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3Cg%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M9%209h.01%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M15%209h.01%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M18%2013a6%206%200%200%201-6%205%206%206%200%200%201-6-5h12Z%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2211%22%20fill%3D%22black%22%20mask%3D%22url(%23m)%22%2F%3E%3C%2Fsvg%3E"); }
html body.sc .emoji--yay { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M5.8%2011.3%202%2022l10.7-3.79Z%22%2F%3E%3Cpath%20d%3D%22M4%203h.01%22%2F%3E%3Cpath%20d%3D%22M22%208h.01%22%2F%3E%3Cpath%20d%3D%22M15%202h.01%22%2F%3E%3Cpath%20d%3D%22M22%2020h.01%22%2F%3E%3Cpath%20d%3D%22m22%202-2.24.75a2.9%202.9%200%200%200-1.96%203.12c.1.86-.57%201.63-1.45%201.63h-.38c-.86%200-1.6.6-1.76%201.44L14%2010%22%2F%3E%3Cpath%20d%3D%22m22%2013-.82-.33c-.86-.34-1.82.2-1.98%201.11c-.11.7-.72%201.22-1.43%201.22H17%22%2F%3E%3Cpath%20d%3D%22m11%202%20.33.82c.34.86-.2%201.82-1.11%201.98C9.52%204.9%209%205.52%209%206.23V7%22%2F%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M11%2013c1.93%201.93%202.83%204.17%202%205-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5%20.83-.83%203.07.07%205%202Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
html body.sc .emoji--wow { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cdefs%3E%3Cmask%20id%3D%22m%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3Cg%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M9%209h.01%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M15%209h.01%22%20stroke-width%3D%223%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2215.5%22%20r%3D%222%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2211%22%20fill%3D%22black%22%20mask%3D%22url(%23m)%22%2F%3E%3C%2Fsvg%3E"); }
html body.sc .emoji--sad { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cdefs%3E%3Cmask%20id%3D%22m%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3Cg%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M9%209h.01%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M15%209h.01%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M16%2016s-1.5-2-4-2-4%202-4%202%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2211%22%20fill%3D%22black%22%20mask%3D%22url(%23m)%22%2F%3E%3C%2Fsvg%3E"); }
html body.sc .emoji--angry { --sc-reaction-icon-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cdefs%3E%3Cmask%20id%3D%22m%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3Cg%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M16%2016s-1.5-2-4-2-4%202-4%202%22%2F%3E%3Cpath%20d%3D%22M7.5%208%2010%209%22%2F%3E%3Cpath%20d%3D%22m14%209%202.5-1%22%2F%3E%3Cpath%20d%3D%22M9%2010.5h.01%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M15%2010.5h.01%22%20stroke-width%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2211%22%20fill%3D%22black%22%20mask%3D%22url(%23m)%22%2F%3E%3C%2Fsvg%3E"); }
html body.sc .ossn-reacted-item-icon .emoji::before { -webkit-mask-image: var(--sc-reaction-icon-filled, var(--sc-reaction-icon)); mask-image: var(--sc-reaction-icon-filled, var(--sc-reaction-icon)); }

/* reactions motion (owner: "not smooth"): the choices bar fades and rises in (OSSN rebuilds it on every hover, so it used to
   pop in), the hover highlight and the icon grow on the same 160ms ease-out, and a chosen reaction pops in on the Like button */
@media (prefers-reduced-motion: no-preference) {
	html body.sc .ossn-like-reactions-panel { animation: sc-reactions-in 160ms cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: bottom left; }
	@keyframes sc-reactions-in { from { opacity: 0; transform: translateY(4px) scale(0.96); } to { opacity: 1; transform: none; } }
	html body.sc .ossn-like-reactions-panel li { transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1); }
	html body.sc .ossn-like-reactions-panel li .emoji {
		transition: color 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1) !important;
		will-change: transform; transform-origin: center;
	}
	html body.sc .ossn-reacted-item-icon .emoji { animation: sc-reaction-pop 220ms cubic-bezier(0.34, 1.56, 0.64, 1) both !important; }
	/* the separate scale property, because .emoji pins transform with !important */
	@keyframes sc-reaction-pop { from { scale: 0.5; opacity: 0; } to { scale: 1; opacity: 1; } }
}
 