/* ==========================================================================
   Advanced community: discussions & members
   ========================================================================== */
.ha-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.ha-topic {
	display: block; padding: 18px 20px; border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm); background: var(--ha-card);
	box-shadow: var(--ha-shadow); text-decoration: none; color: inherit;
	transition: transform .2s var(--ha-ease), border-color .2s;
}
.ha-topic:hover { transform: translateY(-3px); border-color: var(--ha-primary); }
.ha-topic h4 { margin: 0 0 8px; font-family: var(--ha-font-heading); font-size: 1rem; }
.ha-topic p { margin: 0 0 12px; color: var(--ha-muted); font-size: .86rem; line-height: 1.7; }
.ha-topic__meta { color: var(--ha-primary); font-size: .76rem; font-weight: 700; }
.ha-topic--single { padding: 22px; border: 1px solid var(--ha-border); border-radius: var(--ha-radius); background: var(--ha-card); margin-bottom: 20px; }
.ha-topic__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ha-topic__head h3 { margin: 0; font-family: var(--ha-font-heading); }
.ha-topic__body { margin-top: 14px; line-height: 1.9; }
.ha-topic__author { color: var(--ha-muted); font-size: .8rem; }
.ha-topic__replies { display: grid; gap: 10px; margin-top: 18px; }
.ha-topic__reply { padding: 14px 16px; border-inline-start: 3px solid var(--ha-primary); background: var(--ha-surface); border-radius: 0 10px 10px 0; }
.ha-topic__reply small { color: var(--ha-muted); }
.ha-topic__reply p { margin: 5px 0 0; }
.ha-topic__form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ha-border); }
.ha-topic__new h3 { margin-bottom: 14px; }
.ha-community-members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ha-member { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--ha-border); border-radius: var(--ha-radius-sm); background: var(--ha-card); box-shadow: var(--ha-shadow); }
.ha-member__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ha-primary-soft); color: var(--ha-primary); font-weight: 800; flex: 0 0 auto; }
.ha-member strong { display: block; font-size: .9rem; }
.ha-member span { display: block; color: var(--ha-muted); font-size: .76rem; }
@media (max-width: 900px) { .ha-topic-grid { grid-template-columns: 1fr; } .ha-community-members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ha-community-members { grid-template-columns: 1fr; } }

/* ==========================================================================
   Community feed — social style posts, following, profiles
   ========================================================================== */
