/* ==================================================================
   Webot Community — social app UI (wbp- namespace)
   Self-contained dark social UI, deliberately independent of theme
   components. Loaded only on the community page.
   Design system: deep charcoal surfaces, scarlet accent, soft elevations.
================================================================== */
.wbp-community {
	--wbpc-bg: #0a0a0c;
	--wbpc-surface: #141418;
	--wbpc-surface2: #1b1b21;
	--wbpc-surface3: #232329;
	--wbpc-line: #26262d;
	--wbpc-line2: #33333c;
	--wbpc-ink: #f5f4f2;
	--wbpc-mute: #a3a09a;
	--wbpc-accent: #e0231f;
	--wbpc-accent2: #ff5a52;
	--wbpc-radius: 18px;
	--wbpc-radius-sm: 12px;
	--wbpc-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
	--wbpc-shadow-lg: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 48px rgba(0, 0, 0, .5);
	--wbpc-grad: linear-gradient(135deg, #ff4b41, #e0231f 55%, #b8170f);
	background: var(--wbpc-bg);
	color: var(--wbpc-ink);
	padding-bottom: 5rem;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* Themed scrollbar + selection for the app document */
html.wbp-app {
	scrollbar-color: #3a3a42 #0a0a0c;
	scrollbar-width: thin;
}
html.wbp-app ::-webkit-scrollbar { width: 10px; height: 10px; }
html.wbp-app ::-webkit-scrollbar-track { background: #0a0a0c; }
html.wbp-app ::-webkit-scrollbar-thumb { background: #2c2c34; border-radius: 8px; border: 2px solid #0a0a0c; }
html.wbp-app ::-webkit-scrollbar-thumb:hover { background: #3d3d47; }
.wbp-community ::selection { background: rgba(224, 35, 31, .35); color: #fff; }

/* Shell centres at the same 1128px cap as .wbp-layout so the app-bar
   content lines up exactly with the feed below it. Horizontal padding
   only — vertical spacing belongs to each bar's own rules. */
.wbp-community .wbp-shell {
	max-width: 1128px;
	margin: 0 auto;
	padding-left: clamp(1.25rem, 3vw, 2rem);
	padding-right: clamp(1.25rem, 3vw, 2rem);
}
.wbp-community [hidden] { display: none !important; }
.wbp-ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Focus rings — visible, on-brand */
.wbp-community :focus-visible {
	outline: 2px solid var(--wbpc-accent2);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ------------------------------------------------------------------
   App bar
------------------------------------------------------------------ */
.wbp-appbar {
	position: sticky; top: var(--webot-header-h, 72px); z-index: 30;
	background: rgba(10, 10, 12, .82);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--wbpc-line);
}
.wbp-appbar::after {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(224, 35, 31, .5), transparent);
	opacity: .6; pointer-events: none;
}
.wbp-appbar__inner { display: flex; align-items: center; gap: .8rem; padding: .85rem clamp(1.25rem, 3vw, 2rem); }
.wbp-appbar__home { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; min-width: 0; }
.wbp-appbar__logo {
	width: 34px; height: 34px; flex: none; display: block;
	border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 14px rgba(224, 35, 31, .35);
	transition: transform .2s ease, box-shadow .2s ease;
}
.wbp-appbar__home:hover .wbp-appbar__logo {
	transform: translateY(-1px) rotate(-3deg);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 20px rgba(224, 35, 31, .5);
}
.wbp-appbar__title {
	font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap;
}
.wbp-appbar__title::after { content: "."; color: var(--wbpc-accent2); }
.wbp-appbar__id { display: none; }
.wbp-appbar__user { margin-left: auto; display: flex; align-items: center; gap: .5rem; position: relative; }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.wbp-btn-fill, .wbp-btn-ghost {
	appearance: none; border: 0; cursor: pointer;
	font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .01em;
	border-radius: 999px; padding: .6rem 1.25rem;
	display: inline-flex; align-items: center; gap: .45rem;
	transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.wbp-btn-fill {
	background: var(--wbpc-grad); color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 18px rgba(224, 35, 31, .3);
}
.wbp-btn-fill:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 26px rgba(224, 35, 31, .42); }
.wbp-btn-fill:active { transform: translateY(0) scale(.98); }
.wbp-btn-ghost { background: transparent; color: var(--wbpc-ink); border: 1px solid var(--wbpc-line2); }
.wbp-btn-ghost:hover { border-color: var(--wbpc-accent); color: var(--wbpc-accent2); background: rgba(224, 35, 31, .06); }
.wbp-btn-fill--ghost {
	background: transparent; color: var(--wbpc-ink); border: 1.5px solid var(--wbpc-line2); box-shadow: none;
}
.wbp-btn-fill--ghost:hover { background: var(--wbpc-surface2); border-color: var(--wbpc-accent); color: var(--wbpc-accent2); transform: none; box-shadow: none; }
.wbp-iconbtn {
	appearance: none; background: transparent; border: 1px solid transparent;
	color: var(--wbpc-mute); border-radius: 10px; width: 36px; height: 36px;
	display: inline-grid; place-items: center; cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.wbp-iconbtn:hover { border-color: var(--wbpc-line2); color: var(--wbpc-ink); background: var(--wbpc-surface2); }
.wbp-linklike {
	appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--wbpc-accent2); font: inherit; font-weight: 700; text-decoration: underline;
	text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.wbp-linklike:hover { color: #fff; }

/* ------------------------------------------------------------------
   Chips & avatars
------------------------------------------------------------------ */
.wbp-chip {
	display: inline-flex; align-items: center; gap: .45rem;
	border: 1px solid var(--wbpc-line2); border-radius: 999px;
	padding: .25rem .7rem .25rem .3rem; font-size: .85rem; font-weight: 600;
	background: rgba(255, 255, 255, .02);
	transition: border-color .2s ease, background .2s ease;
}
.wbp-chip--btn { appearance: none; background: transparent; color: inherit; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.wbp-chip--btn:hover { border-color: var(--wbpc-accent); background: rgba(224, 35, 31, .07); }
.wbp-chip .wbp-ic { width: 15px; height: 15px; color: var(--wbpc-mute); }
.wbp-avatar {
	width: 44px; height: 44px; flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--wbpc-grad);
	color: #fff; font-weight: 800;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset;
}
.wbp-avatar--sm { width: 32px; height: 32px; font-size: .85rem; }
.wbp-avatar--lg { width: 76px; height: 76px; font-size: 1.9rem; box-shadow: 0 0 0 3px #0a0a0c, 0 0 0 5px rgba(224, 35, 31, .5); }
.wbp-avatar--official { background: var(--wbpc-grad); }

/* ------------------------------------------------------------------
   Strips (system notices)
------------------------------------------------------------------ */
.wbp-strip {
	background: linear-gradient(120deg, #2a1516, #1d1214);
	border: 1px solid #4a2020;
	border-radius: var(--wbpc-radius-sm);
	padding: .8rem 1rem; margin: 1.1rem 0 0; font-size: .92rem;
}

/* ------------------------------------------------------------------
   Tabs bar + Create Post (sticky under the app bar)
------------------------------------------------------------------ */
.wbp-tabsbar {
	position: sticky; top: var(--wbp-appbar-h, 61px); z-index: 25;
	display: flex; align-items: center; justify-content: space-between; gap: .8rem;
	background: rgba(10, 10, 12, .9);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	padding: .65rem 0;
	border-bottom: 1px solid var(--wbpc-line);
}
.wbp-tabs { display: flex; gap: .35rem; min-width: 0; }
.wbp-tab {
	appearance: none; background: transparent; border: 0; cursor: pointer;
	color: var(--wbpc-mute); font: inherit; font-weight: 700; font-size: .93rem;
	padding: .45rem 1rem; border-radius: 999px; white-space: nowrap; flex: none;
	transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wbp-tab:hover { color: var(--wbpc-ink); background: var(--wbpc-surface2); }
.wbp-tab.is-active {
	color: #fff; background: var(--wbpc-accent);
	box-shadow: 0 4px 14px rgba(224, 35, 31, .35);
}
.wbp-create {
	appearance: none; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; gap: .45rem; flex: none;
	background: var(--wbpc-grad); color: #fff;
	font: inherit; font-weight: 700; font-size: .9rem;
	border-radius: 999px; padding: .55rem 1.2rem;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 18px rgba(224, 35, 31, .35);
	transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.wbp-create:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 26px rgba(224, 35, 31, .48); filter: brightness(1.05); }
.wbp-create:active { transform: translateY(0) scale(.97); }

/* ------------------------------------------------------------------
   Layout — Reddit-style two columns
------------------------------------------------------------------ */
.wbp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 312px;
	gap: 1.75rem;
	max-width: 1128px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 3vw, 2rem) 4rem;
}
.wbp-main { min-width: 0; padding-top: 1.5rem; }
.wbp-community .wbp-layout:has(> .wbp-main:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 800px; }

/* ------------------------------------------------------------------
   Hero (guests) — the landing moment
------------------------------------------------------------------ */
.wbp-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(600px 220px at 12% -20%, rgba(224, 35, 31, .28), transparent 65%),
		radial-gradient(500px 200px at 95% 130%, rgba(224, 35, 31, .16), transparent 60%),
		var(--wbpc-surface);
	border: 1px solid var(--wbpc-line2);
	border-radius: calc(var(--wbpc-radius) + 4px);
	padding: 1.9rem 1.8rem 1.7rem;
	margin-bottom: 1.5rem;
}
.wbp-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 75%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 75%);
}
.wbp-hero > * { position: relative; }
.wbp-hero__eyebrow {
	display: inline-flex; align-items: center; gap: .45rem;
	margin: 0 0 .8rem; font-size: .74rem; font-weight: 800;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--wbpc-accent2);
	background: rgba(224, 35, 31, .12);
	border: 1px solid rgba(224, 35, 31, .35);
	border-radius: 999px; padding: .3rem .75rem;
}
.wbp-hero h2 {
	margin: 0 0 .5rem; font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.15; letter-spacing: -.02em; font-weight: 800;
}
.wbp-hero__sub { margin: 0 0 1.2rem; color: var(--wbpc-mute); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.wbp-hero__btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.wbp-hero__btns .wbp-btn-fill { padding: .7rem 1.5rem; font-size: .95rem; }
.wbp-hero__alt { margin: .9rem 0 0; font-size: .85rem; color: var(--wbpc-mute); }

/* ------------------------------------------------------------------
   Stream & cards
------------------------------------------------------------------ */
.wbp-stream { display: grid; gap: 1.1rem; }
.wbp-card {
	background: var(--wbpc-surface);
	border: 1px solid var(--wbpc-line);
	border-radius: var(--wbpc-radius);
	overflow: hidden;
	box-shadow: var(--wbpc-shadow);
	transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
	animation: wbp-rise .35s ease both;
}
.wbp-card:hover {
	border-color: var(--wbpc-line2);
	transform: translateY(-2px);
	box-shadow: var(--wbpc-shadow-lg);
}
@keyframes wbp-rise { from { opacity: 0; transform: translateY(8px); } }
.wbp-card--official {
	border-color: rgba(224, 35, 31, .55);
	background:
		linear-gradient(180deg, rgba(224, 35, 31, .07), transparent 32%),
		var(--wbpc-surface);
}
.wbp-card__head { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem .5rem; }
.wbp-card__meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.wbp-card__meta strong { font-size: .93rem; }
.wbp-card__meta time { font-size: .77rem; color: var(--wbpc-mute); }
.wbp-card__badge {
	margin-left: auto; flex: none;
	font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
	color: var(--wbpc-mute);
	border: 1px solid var(--wbpc-line2); border-radius: 999px; padding: .22rem .65rem;
}
.wbp-card__badge--official {
	color: #fff; background: var(--wbpc-grad); border-color: transparent;
	box-shadow: 0 2px 10px rgba(224, 35, 31, .4);
}
.wbp-card__title { margin: .1rem 1.1rem .4rem; font-size: 1.12rem; line-height: 1.35; letter-spacing: -.01em; }
.wbp-card__title a { color: var(--wbpc-ink); text-decoration: none; transition: color .15s ease; }
.wbp-card__title a:hover { color: var(--wbpc-accent2); }
.wbp-card__title--single { font-size: 1.5rem; margin: .35rem 1.1rem .5rem; }
.wbp-card__byline { font-size: .88rem; color: var(--wbpc-mute); }
.wbp-card__byline a { color: var(--wbpc-ink); font-weight: 700; text-decoration: none; }
.wbp-card__byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wbp-card__ava { text-decoration: none; border-radius: 50%; transition: transform .15s ease; }
.wbp-card__ava:hover { transform: scale(1.06); }
.wbp-card__head .wbp-card__badge { margin-left: auto; }
.wbp-card__head .wbp-more-btn { margin-left: .35rem; }
.wbp-card__body { padding: .25rem 1.1rem .85rem; font-size: .97rem; line-height: 1.62; overflow-wrap: anywhere; color: #dcdad6; }
.wbp-card__body p { margin: 0 0 .6rem; }
.wbp-card__body p:last-child { margin-bottom: 0; }
.wbp-card__body a { color: var(--wbpc-accent2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.wbp-card__foot {
	display: flex; align-items: center; gap: .3rem;
	padding: .45rem .7rem; border-top: 1px solid var(--wbpc-line);
	background: rgba(255, 255, 255, .012);
}
.wbp-act {
	appearance: none; background: transparent; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; gap: .4rem;
	color: var(--wbpc-mute); font: inherit; font-size: .85rem; font-weight: 600;
	padding: .45rem .75rem; border-radius: 999px;
	transition: background .2s ease, color .2s ease;
}
.wbp-act:hover { background: var(--wbpc-surface3); color: var(--wbpc-ink); }
.wbp-act.is-liked { color: var(--wbpc-accent2); }
.wbp-act.is-liked .wbp-ic { fill: currentColor; animation: wbp-pop-ic .28s ease; }
@keyframes wbp-pop-ic { 40% { transform: scale(1.35); } }
.wbp-act .wbp-ic { width: 17px; height: 17px; }
.wbp-acts { margin-left: auto; display: flex; gap: .1rem; }
.wbp-card__foot .wbp-acts { margin-left: 0; }
.wbp-act--share { margin-left: auto; }

/* Media, link cards, PDF cards */
.wbp-media { margin: 0; border-top: 1px solid var(--wbpc-line); }
.wbp-media img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.wbp-media--video { aspect-ratio: 16 / 9; position: relative; }
.wbp-media--video iframe, .wbp-media--video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wbp-linkcard {
	display: block; border-top: 1px solid var(--wbpc-line); padding: 1rem 1.1rem;
	text-decoration: none; color: inherit; transition: background .2s ease;
}
.wbp-linkcard:hover { background: var(--wbpc-surface2); }
.wbp-linkcard__host { display: block; font-size: .74rem; color: var(--wbpc-mute); text-transform: uppercase; letter-spacing: .07em; }
.wbp-linkcard__title { display: block; margin-top: .25rem; font-weight: 600; color: var(--wbpc-accent2); }
.wbp-doccard {
	display: flex; align-items: center; gap: .85rem; border-top: 1px solid var(--wbpc-line);
	padding: 1rem 1.1rem; text-decoration: none; color: inherit; transition: background .2s ease;
}
.wbp-doccard:hover { background: var(--wbpc-surface2); }
.wbp-doccard__badge {
	flex: none; width: 44px; height: 44px; display: grid; place-items: center;
	background: rgba(224, 35, 31, .12); color: var(--wbpc-accent2);
	border: 1px solid rgba(224, 35, 31, .3);
	border-radius: 12px; font-weight: 800; font-size: .8rem;
}
.wbp-doccard__name { font-weight: 600; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------
   ⋯ menus
------------------------------------------------------------------ */
.wbp-more-btn {
	appearance: none; background: transparent; border: 0; cursor: pointer;
	color: var(--wbpc-mute); width: 32px; height: 32px; border-radius: 50%;
	display: inline-grid; place-items: center; margin-left: auto; flex: none;
	transition: background .2s ease, color .2s ease;
}
.wbp-more-btn:hover { background: var(--wbpc-surface3); color: var(--wbpc-ink); }
.wbp-more-btn--bar { color: var(--wbpc-ink); }
.wbp-card { position: relative; }
.wbp-card .wbp-menu { right: .6rem; top: 2.4rem; }
.wbp-menu {
	position: absolute; right: 0; top: calc(100% + 6px);
	min-width: 208px; z-index: 60;
	background: #1d1d23; border: 1px solid var(--wbpc-line2); border-radius: 14px;
	box-shadow: 0 16px 44px rgba(0, 0, 0, .55);
	padding: .4rem;
	animation: wbp-menu-in .14s ease-out;
}
@keyframes wbp-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.wbp-menu__item {
	display: block; width: 100%; text-align: left;
	appearance: none; background: none; border: 0; cursor: pointer;
	color: var(--wbpc-ink); font: inherit; font-size: .88rem; font-weight: 600;
	padding: .55rem .75rem; border-radius: 9px; text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.wbp-menu__item:hover { background: var(--wbpc-surface3); color: var(--wbpc-accent2); }
.wbp-menu__item--danger:hover { background: #3a1512; color: #ff8a84; }
.wbp-menu__sep { border: 0; border-top: 1px solid var(--wbpc-line); margin: .35rem 0; }

/* ------------------------------------------------------------------
   Modals
------------------------------------------------------------------ */
.wbp-modal {
	position: fixed; inset: 0; z-index: 100;
	display: grid; place-items: center; padding: 1.25rem;
	background: rgba(4, 4, 6, .7);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: wbp-fade .2s ease-out;
}
@keyframes wbp-fade { from { opacity: 0; } }
.wbp-modal[hidden] { display: none; }
.wbp-modal__box {
	width: 100%; max-width: 560px; max-height: 90vh; overflow: auto;
	background: var(--wbpc-surface); color: var(--wbpc-ink);
	border: 1px solid var(--wbpc-line2); border-radius: 22px;
	box-shadow: var(--wbpc-shadow-lg);
	animation: wbp-pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes wbp-pop { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.wbp-modal__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--wbpc-line);
}
.wbp-modal__head h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.wbp-modal__me { display: flex; align-items: center; gap: .6rem; padding: 1.05rem 1.2rem 0; font-size: .95rem; }
.wbp-modal form { display: grid; gap: .95rem; padding: .95rem 1.2rem 1.2rem; }
.wbp-modal textarea {
	width: 100%; min-height: 120px; resize: vertical;
	background: var(--wbpc-surface2); border: 1px solid var(--wbpc-line2); border-radius: 14px;
	color: var(--wbpc-ink); font: inherit; padding: .85rem .95rem; line-height: 1.55;
	transition: border-color .2s ease, background .2s ease;
}
.wbp-modal textarea:focus, .wbp-modal input:focus { outline: none; border-color: var(--wbpc-accent); box-shadow: 0 0 0 3px rgba(224, 35, 31, .18); }
.wbp-types { display: flex; flex-wrap: wrap; gap: .45rem; }
.wbp-type { position: relative; }
.wbp-type input { position: absolute; opacity: 0; pointer-events: none; }
.wbp-type span {
	display: inline-flex; align-items: center; gap: .4rem;
	border: 1px solid var(--wbpc-line2); border-radius: 999px;
	padding: .45rem .9rem; font-size: .85rem; font-weight: 600; cursor: pointer;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.wbp-type span:hover { border-color: var(--wbpc-accent); color: var(--wbpc-accent2); }
.wbp-type input:checked + span { background: rgba(224, 35, 31, .14); border-color: var(--wbpc-accent); color: var(--wbpc-accent2); }
.wbp-type input:focus-visible + span { outline: 2px solid var(--wbpc-accent); outline-offset: 2px; }
.wbp-panel { display: grid; gap: .6rem; }
.wbp-panel[hidden] { display: none; }
.wbp-field, .wbp-file { display: grid; gap: .35rem; font-size: .85rem; color: var(--wbpc-mute); }
.wbp-field input {
	background: var(--wbpc-surface2); border: 1px solid var(--wbpc-line2); border-radius: 12px;
	color: var(--wbpc-ink); font: inherit; padding: .7rem .85rem;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.wbp-field input:focus { outline: none; border-color: var(--wbpc-accent); box-shadow: 0 0 0 3px rgba(224, 35, 31, .18); }
.wbp-file {
	position: relative; border: 1.5px dashed var(--wbpc-line2); border-radius: 14px;
	padding: 1.15rem; text-align: center; cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}
.wbp-file:hover { border-color: var(--wbpc-accent); background: rgba(224, 35, 31, .05); }
.wbp-file .wbp-ic { margin: 0 auto .35rem; display: block; width: 22px; height: 22px; color: var(--wbpc-accent2); }
.wbp-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wbp-official { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.wbp-official input { accent-color: var(--wbpc-accent); width: 16px; height: 16px; }
.wbp-modal__foot { display: flex; align-items: center; gap: .8rem; }
.wbp-modal__foot .wbp-note { margin: 0; flex: 1; font-size: .82rem; color: var(--wbpc-mute); }
.wbp-count-char { font-size: .75rem; color: var(--wbpc-mute); font-variant-numeric: tabular-nums; }
.wbp-composer-note {
	display: flex; gap: .5rem; align-items: flex-start;
	font-size: .78rem; color: var(--wbpc-mute); line-height: 1.55;
	background: var(--wbpc-surface2); border: 1px solid var(--wbpc-line);
	border-radius: 12px; padding: .65rem .75rem; margin: .6rem 0 0;
}
.wbp-composer-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; stroke: var(--wbpc-accent2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------
   Auth modal
------------------------------------------------------------------ */
.wbp-authtabs { display: flex; gap: .45rem; padding: 1rem 1.2rem 0; }
.wbp-authtab {
	appearance: none; border: 1px solid var(--wbpc-line2); background: transparent; cursor: pointer;
	color: var(--wbpc-mute); font: inherit; font-weight: 700; font-size: .88rem;
	border-radius: 999px; padding: .5rem 1.2rem; flex: 1;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.wbp-authtab:hover { color: var(--wbpc-ink); }
.wbp-authtab.is-active {
	color: #fff; background: var(--wbpc-grad); border-color: transparent;
	box-shadow: 0 4px 14px rgba(224, 35, 31, .3);
}
.wbp-authform { display: grid; gap: .85rem; }
.wbp-authform[hidden] { display: none; }
.wbp-authform label { display: grid; gap: .35rem; font-size: .85rem; color: var(--wbpc-mute); }
.wbp-authform input {
	background: var(--wbpc-surface2); border: 1px solid var(--wbpc-line2); border-radius: 12px;
	color: var(--wbpc-ink); font: inherit; padding: .75rem .9rem;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.wbp-authform input:focus { outline: none; border-color: var(--wbpc-accent); box-shadow: 0 0 0 3px rgba(224, 35, 31, .18); }
.wbp-authfine { margin: 0; font-size: .78rem; color: var(--wbpc-mute); text-align: center; line-height: 1.6; }
.wbp-authfine .wbp-linklike { font-size: inherit; }

/* ------------------------------------------------------------------
   Comments
------------------------------------------------------------------ */
.wbp-comments { border-top: 1px solid var(--wbpc-line); padding: .85rem 1.1rem; display: grid; gap: .7rem; background: rgba(255, 255, 255, .012); }
.wbp-comments[hidden] { display: none; }
.wbp-commentlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.wbp-commentlist--replies { margin-top: .6rem; padding-left: 1.1rem; border-left: 2px solid var(--wbpc-line2); }
.wbp-comment { display: grid; gap: .15rem; position: relative; }
.wbp-comment__top { display: flex; align-items: center; gap: .4rem; }
.wbp-comment .wbp-menu { right: 0; top: 1.6rem; }
.wbp-comment strong { font-size: .85rem; }
.wbp-comment__body { font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; color: #dcdad6; }
.wbp-comment__meta { display: flex; align-items: center; gap: .7rem; font-size: .75rem; color: var(--wbpc-mute); }
.wbp-reply-btn { appearance: none; background: none; border: 0; padding: 0; color: var(--wbpc-mute); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.wbp-reply-btn:hover { color: var(--wbpc-accent2); }
.wbp-cform { display: grid; gap: .5rem; }
.wbp-cform textarea {
	width: 100%; background: var(--wbpc-surface2); border: 1px solid var(--wbpc-line2); border-radius: 12px;
	color: var(--wbpc-ink); font: inherit; padding: .65rem .8rem; min-height: 60px; resize: vertical;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.wbp-cform textarea:focus { outline: none; border-color: var(--wbpc-accent); box-shadow: 0 0 0 3px rgba(224, 35, 31, .18); }
.wbp-cform .wbp-btn-fill { justify-self: start; padding: .5rem 1.1rem; font-size: .82rem; }
.wbp-note { font-size: .82rem; color: var(--wbpc-mute); margin: 0; }
.wbp-locked { text-align: center; padding: .7rem 1rem; color: var(--wbpc-mute); font-size: .85rem; border-top: 1px solid var(--wbpc-line); }
.wbp-locked a { color: var(--wbpc-accent2); font-weight: 700; }

/* ------------------------------------------------------------------
   Empty states
------------------------------------------------------------------ */
.wbp-empty {
	text-align: center;
	border: 1px dashed var(--wbpc-line2); border-radius: var(--wbpc-radius);
	padding: 3rem 1.5rem; margin: 0;
	background: rgba(255, 255, 255, .01);
}
.wbp-empty__icon {
	display: inline-grid; place-items: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(224, 35, 31, .1); border: 1px solid rgba(224, 35, 31, .3);
	color: var(--wbpc-accent2); margin-bottom: .9rem;
}
.wbp-empty__icon .wbp-ic { width: 26px; height: 26px; }
.wbp-empty__title { margin: 0 0 .3rem; font-size: 1.1rem; letter-spacing: -.01em; }
.wbp-empty__text { margin: 0 auto; max-width: 42ch; color: var(--wbpc-mute); font-size: .92rem; line-height: 1.6; }
.wbp-empty__cta { margin-top: 1.1rem; }

/* Load more + back nav */
.wbp-more { text-align: center; padding: 1.6rem 0 .5rem; }
.wbp-more .wbp-btn-ghost { padding: .65rem 1.6rem; }
.wbp-backnav { margin-top: 1.4rem; }

/* ------------------------------------------------------------------
   Profile
------------------------------------------------------------------ */
.wbp-profilehead {
	display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
	background:
		radial-gradient(420px 160px at 0% -30%, rgba(224, 35, 31, .22), transparent 65%),
		var(--wbpc-surface);
	border: 1px solid var(--wbpc-line2); border-radius: var(--wbpc-radius);
	padding: 1.5rem; margin-bottom: 1.25rem;
}
.wbp-profilehead__id h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.01em; }
.wbp-profilehead__id p { margin: .2rem 0 0; color: var(--wbpc-mute); font-size: .88rem; }
.wbp-profilehead__bio { margin-top: .45rem !important; color: var(--wbpc-ink) !important; max-width: 60ch; }
.wbp-profilehead__edit { margin-left: auto; }
.wbp-profiletabs {
	display: flex; gap: .25rem; border-bottom: 1px solid var(--wbpc-line);
	margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none;
}
.wbp-profiletabs::-webkit-scrollbar { display: none; }
.wbp-ptab {
	appearance: none; background: none; border: 0; cursor: pointer;
	color: var(--wbpc-mute); font: inherit; font-weight: 700; font-size: .92rem;
	padding: .75rem 1.05rem; text-decoration: none; border-bottom: 2px solid transparent;
	white-space: nowrap; transition: color .2s ease, border-color .2s ease;
}
.wbp-ptab:hover { color: var(--wbpc-ink); }
.wbp-ptab.is-active { color: var(--wbpc-ink); border-bottom-color: var(--wbpc-accent); }
.wbp-settings { padding: 1.4rem; display: grid; gap: 1.05rem; }
.wbp-settings__title { margin: 0; font-size: 1.1rem; }
.wbp-card--mini { padding-bottom: .25rem; }

/* ------------------------------------------------------------------
   Sidebar — sticky right rail
------------------------------------------------------------------ */
.wbp-side { display: grid; gap: 1.1rem; align-content: start; padding-top: 1.5rem; }
@media (min-width: 901px) {
	.wbp-side { position: sticky; top: calc(var(--wbp-appbar-h, 61px) + 76px); align-self: start; }
}
.wbp-sidecard {
	background: var(--wbpc-surface);
	border: 1px solid var(--wbpc-line);
	border-radius: var(--wbpc-radius);
	padding: 1.15rem 1.25rem;
	box-shadow: var(--wbpc-shadow);
}
.wbp-sidecard h3 {
	margin: 0 0 .6rem; font-size: .8rem; text-transform: uppercase;
	letter-spacing: .09em; color: var(--wbpc-mute);
	display: flex; align-items: center; gap: .5rem;
}
.wbp-sidecard h3::before {
	content: ""; width: 3px; height: 14px; border-radius: 2px;
	background: var(--wbpc-accent); flex: none;
}
.wbp-sidecard p { margin: 0 0 .8rem; font-size: .9rem; line-height: 1.6; color: #d6d4d0; }
.wbp-sidecard__stats { display: grid; gap: .55rem; margin: .85rem 0 1.1rem; }
.wbp-sidecard__stats div { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; }
.wbp-sidecard__stats dt { color: var(--wbpc-mute); }
.wbp-sidecard__stats dd { margin: 0; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.wbp-sidecard__cta { width: 100%; justify-content: center; }
.wbp-sidecard--rules ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
.wbp-sidecard--rules li { font-size: .86rem; color: var(--wbpc-ink); line-height: 1.5; }
.wbp-sidecard--rules li::marker { color: var(--wbpc-accent2); font-weight: 800; }
.wbp-sidecard--spam ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.wbp-sidecard--spam li { font-size: .84rem; color: var(--wbpc-ink); line-height: 1.5; display: flex; gap: .55rem; }
.wbp-sidecard--spam li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; stroke: var(--wbpc-accent2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wbp-sidecard--spam .wbp-sidecard__fine { margin: .8rem 0 0; font-size: .74rem; color: var(--wbpc-mute); line-height: 1.55; }

/* Body scroll lock while a modal is open */
body.wbp-no-scroll { overflow: hidden; }

/* ------------------------------------------------------------------
   Standalone app document — the page IS the app
------------------------------------------------------------------ */
body.wbp-standalone { margin: 0; background: #0a0a0c; }
body.wbp-standalone #page,
body.wbp-standalone .webot-progress,
body.wbp-standalone .webot-mobile-cta,
body.wbp-standalone .webot-backtotop { display: none !important; }
body.wbp-standalone .wbp-community { min-height: 100vh; }
body.wbp-standalone .wbp-appbar { top: 0; }
body.wbp-standalone .wbp-tabsbar { top: var(--wbp-appbar-h, 60px); }

/* Hard reset — admin-bar bumps and theme html margins must never push
   the app down or show through sticky bars. */
html.wbp-app, html.wbp-app body { margin: 0 !important; padding-top: 0 !important; }
html.wbp-app #wpadminbar { display: none !important; }
html.wbp-app #webot-progress, html.wbp-app .webot-progress { display: none !important; }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 900px) {
	.wbp-layout { grid-template-columns: 1fr; gap: 0; padding: 0 1rem 3.5rem; } /* keep 1rem on small screens */
	.wbp-side { order: 2; padding-top: 1.5rem; }
	.wbp-main { padding-top: 1.25rem; }
}

@media (max-width: 640px) {
	.wbp-appbar__inner { padding: .75rem 1rem; }
	.wbp-appbar__logo { width: 30px; height: 30px; }
	.wbp-appbar__title { font-size: .95rem; }
	.wbp-chip__name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

	/* 40–44px tap targets, not oversized pills */
	.wbp-btn-fill, .wbp-btn-ghost { padding: .5rem 1.05rem; font-size: .875rem; }
	.wbp-create { padding: .45rem .9rem; font-size: .85rem; box-shadow: none; }
	.wbp-create .wbp-ic { width: 15px; height: 15px; }
	.wbp-chip { padding: .2rem .55rem .2rem .25rem; }
	.wbp-chip .wbp-avatar--sm { width: 28px; height: 28px; }
	.wbp-iconbtn { width: 38px; height: 38px; }

	.wbp-tab { padding: .4rem .8rem; font-size: .875rem; }
	.wbp-tabsbar { padding: .55rem 0; top: var(--wbp-appbar-h, 58px); }
	.wbp-create { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
	.wbp-create span { display: none; }
	.wbp-create .wbp-ic { width: 20px; height: 20px; }

	.wbp-hero { padding: 1.3rem 1.1rem 1.2rem; }
	.wbp-hero h2 { font-size: 1.3rem; }
	.wbp-hero__btns .wbp-btn-fill { width: 100%; justify-content: center; }

	.wbp-card__head { padding: .8rem .85rem .4rem; gap: .6rem; }
	.wbp-card__title { margin: .05rem .85rem .35rem; font-size: 1.02rem; }
	.wbp-card__title--single { font-size: 1.22rem; }
	.wbp-card__body { padding: .2rem .85rem .7rem; font-size: .93rem; }
	.wbp-card__foot { padding: .3rem .45rem; }
	.wbp-act { padding: .5rem .6rem; font-size: .8rem; }
	.wbp-act .wbp-ic { width: 16px; height: 16px; }
	.wbp-media img { max-height: 420px; }

	.wbp-sidecard { padding: 1rem; }
	.wbp-sidecard h3 { font-size: .78rem; }

	.wbp-modal { padding: 0; align-items: end; }
	.wbp-modal__box { border-radius: 20px 20px 0 0; max-height: 94vh; }
	.wbp-modal form { padding: .85rem 1rem 1.05rem; }
	.wbp-modal .wbp-btn-fill { width: 100%; justify-content: center; }
	.wbp-modal__foot { flex-wrap: wrap; }
	.wbp-modal__foot .wbp-btn-fill { width: auto; }

	.wbp-profilehead { padding: 1.15rem; }
	.wbp-profilehead__edit { margin-left: 0; width: 100%; justify-content: center; }
	.wbp-empty { padding: 2.2rem 1.1rem; }
	.wbp-cform textarea { min-height: 54px; }
}

/* ------------------------------------------------------------------
   Reduced motion
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.wbp-card, .wbp-modal, .wbp-modal__box, .wbp-menu { animation: none !important; }
	.wbp-btn-fill:hover, .wbp-create:hover, .wbp-card:hover { transform: none; }
	.wbp-act.is-liked .wbp-ic { animation: none; }
}

/* ==================================================================
   Join-form consent checkbox + in-app privacy tools
================================================================== */
.wbp-privacy {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	margin: .35rem 0 .9rem;
	padding: .7rem .8rem;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 10px;
	background: rgba(255, 255, 255, .03);
	font-size: .82rem;
	line-height: 1.45;
	color: var(--wbpc-text-dim, #b9b4ae);
	cursor: pointer;
}
.wbp-privacy input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	border: 2px solid rgba(255, 255, 255, .35);
	border-radius: 5px;
	background: transparent;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
	position: relative;
}
.wbp-privacy input[type="checkbox"]:hover { border-color: var(--wbpc-accent, #e0231f); }
.wbp-privacy input[type="checkbox"]:checked {
	background: var(--wbpc-accent, #e0231f);
	border-color: var(--wbpc-accent, #e0231f);
}
.wbp-privacy input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.wbp-privacy input[type="checkbox"]:focus-visible { outline: 2px solid var(--wbpc-accent, #e0231f); outline-offset: 2px; }
.wbp-privacy a { color: var(--wbpc-accent, #e0231f); text-decoration: underline; text-underline-offset: 2px; }

.wbp-settings--privacy { margin-top: 1rem; }
.wbp-settings__hint { margin: -0.35rem 0 1rem; font-size: .85rem; line-height: 1.5; color: var(--wbpc-text-dim, #b9b4ae); }
.wbp-settings__hint a { color: var(--wbpc-accent, #e0231f); text-underline-offset: 2px; }

/* Compact variant of the shared privacy-tools panel (community context). */
.wbp-settings--privacy .webot-privacy-tools {
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	background: transparent;
}
.wbp-settings--privacy .webot-privacy-tools .webot-btn {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .6rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .05);
	color: var(--wbpc-text, #f5f4f2);
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.wbp-settings--privacy .webot-privacy-tools .webot-btn:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .3);
	transform: translateY(-1px);
}
.wbp-settings--privacy .webot-privacy-tools .webot-btn--danger {
	border-color: rgba(224, 35, 31, .55);
	color: #ff8d87;
}
.wbp-settings--privacy .webot-privacy-tools .webot-btn--danger:hover {
	background: var(--wbpc-accent, #e0231f);
	border-color: var(--wbpc-accent, #e0231f);
	color: #fff;
}
.wbp-settings--privacy .webot-privacy-tools__note { min-height: 1.2em; margin: .6rem 0 0; font-size: .85rem; color: #ff8d87; font-weight: 600; }

/* ==================================================================
   OTP verification pane (email code on signup)
================================================================== */
.wbp-verifylede {
	margin: 0 0 1rem;
	font-size: .92rem;
	line-height: 1.55;
	color: var(--wbpc-text-dim, #b9b4ae);
	display: flex;
	gap: .6rem;
	align-items: flex-start;
}
.wbp-verifylede__ic { width: 22px; height: 22px; color: var(--wbpc-accent, #e0231f); margin-top: 1px; }
.wbp-verifylede strong { color: var(--wbpc-text, #f5f4f2); word-break: break-all; }
.wbp-verifytips { margin: 0 0 .5rem; padding-left: calc(22px + .6rem); font-size: .82rem; color: var(--wbpc-mute, #8a857e); }
.wbp-authform--verify input.wbp-otp {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: .55em;
	text-indent: .55em; /* recenters the digit run */
	text-align: center;
	padding: .8rem .5rem;
}
.wbp-visuallyhidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}
.wbp-authform--resend { margin-top: 0; }
.wbp-verifyfine { margin: -.4rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
	.wbp-authform--verify input.wbp-otp:focus { animation: wbp-otp-pop .18s ease; }
	@keyframes wbp-otp-pop {
		from { transform: scale(.985); }
		to { transform: scale(1); }
	}
}
