/* The community route and its dialogs have their own dark reading surface. */
body.community-active,
#community-dialog {
  --ink: #ece9e5;
  --muted: #a4a1a4;
  --line: #29282d;
  --soft: #1a191d;
  --red: #bd3344;
  --blue: #c5a7ad;
  --community-bg: #08090b;
  --community-surface: #101114;
  --community-field: #19191e;
  --community-accent: #f07886;
  color-scheme: dark;
  color: var(--ink);
}
html:has(body.community-active) { background: #08090b; color-scheme: dark; }
body.community-active { background: var(--community-bg); min-height: 100vh; }
.community-active .app-header { background: #0c0d10; border-bottom-color: #242329; }
.community-active .brand img { filter: grayscale(1) brightness(0) invert(.93); }
.community-active .primary-nav { color: #a6a2a7; }
.community-active .app-header .primary-nav #community-nav { color: var(--community-accent); }
.community-active button:hover { color: #faf7f3; }
.community-active .primary-nav #community-nav::after { display: block; height: 2px; background: #bd3344; }
.community-active .site-search { background: #17171b; border-color: #2c2a30; border-radius: 6px; }
.community-active .site-search input { color: #ece9e5; }
.community-active input::placeholder, #community-dialog input::placeholder, #community-dialog textarea::placeholder { color: #918d96; opacity: 1; }
.community-active .site-search button, .community-active .button.quiet, .community-active .watch-toggle { background: #252329; color: #d3ced2; border-color: #353139; }
.community-active .site-search svg { stroke: #a19aa4; }
.community-active .site-search:focus-within { border-color: #98505b; box-shadow: 0 0 0 2px #bd33441c; }
.community-active .preview-bar { background: #0b0c0f; color: #a19ca5; }
.community-active .preview-bar .preview-label { background: #221b20; color: #c09ca7; }
.community-active .preview-bar button { color: #b1a5ae; }
.community-active .board { background: var(--community-surface); border-color: #29272d; border-radius: 8px; }
.community-active .board-tabs { border-color: #2a272e; }
.community-active .board-tabs button { color: #a39da8; }
.community-active .board-tabs button.active { color: #f0eae7; }
.community-active .board-tabs .active::after { background: #bd3344; height: 2px; }
.community-active .community-board { padding-bottom: 32px; }
.community-active .community-board-heading { padding-left: 16px; border-left: 2px solid #86313e; }
.community-active .community-board-heading .eyebrow { color: #bd9199; font-size: 11px; letter-spacing: .7px; }
.community-active .community-board-heading h2 { color: #f1eeeb; font-weight: 650; }
.community-active .community-board-heading p { color: #a7a1aa; }
.community-active .button.primary, #community-dialog .button.primary { background: #a82d3e; color: #fff4f4; border: 1px solid #c04454; border-radius: 5px; }
.community-active .button.primary:hover, #community-dialog .button.primary:hover { background: #be3547; color: #fff; }
.community-active .community-tools { border-color: #302a31; }
.community-active .community-categories button { color: #afa7b2; border-radius: 4px; }
.community-active .community-categories button:hover { background: #211c22; color: #f2e7eb; }
.community-active .community-categories button.selected { background: #352028; color: #f2b1bc; box-shadow: inset 0 0 0 1px #66323f; }
.community-active .community-sort-label select { background-color: #1c191f; color: #c7bbc8; border: 1px solid #332b35; border-radius: 4px; }
.community-active .community-search-row>label { background: #1a181e; border: 1px solid #312a34; border-radius: 5px; }
.community-active .community-search-row input { color: #e8dfe9; }
.community-active .community-search-row svg { stroke: #a79aaa; }
.community-active .community-search-row>span { color: #9b8fa1; }
.community-active .community-search-row label:focus-within { outline: 2px solid #a8495c; outline-offset: 1px; }
.community-active .community-post { border-color: #2b252e; }
.community-active .post-open strong { color: #e9e3eb; }
.community-active .community-post .post-open p { color: #b6abbc; }
.community-active .post-open:hover strong { color: #f1a4b4; }
.community-active .community-author, #community-dialog .community-author { color: #c9bdcf; }
.community-active .post-age, .community-active .post-category, .community-active .example-note,
#community-dialog .post-age, #community-dialog .own-post-actions button { color: #a194ab; }
.community-active .own-label, #community-dialog .own-label { color: #c3879d; }
.community-active .avatar, #community-dialog .avatar { background: #29212e; color: #c5a7cf; border: 1px solid #3c2e43; border-radius: 6px; }
.community-active .guide-avatar, #community-dialog .guide-avatar { background: #201e24; color: #a49aaa; border-color: #322e38; }
.community-active .post-part, #community-dialog .post-detail-tags span { background: #241d2a; color: #b7a1c4; border-radius: 3px; }
.community-active .post-reaction, .community-active .post-reply, #community-dialog .post-reaction, #community-dialog .detail-reactions>span { color: #ae9bb7; }
.community-active .post-reaction:hover, .community-active .post-reply:hover, #community-dialog .post-reaction:hover { color: #f2c1cf; }
.community-active .post-reaction.liked, #community-dialog .post-reaction.liked { color: #f07896; }
.community-active .community-local-note { color: #9b8fa3; }
.community-active .community-error, .community-active .community-loading, .community-active .community-empty { color: #b5a8bf; }
.community-active .community-empty strong { color: #e1d6e8; }
.community-active .community-empty button, .community-active .community-error button { background: #2f2136; color: #d5b5de; }

/* Keep surrounding navigation quiet while the community is open. */
.community-active .sidebar, .community-active .sidebar.open { background: #0c0c10; color: #c3b9ca; }
.community-active .sidebar h2 { color: #d6cbdc; }
.community-active .sidebar-description, .community-active .order-note, .community-active .watch-info small { color: #9d8fa8; }
.community-active .watch-empty, .community-active .connection-note { background: #18141d; color: #aa9ab5; border-color: #2e2536; }
.community-active .sidebar-divider { background: #2b2232; }
.community-active .community-shortcuts .unified-community-link { background: #241929; border: 1px solid #422b4c; border-radius: 6px; }
.community-active .unified-community-link .community-link-icon { background: #33223a; border-radius: 5px; }
.community-active .community-link-icon svg { stroke: #c59bd4; }
.community-active .unified-community-link strong { color: #e1c9ec; }
.community-active .unified-community-link small { color: #b19cbd; }
.community-active .site-link small { border-color: #3b2e44; color: #ad9ab8; }
.community-active .connection-note button { background: #2b2033; color: #c6aad5; }
.community-active .sidebar-backdrop { background: #000b; }
.community-active .seller-directory, .community-active .support-section { background: #121015; color: #d1c3da; border-color: #302636; border-radius: 8px; }
.community-active .seller-directory h2 svg { stroke: #b68bc9; }
.community-active .seller-directory-heading>span, .community-active .seller-directory-bottom p, .community-active .seller-count, .community-active .seller-state { color: #aa97b8; }
.community-active .seller-directory-bottom { border-color: #35283e; }
.community-active .seller-directory-bottom a { color: #d6b9e5; }
.community-active .seller-logo { border-radius: 8px; box-shadow: none; }
.community-active .support-intro h2 { color: #e5d7ed; }
.community-active .support-eyebrow, .community-active .support-intro p, .community-active .organization-status { color: #b39dc1; }
.community-active .support-account { background: #201824; border-color: #3b2946; }
.community-active .support-account strong { color: #d5bbdf; }
.community-active .support-account p, .community-active .support-account-label { color: #b29bbf; }
.community-active .app-footer, .community-active .app-footer button { color: #a390af; }
.community-active .toast { background: #38283f; color: #f2e2fa; }
.community-active .skip-link { background: #29202e; color: #f3e6fa; }
.community-active .modal { background: #17121c; border: 1px solid #45304f; color: #eee2f4; border-radius: 8px; }
.community-active .modal::backdrop { background: #030106c9; backdrop-filter: blur(5px); }
.community-active .modal .close-button { background: #302237; color: #d8c0e5; }
.community-active .modal .eyebrow, .community-active .modal .data-table th, .community-active .sample-product small { color: #b49dc3; }
.community-active .modal p { color: #c5b3d2; }
.community-active .modal p strong { color: #ead9f4; }
.community-active .modal .notice { background: #34202c; color: #e0aebe; }
.community-active .modal .formula { background: #2a1e32; color: #d9bfe8; }

/* Post details, comments and writing stay dark even when opened from popular posts. */
#community-dialog { background: #141018; border: 1px solid #45304f; border-radius: 8px; box-shadow: 0 24px 100px #000b; }
#community-dialog::backdrop { background: #030106c9; backdrop-filter: blur(5px); }
#community-dialog .eyebrow { color: #bd9bce; }
#community-dialog h2, #community-dialog h3 { color: #f0e5f6; }
#community-dialog .close-button, #community-dialog .button.quiet { background: #2b1f33; color: #d1b8de; }
#community-dialog .compose-intro, #community-dialog .compose-fields>label, #community-dialog .compose-selects>label { color: #baa5c7; }
#community-dialog .compose-fields input, #community-dialog .compose-fields textarea, #community-dialog .compose-fields select,
#community-dialog .post-comments form input, #community-dialog .post-comments form textarea { background-color: #1e1725; border-color: #493452; color: #eee0f5; border-radius: 5px; }
#community-dialog .post-detail-body, #community-dialog .comment p { color: #cfbddc; }
#community-dialog .compose-footer p, #community-dialog .compose-counter, #community-dialog .comment-footer>span, #community-dialog .comments-empty, #community-dialog .delete-description { color: #ad95bd; }
#community-dialog .post-detail-tags .guide-tag { background: #382031; color: #dda8c7; }
#community-dialog .guide-explanation { background: #251a2d; color: #bea3cf; border: 1px solid #432d50; border-radius: 5px; }
#community-dialog .guide-explanation strong { color: #dfc7ee; }
#community-dialog .form-error { color: #ff9db9; }
.community-active :is(button,a,input,select,textarea):focus-visible,
#community-dialog :is(button,a,input,select,textarea):focus-visible { outline: 2px solid #ce799d; outline-offset: 3px; }
@media(max-width:600px) {
  .community-active .board { border-radius: 0; }
  .community-active .community-board-heading { padding-left: 12px; }
  .community-active .community-board-heading h2 { font-size: 22px; }
}
