:root {
  --sidebar-width: 200px;
  --content-padding: 24px;
  --page-max-width: 1680px;
  --layout-gap: 20px;
  --shell-surface: #151a19;
  --shell-hover: #202725;
  --shell-accent: #00e6a0;
  --shell-text: #f2f7f5;
  --shell-muted: #9baaa5;
  --shell-radius: 14px;
}
html { background: #0e1211; }
body.bh-app-page { min-height: 100vh; margin: 0; color: var(--shell-text); background: #0e1211; }
body.bh-app-page *, body.bh-app-page *::before, body.bh-app-page *::after { box-sizing: border-box; }
.bh-app-layout, body > .app-layout.bh-app-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.bh-sidebar { position: sticky; inset-block-start: 0; z-index: 100; grid-column: 1; display: flex; flex-direction: column; align-items: stretch; gap: 18px; width: var(--sidebar-width); min-width: var(--sidebar-width); height: 100vh; padding: 20px 14px 16px; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; border-inline-end: 1px solid #29322e; background: #111615; }
.bh-brand { display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; min-height: 58px; padding: 0 8px 12px; color: var(--shell-text); font-size: 16px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.bh-brand img { flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
.bh-brand > span { display: block; }
.bh-brand small { display: block; margin-top: 1px; color: var(--shell-muted); font-size: 8px; letter-spacing: .22em; }
.bh-side-nav { padding: 0 12px; margin-left: 30px; display: grid; align-content: start; gap: 4px; width: 100%; }
.bh-side-link, .bh-mobile-link { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 46px; padding: 0 5px; border-radius: 14px; color: #c5d0cb; font: 600 14px/1.3 system-ui, sans-serif; text-align: start; text-decoration: none; transition: color .16s ease, background .16s ease; }
.bh-side-link { justify-content: flex-start; width: 100%; min-height: 46px; padding: 0  8px; }
.bh-side-link span { display: block; min-width: 0; white-space: nowrap; }
.bh-side-link svg, .bh-mobile-link svg { flex: 0 0 21px; width: 21px; height: 21px; fill: none; stroke: #91a29a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bh-side-link:hover, .bh-side-link:focus-visible { color: white; background: var(--shell-hover); outline: none; }
.bh-side-link.is-active { color: #eafff6; background: #173329; box-shadow: inset 4px 0 var(--shell-accent); }
html[dir="rtl"] .bh-side-link.is-active { box-shadow: inset -4px 0 var(--shell-accent); }
.bh-side-link.is-active svg { stroke: var(--shell-accent); }
.bh-side-divider { height: 1px; margin: 8px 5px; background: #29322e; }
.bh-sidebar-bottom { display: grid; gap: 5px; width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid #29322e; }
.bh-account { display: flex; align-items: center; width: 100%; min-height: 58px; margin-top: 4px; padding: 7px; overflow: hidden; border: 1px solid #29322e; border-radius: 15px; color: var(--shell-text); background: #151a19; font: 500 13px/1.25 system-ui, sans-serif; text-align: start; text-decoration: none; }
.bh-account a { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; color: inherit; text-align: start; text-decoration: none; }
.bh-account[hidden], .bh-login[hidden] { display: none; }
.bh-account img { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #29322e; border-radius: 50%; object-fit: cover; }
.bh-account-copy { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; text-align: start; }
.bh-account-chevron { display: inline; }
.bh-account-copy strong, .bh-account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-account-copy strong { color: #f2f7f5; font-size: 12px; font-weight: 700; }
.bh-account-copy small { color: #9baaa5; font-size: 11px; }
.bh-account-chevron { flex: 0 0 auto; color: #9baaa5; font-size: 21px; line-height: 1; }
.bh-login { display: block; width: auto; height: auto; margin-top: 4px; padding: 12px; border-radius: 999px; color: #071510; background: var(--shell-accent); font: 700 14px/1.2 system-ui, sans-serif; text-align: center; text-decoration: none; }
.bh-login::before { content: none; }
.bh-main { grid-column: 2; min-width: 0; min-height: 100vh; padding: 0; background: #0e1211; }
.bh-page-toolbar { position: sticky; inset-block-start: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100%, var(--page-max-width)); min-height: 60px; margin-inline: auto; padding: 9px var(--content-padding); border-bottom: 1px solid rgb(255 255 255 / 6%); background: rgb(14 18 17 / 93%); backdrop-filter: blur(14px); }
.bh-page-title { overflow: hidden; color: #dbe5e0; font: 600 13px/1.3 system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.bh-page-toolbar .language-picker-wrap { min-height: 38px; }
.bh-main > header.he { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(100%, var(--page-max-width)); height: auto; min-height: 62px; margin: 0 auto; padding: 8px var(--content-padding); border: 0; background: transparent; }
.bh-main > header.he::after { content: none; }
.bh-main > header.he > * { position: static; z-index: auto; }
.bh-main > header.he nav { display: flex; align-items: center; gap: 10px; padding: 0; }
.bh-main > header.he .hero img { width: auto; height: 36px; }
.bh-main > header.he .nav-link, .bh-main > header.he .explore-window, .bh-main > header.he .hamburger { display: none !important; }
.bh-main > header.he .search { position: relative; inset: auto; transform: none; width: min(540px, 65vw); min-height: 42px; margin: 0; border: 1px solid #303b36; border-radius: 12px; background: #171d1b; box-shadow: none; animation: none; backdrop-filter: none; }
.bh-main > header.he .search input { padding-block: 10px; font-size: 13px; }
.bh-main > header.he .search:focus-within { transform: none; animation: none; }
.bh-main > header.he + main { min-width: 0; }
.bh-main > .community-header { display: none !important; }
.bh-main :where(section, article, form, .shop-shell, .support-shell, .editorial-content) { max-width: 100%; }
.bh-main :where(.community-content, .community-shell, .post-detail, .shop-shell, .support-shell) { width: 100%; max-width: var(--page-max-width); margin-inline: auto; }
.bh-main .community-content.community-feed-page { max-width: none; }
.bh-main .post-page .post-detail { max-width: none; }
.bh-main img, .bh-main video { max-width: 100%; }
.bh-main :focus-visible, .bh-sidebar :focus-visible, .bh-mobile-nav :focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 3px; }
.bh-mobile-nav { display: none; }
body.bh-app-page .site-footer { margin-top: 32px; }
.bh-main .community-topbar { position: relative; inset-block-start: auto; z-index: 25; min-height: 54px; padding: 8px var(--content-padding); border-bottom: 0; background: rgb(14 18 17 / 88%); }
.bh-main .community-topbar-actions { margin-inline-start: auto; }
body.bh-app-page .profile-cover { position: relative; height: 150px; overflow: visible; }
body.bh-app-page .profile-avatar-frame { position: absolute; inset-block-end: -50px; inset-inline-start: clamp(18px, 3vw, 38px); top: auto; z-index: 1; width: 112px; height: 112px; margin: 0; }
body.bh-app-page .profile-main { padding: 72px clamp(18px, 3vw, 38px) 27px; }
body.bh-app-page .profile-title-row { align-items: flex-start; flex-wrap: wrap; gap: 14px 24px; padding-inline-start: 0; }
body.bh-app-page .profile-title-row > div:first-child { flex: 1 1 250px; min-width: 0; }
body.bh-app-page .profile-title-row h1, body.bh-app-page .profile-handle { overflow-wrap: anywhere; }
body.bh-app-page .profile-actions { flex: 0 1 auto; justify-content: flex-start; }
body.bh-app-page .settings-information-links { display: flex; flex-wrap: wrap; gap: 10px; }
body.bh-app-page .settings-information-links .community-button { text-decoration: none; }
body.bh-app-page .post-info { position: sticky; top: 84px; max-height: calc(100vh - 118px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.bh-app-page .post-detail-image { max-height: calc(100vh - 190px); }
.post-created-at { display: block; margin: 4px 0 10px; color: var(--shell-muted); font-size: .8rem; }
body.index-page .main-content { grid-column: 2; margin-inline-start: 0; }
body.index-page .app-layout { min-height: 100vh; }
body.index-page .bh-page-toolbar { display: none; }
body.index-page .main-toolbar { inset-block-start: 0; }

@media (min-width: 1500px) {
  :root { --content-padding: 30px; }
}
@media (max-width: 1100px) and (min-width: 768px) {
  :root { --sidebar-width: 216px; --content-padding: 18px; }
  .bh-sidebar { padding-inline: 10px; }
}
@media (max-width: 900px) and (min-width: 768px) {
  body.bh-app-page .post-page .post-detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "panel" "related"; }
  body.bh-app-page .post-info { position: static; max-height: none; overflow: visible; }
  body.bh-app-page .post-page .post-detail-image { height: 62svh; max-height: 62svh; }
}
@media (max-width: 767px) {
  .bh-app-layout, body > .app-layout.bh-app-layout { display: block; min-height: 100vh; }
  .bh-sidebar { display: none; }
  .bh-main { min-height: 100vh; padding-bottom: 72px; }
  .bh-page-toolbar { position: relative; min-height: 52px; padding: 7px 15px; }
  .bh-page-title { font-size: 12px; }
  .bh-main > header.he { min-height: 52px; padding: 7px 15px; }
  .bh-main > header.he .search { width: min(540px, 70vw); }
  .bh-main .community-topbar { min-height: 50px; padding: 7px 15px; }
  .bh-mobile-nav { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 200; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid #29322e; background: rgb(17 22 21 / 97%); box-shadow: 0 -8px 24px rgb(0 0 0 / 20%); backdrop-filter: blur(14px); }
  .bh-mobile-link { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; padding: 3px 1px; overflow: hidden; color: #555; font-size: 9px; }
  .bh-mobile-link svg { flex: 0 0 19px; width: 19px; height: 19px; }
  .bh-mobile-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bh-mobile-link.is-active { color: var(--shell-accent); background: #173329; }
  .bh-mobile-link.is-active svg { stroke: var(--shell-accent); }
  .bh-main > header.he .hero img { height: 30px; }
  .bh-main > header.he .search { width: min(100%, 70vw); }
  body.index-page .main-content { padding-bottom: 72px; }
  body.bh-app-page .profile-cover { height: 128px; }
  body.bh-app-page .profile-avatar-frame { inset-block-end: -42px; inset-inline-start: 18px; width: 90px; height: 90px; }
  body.bh-app-page .profile-main { padding: 61px 17px 21px; }
  body.bh-app-page .profile-title-row { flex-direction: column; gap: 12px; }
  body.bh-app-page .profile-title-row > div:first-child { flex-basis: auto; width: 100%; }
  body.bh-app-page .profile-actions { width: 100%; justify-content: flex-start; }
  body.bh-app-page .profile-actions .community-button { min-height: 40px; }
  body.bh-app-page .post-info { position: static; max-height: none; overflow: visible; }
  body.bh-app-page .post-detail-image { height: 62svh; max-height: 62svh; }
}
@media (max-width: 430px) {
  :root { --content-padding: 12px; }
  .bh-page-toolbar { padding-inline: 12px; }
  .bh-main > header.he { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .bh-main .community-topbar { flex-wrap: wrap; row-gap: 7px; }
  .bh-main .community-topbar-title { flex: 1 1 auto; min-width: 0; }
  .bh-main .community-topbar-actions { flex: 0 0 100%; justify-content: flex-end; margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bh-app-page *, .bh-app-page *::before, .bh-app-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Keep the site's black and green palette across the shared shell. */
:root { color-scheme: dark; --shell-surface: #151a19; --shell-hover: #202725; --shell-accent: #00e6a0; --shell-text: #f2f7f5; --shell-muted: #9baaa5; --surface: #151a19; --surface-hover: #202725; --accent: #00e6a0; --text: #f2f7f5; --muted-text: #9baaa5; }
html, body.bh-app-page, .bh-main { background: #0e1211; color: #f2f7f5; }
.bh-sidebar { border-color: #29322e; background: #111615; }
.bh-side-link:hover, .bh-side-link:focus-visible { color: #fff; background: #202725; }
.bh-side-link.is-active { color: #eafff6; background: #173329; }
.bh-side-divider, .bh-sidebar-bottom { border-color: #29322e; }
.bh-side-divider { background: #29322e; }
.bh-account { border-color: #29322e; background: #151a19; color: #f2f7f5; }
.bh-account img { border-color: #29322e; }
.bh-account-copy strong { color: #f2f7f5; }
.bh-account-copy small, .bh-account-chevron { color: #9baaa5; }
.bh-login { background: #00e6a0; color: #071510; }
.bh-page-toolbar, .bh-main > header.he { border-color: rgb(255 255 255 / 7%); background: rgb(14 18 17 / 95%); }
.bh-page-title { color: #dbe5e0; }
.bh-main > header.he .search, .bh-main .main-toolbar .search { border: 1px solid #303b36; background: #171d1b; }
.bh-main > header.he .search:focus-within, .bh-main .main-toolbar .search:focus-within { border-color: #3c6e59; background: #1a211e; box-shadow: 0 0 0 3px rgb(0 230 160 / 9%); }
.bh-main > header.he .search input, .bh-main .main-toolbar .search input { background: transparent; color: #f2f7f5; }
.bh-main .search .clear-btn[hidden] { display: none; }
.bh-main > header.he .search-btn::after, .bh-main .main-toolbar .search-btn::after { content: none; }
.bh-main > header.he #suggestionBox { position: absolute !important; inset-block-start: calc(100% - 4px); inset-inline-start: 50%; z-index: 80; display: none; width: min(620px, calc(100% - 32px)); margin: 0 !important; padding: 12px 16px; transform: translateX(-50%); border: 1px solid #303b36; border-radius: 16px; background: #171d1b; box-shadow: 0 14px 32px rgb(0 0 0 / 35%); text-align: start; }
.bh-main > header.he #suggestionBox:not(:empty) { display: block; }
.bh-main .main-toolbar #suggestionBox { border-color: #303b36; background: #171d1b; box-shadow: 0 14px 32px rgb(0 0 0 / 35%); }
.bh-main :is(.search-suggestion-message, .bh-main #suggestionBox p) { color: #e2e8e2; }
.bh-main :is(.search-suggestion-message a, .search-suggestion-link) { color: #00e6a0; }
.bh-main .community-topbar { background: rgb(14 18 17 / 95%); }
.bh-main .community-topbar-title, .bh-main .community-topbar a { color: #f2f7f5; }
.bh-main :is(.profile-card, .settings-card, .community-form, .shop-card, .inventory-card, .membership-card, .shop-intro, .support-card) { border-color: #293830; background: #151a19; color: #f2f7f5; box-shadow: 0 12px 34px rgb(0 0 0 / 18%); }
.bh-main .post-page .post-detail-layout { border: 0; background: transparent; box-shadow: none; }
.bh-main :is(.community-content, .community-shell, .shop-shell, .support-shell, .settings-page) { color: #f2f7f5; }
.bh-main :is(.community-kicker, .profile-handle, .profile-bio, .community-post-card p, .post-card-meta, .shop-card-details > p, .membership-card > p, .membership-card ul, .support-disabled, .shop-intro p:not(.community-kicker), .profile-stats > button, .profile-stats > div, .post-detail-actions, .post-author, .comment-author, .comment-row > p, .shop-price, .membership-price, .membership-expiry, .membership-note, .item-state, .shop-card-meta, .settings-section-heading p, .settings-note p, .settings-about p, .community-publish-form label) { color: #bdc8c2; }
.bh-main :is(.community-post-card h2, .community-post-card h3, .profile-title-row h1, .section-heading h2, .settings-card h2, .settings-card h3, .shop-card h2, .membership-card h2, .support-card h1) { color: #f2f7f5; }
.bh-main .community-button { border-color: #394960; background: #172232; color: #f1f7ff; }
.bh-main .community-button.primary { border-color: transparent; background: #00e6a0; color: #071510; }
.bh-main .community-button:hover { border-color: #00e6a0; }
.bh-main .community-post-card a, .bh-main .settings-information-links a { color: #61edbb; }
.bh-main :is(input, select, textarea) { border-color: #3b463b; background-color: #101510; color: #f2f4ee; }
.bh-main :is(input, select, textarea)::placeholder { color: #9baaa5; }
.bh-main .wallet-chip, .bh-main .shop-categories [aria-pressed=true] { border-color: #34465b; background: #0c1520; color: #aabbd0; }
.bh-main .shop-categories button, .bh-main .shop-categories a { color: #a9b8c9; }
.bh-main .shop-preview { background: radial-gradient(ellipse at 50% 110%, #183e38 0, transparent 55%), linear-gradient(145deg, #192638, #101721); }
.bh-main :is(.profile-stats strong, .wallet-chip strong) { color: #eafcf5; }

.bh-main .post-author small, .bh-main .comment-author small { color: #9ea99a; }
.bh-main .comment-row { border-color: #303830; }
.bh-main .settings-note { border-inline-start-color: #70d793; background: #202820; }
.bh-main .settings-icon { background: #29382d; color: #98e6ae; }
.bh-main .support-disabled { border-color: #34465a; background: #0a121c; color: #a9b8ca; }
.bh-main .support-disabled strong { color: #edf8f3; }
.bh-main .community-status { color: #c2ccdc; }
.bh-main .community-status[data-kind="error"] { color: #ff8c9a; }
.bh-main .main-toolbar { background: rgb(14 18 17 / 95%); }
.bh-main .section-heading h2, .bh-main .feed-heading h2, .bh-main .index-about h2 { color: #edf5f1; }
.bh-main .community-feed-grid .community-post-card { border: 1px solid #28374a; background: #101925; box-shadow: none; }
.bh-main .community-feed-grid .visual-post-content h2 { color: #f2f7f5; }
.bh-main .community-feed-grid .visual-post-content p, .bh-main .community-feed-grid .visual-post-author { color: #bdc8c2; }
.bh-main .language-picker-wrap { border-color: #303b36; background: #171d1b; }
.bh-main .language-picker-wrap select { background: #171d1b; color: #dce7e2; }
.bh-main .search-suggestion-message { margin: 0; color: #e2e8e2; font-size: 14px; line-height: 1.5; }
.bh-account-chevron { transform: none; }
html[dir="rtl"] .bh-account-chevron { transform: rotate(180deg); }
.bh-mobile-nav { border-color: #29322e; background: rgb(17 22 21 / 97%); box-shadow: 0 -8px 24px rgb(0 0 0 / 20%); }
.bh-mobile-link { color: #9baaa5; }
.bh-mobile-link.is-active { background: #173329; }