.ha-feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ha-feed-main { min-width: 0; }
.ha-feed-side { min-width: 0; display: grid; gap: 16px; position: sticky; top: calc(var(--ha-header-h) + 16px); }
.ha-feed-composer { padding: 16px; margin-bottom: 16px; }
.ha-feed-composer textarea { width: 100%; min-height: 90px; resize: vertical; }
.ha-feed-composer__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ha-feed-composer__upload { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--ha-muted); cursor: pointer; }
.ha-feed-composer__upload input { max-width: 170px; font-size: .75rem; }
.ha-feed-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-block-end: 1px solid var(--ha-border); }
.ha-feed-tabs a { padding: 10px 18px; font-weight: 800; color: var(--ha-muted); text-decoration: none; border-block-end: 2px solid transparent; }
.ha-feed-tabs a.is-active { color: var(--ha-primary); border-block-end-color: var(--ha-primary); }
.ha-feed-card { padding: 18px; margin-bottom: 14px; border: 1px solid var(--ha-border); background: var(--ha-card); }
.ha-feed-card__head { display: flex; align-items: center; gap: 12px; }
.ha-feed-avatar { flex: none; line-height: 0; }
.ha-feed-avatar img { width: 44px; height: 44px; object-fit: cover; }
.ha-feed-card__who { min-width: 0; flex: 1 1 auto; }
.ha-feed-card__name { display: block; font-weight: 800; color: var(--ha-ink); text-decoration: none; }
.ha-feed-card__name:hover { color: var(--ha-primary); }
.ha-feed-card__date { display: block; font-size: .74rem; color: var(--ha-muted); }
.ha-feed-card__follow { flex: none; }
.ha-btn--sm { font-size: .78rem; padding: 7px 14px; }
.ha-feed-card__body { margin-block: 14px 10px; line-height: 1.9; }
.ha-feed-card__body p { margin: 0 0 8px; }
.ha-feed-card__image { display: block; margin-block: 10px; }
.ha-feed-card__image img { width: 100%; max-height: 480px; object-fit: cover; }
.ha-feed-card__actions { display: flex; align-items: center; gap: 18px; padding-block: 10px; border-block-start: 1px solid var(--ha-border); border-block-end: 1px solid var(--ha-border); }
.ha-feed-action { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font-family: var(--ha-font-button); font-size: .84rem; font-weight: 700; color: var(--ha-muted); cursor: pointer; padding: 4px 0; }
.ha-feed-action.is-active, .ha-feed-action:hover { color: var(--ha-primary); }
.ha-feed-card__replies { display: grid; gap: 8px; margin-top: 12px; }
.ha-feed-reply { padding: 10px 14px; background: var(--ha-surface); font-size: .88rem; }
.ha-feed-reply strong { color: var(--ha-primary); }
.ha-feed-reply span { font-size: .7rem; color: var(--ha-muted); margin-inline-start: 8px; }
.ha-feed-reply p { margin: 4px 0 0; }
.ha-feed-card__reply-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ha-feed-card__reply-form textarea { flex: 1 1 200px; min-height: 42px; }
.ha-feed-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.ha-feed-pagination a, .ha-feed-pagination span { min-width: 36px; padding: 7px 10px; text-align: center; color: var(--ha-muted); text-decoration: none; }
.ha-feed-pagination .current { background: var(--ha-primary); color: #fff; }
.ha-feed-profile { padding: 20px; text-align: center; }
.ha-feed-profile__avatar img { width: 84px; height: 84px; object-fit: cover; margin-inline: auto; }
.ha-feed-profile__name { margin: 12px 0 4px; font-size: 1.05rem; }
.ha-feed-profile__bio { color: var(--ha-muted); font-size: .84rem; }
.ha-feed-profile__stats { display: flex; justify-content: space-around; gap: 8px; margin-block: 18px 14px; }
.ha-feed-profile__stats span { display: flex; flex-direction: column; font-size: .72rem; color: var(--ha-muted); }
.ha-feed-profile__stats strong { font-size: 1rem; color: var(--ha-ink); }
.ha-feed-profile__edit { display: inline-block; margin-top: 10px; font-size: .78rem; color: var(--ha-primary); }
.ha-feed-side-title { margin: 6px 0 0; font-size: .95rem; }
.ha-feed-side .ha-feed-card { padding: 14px; }
@media (max-width: 1024px) { .ha-feed-layout { grid-template-columns: 1fr; } .ha-feed-side { position: static; } }

/* AJAX feedback */
.ha-feed-toast {
	position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 9999;
	max-width: 320px; padding: 13px 18px;
	background: var(--ha-primary); color: #fff; font-weight: 800; font-size: .86rem;
	opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
	pointer-events: none;
}
.ha-feed-toast.is-visible { opacity: 1; transform: translateY(0); }
.ha-feed-toast.is-error { background: #c0392b; }
.ha-feed-new, .ha-feed-highlight { animation: ha-feed-flash 2.5s ease-out; }
@keyframes ha-feed-flash {
	0%, 25% { background-color: var(--ha-primary-soft); }
	100% { background-color: var(--ha-card); }
}

/* Feed tools, limits and extra actions */
.ha-feed-tools { display: flex; gap: 8px; margin-bottom: 14px; }
.ha-feed-tools input[type="search"] { flex: 1 1 auto; min-width: 0; }
.ha-feed-tabs { flex-wrap: wrap; align-items: center; }
.ha-feed-sort { margin-inline-start: auto; display: inline-flex; gap: 4px; }
.ha-feed-sort a { padding: 6px 12px; font-size: .78rem; border-block-end: 0 !important; }
.ha-feed-sort a.is-active { background: var(--ha-primary-soft); }
.ha-feed-counter { display: block; margin-block-start: 6px; font-size: .74rem; color: var(--ha-muted); }
.ha-feed-counter.is-over { color: #c0392b; font-weight: 800; }
.ha-feed-bookmark.is-active, .ha-feed-action.is-active { color: var(--ha-primary); }
.ha-feed-like-names { margin: 8px 0 0; font-size: .76rem; color: var(--ha-muted); }
.ha-feed-delete { display: inline-flex; }
.ha-feed-delete-btn { color: #c0392b !important; }
.ha-feed-edit-form { margin-block-start: 12px; padding: 12px; background: var(--ha-surface); }
.ha-feed-edit-form textarea { width: 100%; }
.ha-feed-edit-form[hidden] { display: none; }
.ha-feed-load-more { display: block; margin: 18px auto 0; }
@media (max-width: 640px) { .ha-feed-sort { margin-inline-start: 0; width: 100%; } }

/* Agency Pro extras */
.ha-agency-pro { margin-block-start: 24px; padding-block-start: 18px; border-block-start: 1px solid var(--ha-border); }
.ha-agency-pro h4 { margin: 22px 0 8px; }
.ha-agency-pro .ha-form { display: grid; gap: 10px; max-width: 520px; }
.ha-agency-campaigns { margin: 0; padding-inline-start: 18px; }
.ha-agency-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ha-agency-filters a { padding: 6px 12px; font-size: .8rem; font-weight: 700; color: var(--ha-muted); text-decoration: none; background: var(--ha-surface); }
.ha-agency-filters a.is-active { background: var(--ha-primary); color: #fff; }
.ha-agency-leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 640px; margin-inline: auto; }
.ha-agency-leaderboard li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ha-card); border: 1px solid var(--ha-border); }
.ha-agency-leaderboard li span { flex: 1 1 auto; font-weight: 800; }
.ha-agency-public .ha-agency-panel__head { display: flex; align-items: center; gap: 18px; }
.ha-agency-public .ha-field { margin-block-start: 18px; }

/* ==========================================================================
   Community feed — redesigned
   ========================================================================== */
.ha-feed-hero {
	position: relative; overflow: hidden; text-align: start;
	padding-block: clamp(42px, 5vw, 64px) clamp(52px, 6vw, 74px);
	background: linear-gradient(125deg, #04241d 0%, #0a5143 55%, #0e7c66 100%);
	color: #fff; border-bottom: 2px solid var(--ha-accent);
}
.ha-feed-hero__aurora {
	position: absolute; inset-block-start: -220px; inset-inline-end: -80px;
	width: 720px; height: 720px; border-radius: 50%;
	background: radial-gradient(circle, rgba(244,183,64,.26), transparent 66%);
	filter: blur(24px); pointer-events: none;
}
.ha-feed-hero__grid {
	position: absolute; inset: 0; opacity: .13; pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.ha-feed-hero__inner {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.ha-feed-hero__copy { max-width: 620px; }
.ha-feed-hero .ha-eyebrow { background: rgba(244,183,64,.16); color: #ffd98a; border-color: rgba(244,183,64,.4); }
.ha-feed-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.2; letter-spacing: -.02em; }
.ha-feed-hero .ha-page-hero__lead { margin-inline: 0; color: rgba(255,255,255,.78); font-size: 1rem; }
.ha-feed-hero__side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ha-feed-hero__numbers { display: flex; gap: 26px; }
.ha-feed-hero__numbers span { display: flex; flex-direction: column; font-size: .76rem; color: rgba(255,255,255,.62); }
.ha-feed-hero__numbers strong { font-size: 1.5rem; color: #ffd98a; line-height: 1.1; }

.ha-feed-section { background: var(--ha-bg); padding-block: 36px 60px; }
.ha-feed-layout { display: grid; grid-template-columns: minmax(0, 720px) 320px; gap: 24px; justify-content: center; align-items: start; }
.ha-feed-main { min-width: 0; }
.ha-feed-side { min-width: 0; display: grid; gap: 16px; position: sticky; top: calc(var(--ha-header-h) + 18px); }

.ha-feed-tools { display: flex; gap: 8px; margin-bottom: 16px; }
.ha-feed-tools input[type="search"] {
	flex: 1 1 auto; min-width: 0; padding: 12px 16px;
	border: 1px solid var(--ha-border); background: var(--ha-card); color: var(--ha-ink); font-family: var(--ha-font);
}
.ha-feed-tools input[type="search"]:focus { border-color: var(--ha-primary); outline: 0; }

.ha-feed-tabs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
	margin-bottom: 16px; padding-inline-start: 0; border-block-end: 1px solid var(--ha-border);
}
.ha-feed-tabs > a {
	padding: 12px 16px; font-size: .9rem; font-weight: 800; color: var(--ha-muted); text-decoration: none;
	border-block-end: 3px solid transparent; margin-block-end: -1px;
}
.ha-feed-tabs > a:hover { color: var(--ha-primary); }
.ha-feed-tabs > a.is-active { color: var(--ha-primary); border-block-end-color: var(--ha-primary); }
.ha-feed-sort { margin-inline-start: auto; display: inline-flex; gap: 4px; padding-block-end: 6px; }
.ha-feed-sort a { padding: 6px 12px; font-size: .76rem; font-weight: 700; color: var(--ha-muted); text-decoration: none; background: var(--ha-surface); border-block-end: 0 !important; }
.ha-feed-sort a.is-active { background: var(--ha-primary); color: #fff; }

.ha-feed-composer { padding: 18px; border: 1px solid var(--ha-border); background: var(--ha-card); margin-bottom: 16px; }
.ha-feed-composer textarea {
	width: 100%; padding: 14px 16px; border: 1px solid var(--ha-border);
	background: var(--ha-surface); color: var(--ha-ink); font-family: var(--ha-font); font-size: .96rem; resize: vertical;
}
.ha-feed-composer textarea:focus { border-color: var(--ha-primary); outline: 0; background: var(--ha-card); }
.ha-feed-composer__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-block-start: 12px; }
.ha-feed-composer__upload { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--ha-primary); cursor: pointer; }
.ha-feed-composer__upload input { max-width: 180px; font-size: .74rem; }
.ha-feed-counter { text-align: end; margin-block-start: 6px; font-size: .74rem; color: var(--ha-muted); }

.ha-feed-card { padding: 0; border: 1px solid var(--ha-border); background: var(--ha-card); margin-bottom: 16px; }
.ha-feed-card__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; }
.ha-feed-avatar { flex: none; line-height: 0; }
.ha-feed-avatar img { width: 46px; height: 46px; object-fit: cover; clip-path: circle(50%); }
.ha-feed-card__who { flex: 1 1 auto; min-width: 0; }
.ha-feed-card__name { display: block; font-size: .96rem; font-weight: 800; color: var(--ha-ink); text-decoration: none; }
.ha-feed-card__name:hover { color: var(--ha-primary); }
.ha-feed-card__date { display: block; font-size: .74rem; color: var(--ha-muted); }
.ha-feed-card__body { padding: 4px 18px 14px; font-size: .96rem; line-height: 1.9; color: var(--ha-ink); }
.ha-feed-card__body p { margin: 0 0 8px; }
.ha-feed-card__body p:last-child { margin-bottom: 0; }
.ha-feed-card__image { display: block; border-block-start: 1px solid var(--ha-border); }
.ha-feed-card__image img { width: 100%; max-height: 460px; object-fit: cover; }
.ha-feed-card__actions {
	display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
	padding: 10px 14px; border-block-start: 1px solid var(--ha-border); background: var(--ha-surface);
}
.ha-feed-action {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px; border: 0; background: transparent; cursor: pointer;
	font-family: var(--ha-font-button); font-size: .82rem; font-weight: 700; color: var(--ha-muted);
	transition: color .2s, background .2s;
}
.ha-feed-action:hover { color: var(--ha-primary); background: var(--ha-card); }
.ha-feed-action.is-active { color: var(--ha-primary); }
.ha-feed-like-names { margin: 0; padding: 8px 18px; background: var(--ha-surface); font-size: .76rem; color: var(--ha-muted); }
.ha-feed-card__replies { padding: 12px 18px; display: grid; gap: 8px; }
.ha-feed-reply { padding: 10px 14px; background: var(--ha-surface); border-inline-start: 3px solid var(--ha-primary); }
.ha-feed-reply strong { color: var(--ha-primary); font-size: .84rem; }
.ha-feed-reply span { font-size: .7rem; color: var(--ha-muted); margin-inline-start: 8px; }
.ha-feed-reply p { margin: 4px 0 0; font-size: .88rem; }
.ha-feed-card__reply-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px 16px; border-block-start: 1px solid var(--ha-border); }
.ha-feed-card__reply-form textarea { flex: 1 1 240px; padding: 10px 12px; border: 1px solid var(--ha-border); background: var(--ha-surface); color: var(--ha-ink); }
.ha-feed-card__reply-form textarea:focus { border-color: var(--ha-primary); outline: 0; }
.ha-feed-edit-form { padding: 14px 18px 18px; background: var(--ha-surface); }
.ha-feed-edit-form textarea { width: 100%; padding: 12px; border: 1px solid var(--ha-border); }
.ha-feed-load-more { display: block; margin: 20px auto 0; min-width: 180px; }

.ha-feed-pulse {
	padding: 22px; color: #fff;
	background: linear-gradient(155deg, #052a24, #0e7c66);
	border-color: rgba(255,255,255,.14);
}
.ha-feed-pulse__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; background: rgba(244,183,64,.18); color: #ffd98a; }
.ha-feed-pulse h3 { margin: 14px 0 6px; color: #fff; font-size: 1.05rem; }
.ha-feed-pulse p { color: rgba(255,255,255,.74); font-size: .86rem; }
.ha-feed-pulse .ha-btn { background: var(--ha-accent); color: #241a02; border-color: var(--ha-accent); font-weight: 800; }
.ha-feed-side .ha-alert { padding: 18px; font-size: .86rem; }
.ha-feed-profile { padding: 22px; text-align: center; }
.ha-feed-profile__avatar img { width: 84px; height: 84px; object-fit: cover; clip-path: circle(50%); margin-inline: auto; }
.ha-feed-profile__name { margin: 12px 0 4px; font-size: 1.05rem; }
.ha-feed-profile__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-block: 18px 14px; }
.ha-feed-profile__stats span { display: flex; flex-direction: column; font-size: .72rem; color: var(--ha-muted); }
.ha-feed-profile__stats strong { font-size: 1.05rem; color: var(--ha-ink); }
.ha-feed-profile__follow .ha-btn { width: 100%; }
.ha-feed-side-title { margin: 6px 0 0; font-size: .95rem; }
.ha-feed-side .ha-feed-card { padding: 14px; }
.ha-feed-side .ha-feed-card__head { padding: 4px 0 8px; }
.ha-feed-side .ha-feed-card__body { padding: 4px 0 10px; font-size: .86rem; }
.ha-feed-side .ha-feed-card__actions { padding-inline: 0; }
.ha-feed-side .ha-feed-card__reply-form { display: none; }
.ha-feed-side .ha-feed-card__follow { display: none; }

.ha-feed-hero__inner { width: 100%; }
.ha-feed-hero__copy, .ha-feed-hero__side { min-width: 0; max-width: 100%; }
.ha-feed-hero h1 { overflow-wrap: anywhere; }
.ha-feed-layout { width: 100%; max-width: 1100px; }
.ha-feed-main, .ha-feed-side, .ha-feed-card, .ha-feed-composer { max-width: 100%; }
.ha-feed-tabs { overflow-x: auto; }
.ha-feed-card__body { overflow-wrap: anywhere; }

@media (max-width: 1100px) { .ha-feed-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
	.ha-feed-layout { grid-template-columns: 1fr; }
	.ha-feed-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ha-feed-hero__inner { align-items: flex-start; }
}
@media (max-width: 600px) {
	.ha-feed-side { grid-template-columns: 1fr; }
	.ha-feed-sort { margin-inline-start: 0; width: 100%; }
	.ha-feed-card__head, .ha-feed-card__body, .ha-feed-card__replies, .ha-feed-card__reply-form { padding-inline: 14px; }
	.ha-feed-hero__numbers { gap: 18px; }
}

/* Sub-communities */
.ha-community-create { padding: 22px; margin-bottom: 26px; max-width: 720px; }
.ha-community-create h3 { margin-bottom: 14px; }
.ha-community-create .ha-field { margin-bottom: 12px; }
.ha-communities__title { margin: 0 0 14px; font-size: 1.1rem; }
.ha-communities__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ha-community-card { padding: 18px; }
.ha-community-card h4 { margin-bottom: 8px; font-size: 1rem; }
.ha-community-card h4 a { color: var(--ha-ink); text-decoration: none; }
.ha-community-card h4 a:hover { color: var(--ha-primary); }
.ha-community-card p { font-size: .86rem; color: var(--ha-muted); min-height: 48px; }
.ha-community-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-start: 12px; border-block-start: 1px solid var(--ha-border); font-size: .8rem; color: var(--ha-muted); }
.ha-community-hub__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; flex-wrap: wrap; }
.ha-community-hub__head h2 { margin-bottom: 6px; }
.ha-community-hub__head p { margin: 0 0 4px; color: var(--ha-muted); }
.ha-community-hub__rules { padding: 18px 22px; margin-block-start: 16px; border-inline-start: 3px solid var(--ha-accent); }
.ha-community-hub__rules h3 { margin-bottom: 8px; font-size: 1rem; }
.ha-community-hub__rules p { color: var(--ha-muted); line-height: 1.9; }
.ha-community-hub .ha-feed-composer { margin-block-start: 16px; }
.ha-feed-community-pick { margin-block: 10px; }
.ha-feed-community-pick select { width: 100%; padding: 9px 12px; border: 1px solid var(--ha-border); background: var(--ha-card); color: var(--ha-ink); }
@media (max-width: 900px) { .ha-communities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ha-communities__grid { grid-template-columns: 1fr; } }

/* Report modal */
.ha-report-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; }
.ha-report-modal[hidden] { display: none !important; }
.ha-report-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 26, 21, .72); backdrop-filter: blur(4px); }
.ha-report-modal__panel {
	position: relative; width: min(100%, 540px); max-height: calc(100vh - 32px); overflow-y: auto;
	background: var(--ha-card); border: 1px solid var(--ha-border); border-block-start: 3px solid var(--ha-accent);
	animation: ha-report-in .22s var(--ha-ease, ease) both;
}
@keyframes ha-report-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.ha-report-modal__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-block-end: 1px solid var(--ha-border); background: linear-gradient(135deg, var(--ha-primary-soft), var(--ha-card)); }
.ha-report-modal__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--ha-primary); color: #fff; }
.ha-report-modal__head h3 { margin: 0 0 3px; font-size: 1.05rem; }
.ha-report-modal__head p { margin: 0; font-size: .8rem; color: var(--ha-muted); }
.ha-report-modal__close { margin-inline-start: auto; border: 0; background: transparent; color: var(--ha-muted); cursor: pointer; padding: 4px; }
.ha-report-modal__close:hover { color: var(--ha-primary); }
.ha-report-modal__form { padding: 18px 20px 20px; }
.ha-report-reasons { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
.ha-report-reasons legend { float: none; width: 100%; font-weight: 800; font-size: .86rem; margin-bottom: 10px; }
.ha-report-reasons label { flex: 1 1 0; min-width: 0; cursor: pointer; margin-bottom: 0; }
.ha-report-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.ha-report-reasons span { display: block; padding: 10px 6px; text-align: center; border: 1px solid var(--ha-border); background: var(--ha-surface); font-size: .78rem; font-weight: 700; color: var(--ha-muted); transition: background .2s, color .2s; }
.ha-report-reasons input:checked + span { background: var(--ha-primary); color: #fff; border-color: var(--ha-primary); }
.ha-report-modal__form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--ha-border); background: var(--ha-surface); color: var(--ha-ink); }
.ha-report-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-block-start: 16px; }
body.ha-report-open { overflow: hidden; }
@media (max-width: 600px) {
	.ha-report-modal__head, .ha-report-modal__form { padding-inline: 14px; }
	.ha-report-reasons { gap: 4px; }
	.ha-report-reasons span { font-size: .68rem; padding: 9px 3px; }
}
