/* Community Hub v12.1.6 — Whole-site dark theme refresh
   Applies the new navy / slate / teal / emerald palette across the dark theme. */
html[data-theme="dark"]{
  --hcm-bg:#08131d;
  --hcm-bg-2:#0e1824;
  --hcm-surface:#1e2a3b;
  --hcm-surface-2:#243247;
  --hcm-surface-3:#2b3648;
  --hcm-panel:#223044;
  --hcm-panel-soft:#1a2535;
  --hcm-border:#36506b;
  --hcm-border-soft:rgba(126,176,217,.18);
  --hcm-accent:#17c8c2;
  --hcm-accent-2:#15a98a;
  --hcm-accent-soft:rgba(23,200,194,.16);
  --hcm-text:#f2f6fa;
  --hcm-text-soft:#d3dfeb;
  --hcm-text-muted:#b7c4d3;
  --hcm-glow:0 10px 28px rgba(2,11,21,.28);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top right, rgba(23,200,194,.10), transparent 24%),
    radial-gradient(circle at bottom left, rgba(72,119,197,.16), transparent 28%),
    linear-gradient(180deg, var(--hcm-bg), var(--hcm-bg-2) 52%, #07111a);
  color:var(--hcm-text);
}
html[data-theme="dark"] a{color:#aeeff1}
html[data-theme="dark"] a:hover{color:#d8ffff}
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] footer,
html[data-theme="dark"] .mobile-bottom-nav,
html[data-theme="dark"] .mobile-create-sheet,
html[data-theme="dark"] .mobile-sheet-backdrop,
html[data-theme="dark"] .hcm94-cover,
html[data-theme="dark"] .hcm94-widget,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .standard,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .alert,
html[data-theme="dark"] .success,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .pagehead,
html[data-theme="dark"] .card,
html[data-theme="dark"] .hcm-priority-notice,
html[data-theme="dark"] .hcm942-inline,
html[data-theme="dark"] .adminrow,
html[data-theme="dark"] .hub6-admin-overview a,
html[data-theme="dark"] .stats .stat,
html[data-theme="dark"] .hcm94-numbers>div,
html[data-theme="dark"] .hcm-ribbon{
  background:linear-gradient(180deg,rgba(35,48,68,.96),rgba(26,37,53,.97))!important;
  color:var(--hcm-text)!important;
  border:1px solid var(--hcm-border-soft)!important;
  box-shadow:var(--hcm-glow)!important;
}
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] footer,
html[data-theme="dark"] .mobile-bottom-nav{background:linear-gradient(180deg,rgba(24,35,51,.96),rgba(16,24,36,.98))!important;border-color:var(--hcm-border-soft)!important}
html[data-theme="dark"] .sidebar .brand,
html[data-theme="dark"] .miniprofile,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .pagehead h1,
html[data-theme="dark"] .panel h2,
html[data-theme="dark"] .standard h2,
html[data-theme="dark"] .hcm94-titlebar h1,
html[data-theme="dark"] .hcm94-widget h2,
html[data-theme="dark"] .hcm94-feed-header h2,
html[data-theme="dark"] .feed-sort a,
html[data-theme="dark"] .mobile-create-actions strong,
html[data-theme="dark"] .mobile-sheet-heading h2,
html[data-theme="dark"] .sectiontitle h2,
html[data-theme="dark"] .stats strong,
html[data-theme="dark"] .stat strong,
html[data-theme="dark"] strong{color:var(--hcm-text)!important}
html[data-theme="dark"] :is(p,small,span,label,li,td,th,dd,dt,.muted,.composer-note,.hcm94-eyebrow,.hcm94-widget-head span,.hcm94-feed-live,.feed-sort small,.sidebottom small,.pagehead p,.empty,.alert,.success){color:var(--hcm-text-muted)!important}
html[data-theme="dark"] .navlink,
html[data-theme="dark"] .mobile-tab,
html[data-theme="dark"] .mobile-create-trigger,
html[data-theme="dark"] .topnotification,
html[data-theme="dark"] .hcm94-shortcuts a,
html[data-theme="dark"] .hcm94-quick a,
html[data-theme="dark"] .smallbtn,
html[data-theme="dark"] .hcm94-focus,
html[data-theme="dark"] .hcm94-cover-secondary,
html[data-theme="dark"] .hcm94-cover-cta,
html[data-theme="dark"] .hcm942-pin,
html[data-theme="dark"] .hcm961-theme-control,
html[data-theme="dark"] .search,
html[data-theme="dark"] .hcm-theme-switcher,
html[data-theme="dark"] .mobile-sheet-close,
html[data-theme="dark"] .mobile-back,
html[data-theme="dark"] .hcm945-addmedia{
  background:linear-gradient(180deg,var(--hcm-surface-2),var(--hcm-surface))!important;
  border:1px solid var(--hcm-border-soft)!important;
  color:var(--hcm-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .navlink.active,
html[data-theme="dark"] .mobile-tab.current,
html[data-theme="dark"] .mobile-create-trigger,
html[data-theme="dark"] .hcm94-cover-cta,
html[data-theme="dark"] .primary,
html[data-theme="dark"] button.primary,
html[data-theme="dark"] input[type=submit].primary,
html[data-theme="dark"] .feed-sort .hcm94-selected,
html[data-theme="dark"] .hcm94-shortcuts a:hover,
html[data-theme="dark"] .hcm94-quick a:hover,
html[data-theme="dark"] .hcm94-focus[aria-pressed=true]{
  background:linear-gradient(180deg,var(--hcm-accent),var(--hcm-accent-2))!important;
  color:#f7fffe!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:0 8px 22px rgba(21,169,138,.22)!important;
}
html[data-theme="dark"] .primary:hover,
html[data-theme="dark"] button.primary:hover,
html[data-theme="dark"] .hcm94-cover-cta:hover{filter:brightness(1.06)}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .search input,
html[data-theme="dark"] .mobile-post-form textarea{
  background:rgba(13,22,34,.92)!important;
  color:var(--hcm-text)!important;
  border:1px solid var(--hcm-border-soft)!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#9db0c3!important}
html[data-theme="dark"] .topbar .search span,
html[data-theme="dark"] .topnotification,
html[data-theme="dark"] .navico,
html[data-theme="dark"] .brandicon,
html[data-theme="dark"] .hcm94-title-spark,
html[data-theme="dark"] .hcm94-cover-tag,
html[data-theme="dark"] .hcm94-feed-live i,
html[data-theme="dark"] .hcm94-widget-head span,
html[data-theme="dark"] .hcm942-inline-kicker,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .count,
html[data-theme="dark"] .hcm-ribbon-dot{color:var(--hcm-accent)!important}
html[data-theme="dark"] .count,
html[data-theme="dark"] .topnotification sup{background:#ef5f67!important;color:#fff!important}
html[data-theme="dark"] .hcm94-cover{
  background:
    linear-gradient(180deg,rgba(12,22,35,.45),rgba(11,20,32,.68)),
    linear-gradient(135deg,#162536,#0c1a29 58%,#0a1723)!important;
}
html[data-theme="dark"] .hcm94-cover-shade{background:linear-gradient(180deg,rgba(7,14,21,.20),rgba(7,14,21,.82))!important}
html[data-theme="dark"] .hcm94-cover-body,
html[data-theme="dark"] .hcm94-titlebar,
html[data-theme="dark"] .hcm94-feed-header,
html[data-theme="dark"] .hcm94-widget-head{color:var(--hcm-text)!important}
html[data-theme="dark"] .hcm94-shortcuts a,
html[data-theme="dark"] .hcm94-quick a,
html[data-theme="dark"] .hub6-admin-overview a,
html[data-theme="dark"] .adminrow,
html[data-theme="dark"] .hcm942-inline{
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
html[data-theme="dark"] .hcm94-shortcuts a:hover,
html[data-theme="dark"] .hcm94-quick a:hover,
html[data-theme="dark"] .hub6-admin-overview a:hover,
html[data-theme="dark"] .adminrow:hover,
html[data-theme="dark"] .hcm942-inline:hover{transform:translateY(-1px);border-color:rgba(23,200,194,.34)!important;box-shadow:0 14px 28px rgba(2,11,21,.34)!important}
html[data-theme="dark"] .feed-sort a{border:1px solid transparent;border-radius:16px;padding:.45rem .9rem}
html[data-theme="dark"] .feed-sort .hcm94-selected{color:#fff!important}
html[data-theme="dark"] .hcm94-post-scroll,
html[data-theme="dark"] .feed-post-scroll{background:transparent!important}
html[data-theme="dark"] .post,
html[data-theme="dark"] article.post,
html[data-theme="dark"] .hcm964-post,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .story,
html[data-theme="dark"] .comments,
html[data-theme="dark"] .comment,
html[data-theme="dark"] .thread,
html[data-theme="dark"] .listing,
html[data-theme="dark"] .group-card,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .member-card,
html[data-theme="dark"] .newsletter-card,
html[data-theme="dark"] .message-item,
html[data-theme="dark"] .conversation-item{
  background:linear-gradient(180deg,rgba(43,54,72,.96),rgba(31,43,60,.98))!important;
  border:1px solid var(--hcm-border-soft)!important;
  color:var(--hcm-text)!important;
  box-shadow:var(--hcm-glow)!important;
}
html[data-theme="dark"] .post :is(.meta,.time,.subtle,.comment-meta,.listing-meta,.group-meta,.event-meta),
html[data-theme="dark"] .conversation-item small,
html[data-theme="dark"] .message-item small{color:var(--hcm-text-muted)!important}
html[data-theme="dark"] .mobile-bottom-nav{backdrop-filter:blur(14px)!important}
html[data-theme="dark"] .mobile-tab.current small,
html[data-theme="dark"] .mobile-tab.current span,
html[data-theme="dark"] .mobile-create-trigger small,
html[data-theme="dark"] .mobile-create-trigger span{color:#fff!important}
html[data-theme="dark"] .mobile-create-trigger{border-radius:22px!important}
html[data-theme="dark"] .mobile-sheet-heading,
html[data-theme="dark"] .mobile-create-actions button,
html[data-theme="dark"] .mobile-create-actions a,
html[data-theme="dark"] .mobile-post-form,
html[data-theme="dark"] .mobile-sheet-handle{border-color:var(--hcm-border-soft)!important}
html[data-theme="dark"] .mobile-create-actions button,
html[data-theme="dark"] .mobile-create-actions a{background:linear-gradient(180deg,rgba(40,53,72,.98),rgba(29,40,55,.98))!important;color:var(--hcm-text)!important}
html[data-theme="dark"] .hcm94-numbers>div strong,
html[data-theme="dark"] .stats .stat strong,
html[data-theme="dark"] .hub6-admin-overview strong{color:#fff!important}
html[data-theme="dark"] .hcm94-numbers>div span,
html[data-theme="dark"] .stats .stat span,
html[data-theme="dark"] .hub6-admin-overview span{color:var(--hcm-text-muted)!important}
html[data-theme="dark"] .notice,
html[data-theme="dark"] .alert,
html[data-theme="dark"] .success{border-left:3px solid var(--hcm-accent)!important}
html[data-theme="dark"] .success{background:linear-gradient(180deg,rgba(23,200,194,.15),rgba(18,64,63,.25))!important}
html[data-theme="dark"] .alert{background:linear-gradient(180deg,rgba(239,95,103,.12),rgba(72,25,32,.25))!important}
html[data-theme="dark"] .hcm-priority-notice.important,
html[data-theme="dark"] .hcm-priority-notice.emergency{border-left:4px solid #efc15f!important}
html[data-theme="dark"] .hcm942-site-nav nav .navlink.active::before,
html[data-theme="dark"] .mobile-tab.current::before{background:var(--hcm-accent)!important}
html[data-theme="dark"] .hcm948-mobile-brand,
html[data-theme="dark"] .hcm948-quick-composer,
html[data-theme="dark"] .hcm948-story-strip,
html[data-theme="dark"] .hcm949-create-panel,
html[data-theme="dark"] .hcm949-viewer-details,
html[data-theme="dark"] .hcm955-header-menu,
html[data-theme="dark"] .hcm948-photo-shortcut,
html[data-theme="dark"] .hcm948-mobile-logo,
html[data-theme="dark"] .hcm948-mobile-brand nav a,
html[data-theme="dark"] .hcm948-mobile-brand nav label{background:linear-gradient(180deg,rgba(35,48,68,.96),rgba(25,36,52,.98))!important;border-color:var(--hcm-border-soft)!important;color:var(--hcm-text)!important}
html[data-theme="dark"] .hcm948-quick-composer button[data-hcm948-compose]{background:rgba(10,18,28,.88)!important;border:1px solid var(--hcm-border-soft)!important;color:var(--hcm-text-muted)!important}
html[data-theme="dark"] .hcm948-story,
html[data-theme="dark"] .hcm948-story-image,
html[data-theme="dark"] .hcm948-create-story{background:linear-gradient(180deg,rgba(40,53,72,.96),rgba(27,38,54,.98))!important;border:1px solid var(--hcm-border-soft)!important;color:var(--hcm-text)!important}
html[data-theme="dark"] .hcm948-story-plus,
html[data-theme="dark"] .hcm948-tree{color:var(--hcm-accent)!important}
html[data-theme="dark"] .hcm949-create-panel .primary,
html[data-theme="dark"] .hcm949-close,
html[data-theme="dark"] .hcm949-create-close{background:linear-gradient(180deg,var(--hcm-surface-2),var(--hcm-surface))!important;color:#fff!important;border:1px solid var(--hcm-border-soft)!important}
html[data-theme="dark"] table{background:transparent!important;color:var(--hcm-text)!important}
html[data-theme="dark"] table thead th{background:rgba(23,200,194,.10)!important;color:var(--hcm-text)!important;border-color:var(--hcm-border-soft)!important}
html[data-theme="dark"] table td{border-color:var(--hcm-border-soft)!important}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#35506b;border-radius:999px}
html[data-theme="dark"] ::-webkit-scrollbar-track{background:#0d1824}
@media (max-width:780px){
  html[data-theme="dark"] .topbar,
  html[data-theme="dark"] .mobile-bottom-nav{background:linear-gradient(180deg,rgba(25,36,52,.98),rgba(14,22,33,.99))!important}
  html[data-theme="dark"] .panel,
  html[data-theme="dark"] .standard,
  html[data-theme="dark"] .hcm94-widget,
  html[data-theme="dark"] .notice,
  html[data-theme="dark"] .hcm942-inline,
  html[data-theme="dark"] .hub6-admin-overview a{border-radius:18px!important}
}
