/* Blossom Hub layout: sidebar UI, home, movies, chat, account. Uses the theme variables from style.css. */
:root { --bl-side: 164px; --bl-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body, body *:not(i) { font-family: var(--bl-font) !important; }
body { background: #060606; }

/* ---- cursor fixes: the pointer is never hidden unless a custom cursor is actually being drawn ---- */
body.cursor-disabled, body.cursor-disabled * { cursor: auto !important; }
body.cursor-disabled a, body.cursor-disabled button, body.cursor-disabled label, body.cursor-disabled select,
body.cursor-disabled [onclick], body.cursor-disabled .lesson-card, body.cursor-disabled .theme-option { cursor: pointer !important; }
body.cursor-disabled input[type="text"], body.cursor-disabled input[type="password"] { cursor: text !important; }
body.cursor-disabled #bl-cursor { display: none !important; }
body:not(.cursor-disabled) #bl-cursor { display: block !important; }
@media (hover: none) { #bl-cursor { display: none !important; } }

/* ---- background embers ---- */
#blEmbers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: none; }
body.bl-embers #blEmbers { display: block; }
body.bl-embers #matrix-bg, body.bl-embers #starfield-layer, body.bl-embers #paths-layer { display: none !important; }

/* ---- sidebar ---- */
.bl-side { position: fixed; z-index: 900; top: 0; left: 0; bottom: 0; width: var(--bl-side); box-sizing: border-box; padding: 14px 6px; display: flex; flex-direction: column; gap: 4px; background: rgba(13, 13, 13, .94); border-right: 1px solid rgba(255, 255, 255, .06); overflow-y: auto; }
.bl-nav { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-radius: 12px; color: #b4b4b4; font-size: 1.02rem; font-weight: 600; transition: background .15s, color .15s; user-select: none; }
.bl-nav i { width: 22px; text-align: center; font-size: 1.05rem; }
.bl-nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.bl-nav.active { background: var(--primary-orange); color: #111; box-shadow: 0 6px 18px rgba(var(--primary-orange-rgb), .28); }
.bl-nav:focus-visible { outline: 2px solid var(--primary-orange); outline-offset: 2px; }
.bl-nav-account { margin-top: auto; }
.bl-nav-ava { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; border: 1.5px solid currentColor; }
.bl-nav-ava i { width: auto; font-size: .85rem; }
.bl-nav-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
#blNavName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---- main area ---- */
#main-container { margin: 0 0 0 var(--bl-side) !important; max-width: none !important; width: auto !important; padding: 0 28px; box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column; }
#main-container > section { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
#main-container > .site-footer { margin-top: auto; width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding: 18px 0; opacity: .75; }
body[data-active-tab="home"] .site-footer, body[data-active-tab="movies"] .site-footer { display: none; }
#all-lessons { padding-top: 26px; }
#backToTop { z-index: 800; }

/* ---- home ---- */
#home-section { margin: 0 auto !important; padding: 0 !important; border: 0 !important; background: none !important; }
.bl-home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px 0 60px; box-sizing: border-box; text-align: center; }
.bl-home .home-logo-wrap { margin: 0; }
.bl-wordmark { margin: 0; display: flex; align-items: center; gap: 8px; font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.5px; color: #fff; line-height: 1; }
.bl-wordmark b { background: var(--primary-orange); color: #111; padding: 6px 10px; border-radius: 7px; font-weight: 800; }
.bl-wordmark-icon { width: 1.5em; height: 1.5em; image-rendering: pixelated; margin-right: 4px; }
.bl-home .home-logo[hidden], .bl-wordmark[hidden] { display: none !important; }
.bl-home .home-logo { max-width: min(420px, 80vw); max-height: 110px; }
.bl-home .home-subtitle { margin: 0; min-height: 1.4em; color: var(--gray-text); font-size: .95rem; }
.bl-home-search { width: min(590px, 100%); display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; box-sizing: border-box; border-radius: 16px; background: rgba(22, 22, 22, .85); border: 1px solid rgba(255, 255, 255, .09); transition: border-color .15s, box-shadow .15s; margin-top: 34px; }
.bl-home-search:focus-within { border-color: var(--primary-orange); box-shadow: 0 0 0 4px rgba(var(--primary-orange-rgb), .16); }
.bl-home-search i { color: #8a8a8a; }
.bl-home-search input { all: unset; flex: 1; min-width: 0; text-align: left; color: #fff; font-size: 1.05rem; }
.bl-home-search input::placeholder { color: #8a8a8a; }
.bl-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.bl-tile { all: unset; box-sizing: border-box; width: 112px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e9e9e9; font-size: .85rem; font-weight: 600; transition: transform .15s, border-color .15s, background .15s; }
.bl-tile span { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: 1.05rem; color: #d6d6d6; }
.bl-tile:hover { transform: translateY(-3px); border-color: var(--primary-orange); background: rgba(var(--primary-orange-rgb), .1); }
.bl-tile:focus-visible { outline: 2px solid var(--primary-orange); outline-offset: 2px; }
.bl-online { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(20, 20, 20, .7); color: #cfcfcf; font-size: .8rem; font-weight: 600; }
.bl-online[hidden] { display: none; }
.bl-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-orange); box-shadow: 0 0 0 3px rgba(var(--primary-orange-rgb), .25); }

/* ---- movies ---- */
.bl-movies { position: fixed; top: 0; left: var(--bl-side); right: 0; bottom: 0; z-index: 850; background: #000; }
.bl-movies.full { left: 0; z-index: 3000; }
.bl-movies iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.bl-movies-tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; opacity: .45; transition: opacity .15s; }
.bl-movies-tools:hover { opacity: 1; }
.bl-movies-tools button { all: unset; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(15, 15, 15, .9); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.bl-movies-tools button:hover { border-color: var(--primary-orange); color: var(--primary-orange); }

/* ---- chat + account ---- */
#chat-section, #account-section, #settings-section { margin: 28px auto 40px !important; max-width: 860px !important; padding: 0 0 20px !important; background: transparent; border: none; box-shadow: none; }
.bl-panel { background: rgba(16, 16, 16, .88); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 20px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.bl-panel-narrow { max-width: 480px; margin: 0 auto; }
.bl-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bl-panel .modal-title { color: var(--primary-orange); font-size: 1.25rem; font-weight: 700; }
.bl-chat-meter { color: var(--gray-text); font-size: .9rem; min-width: 150px; text-align: right; }
.bl-chat-meter span { color: var(--primary-orange); font-weight: 700; }
.bl-meter-bar { height: 5px; margin-top: 6px; border-radius: 99px; background: rgba(var(--primary-orange-rgb), .15); overflow: hidden; }
.bl-meter-bar div { height: 100%; width: 0; background: var(--primary-orange); border-radius: 99px; transition: width .3s ease; }
.bl-chat-banner { margin-bottom: 12px; padding: 12px 14px; border: 1px dashed var(--primary-orange); border-radius: 10px; color: var(--primary-orange); background: rgba(var(--primary-orange-rgb), .1); font-size: .95rem; }
.bl-chat-banner i { margin-right: 8px; }
.bl-chat-log { height: min(56vh, 520px); overflow-y: auto; padding: 6px 4px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(var(--primary-orange-rgb), .5) transparent; }
.bl-chat-log[hidden] { display: none; }
.bl-chat-empty { margin: auto; color: var(--gray-text); text-align: center; }
.bl-row { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; align-self: flex-start; }
.bl-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.bl-row.system { align-self: center; max-width: 100%; }
.bl-ava { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(var(--primary-orange-rgb), .22); color: var(--primary-orange); font-weight: 700; font-size: .9rem; border: 1px solid rgba(var(--primary-orange-rgb), .45); }
.bl-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-msg { min-width: 0; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: var(--light-text); word-break: break-word; overflow-wrap: anywhere; text-align: left; }
.bl-row.mine .bl-msg { border-radius: 14px 14px 4px 14px; background: rgba(var(--primary-orange-rgb), .16); border-color: rgba(var(--primary-orange-rgb), .4); }
.bl-row.ai .bl-msg { border-color: var(--primary-orange); box-shadow: 0 0 12px rgba(var(--primary-orange-rgb), .2); }
.bl-row.system .bl-msg { text-align: center; font-size: .82rem; color: var(--gray-text); background: transparent; border-style: dashed; border-radius: 99px; }
.bl-msg-head { display: flex; gap: 8px; align-items: baseline; font-size: .76rem; margin-bottom: 2px; }
.bl-msg-name { color: var(--primary-orange); font-weight: 700; }
.bl-msg-time { color: var(--gray-text); opacity: .8; }
.bl-msg-body { white-space: pre-wrap; font-size: .95rem; line-height: 1.4; }
.bl-chat-typing { color: var(--gray-text); font-size: .85rem; padding: 6px 4px 0; }
.bl-dots::after { content: ''; animation: blDots 1.2s steps(4) infinite; }
@keyframes blDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.bl-chat-form { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.bl-chat-form[hidden] { display: none; }
.bl-chat-form .text-input { flex: 1; min-width: 0; margin: 0; }
.bl-chat-form .apply-btn { margin: 0; white-space: nowrap; }
.bl-chat-form[data-disabled="1"] { opacity: .5; pointer-events: none; }
.bl-chat-guest { text-align: center; color: var(--gray-text); padding: 26px 10px; }
.bl-chat-guest > i { font-size: 2rem; color: var(--primary-orange); margin-bottom: 10px; }
.bl-chat-guest p { margin: 8px 0 16px; }
.bl-chat-note { margin-top: 12px; font-size: .82rem; }
.bl-auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.bl-auth-tabs .background-option { flex: 1; }
#blAuthForm .setting-label { margin: 12px 0 6px; }
#blAuthForm .text-input { width: 100%; box-sizing: border-box; }
#blAuthOut > .setting-description { margin-top: 14px; text-align: center; }
.bl-wide { width: 100%; margin-top: 16px; }
.bl-auth-msg { min-height: 1.2em; margin-top: 10px; font-size: .9rem; color: var(--accent-orange, var(--primary-orange)); text-align: center; }
.bl-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bl-avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; color: #111; background: var(--primary-orange); border: 2px solid var(--primary-orange); }
.bl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-profile-name { font-size: 1.25rem; font-weight: 700; color: var(--light-text); }
.bl-pfp { margin-bottom: 16px; }

/* ---- small screens: sidebar becomes a bottom bar ---- */
@media (max-width: 720px) {
  .bl-side { top: auto; right: 0; width: auto; height: 58px; padding: 6px; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .08); overflow: visible; }
  .bl-nav { flex: 1; justify-content: center; padding: 0; height: 46px; }
  .bl-nav > span:not(.bl-nav-ava) { display: none; }
  .bl-nav-account { margin-top: 0; }
  #main-container { margin-left: 0 !important; padding: 0 14px 70px; }
  .bl-movies { left: 0; bottom: 58px; }
  .bl-movies.full { bottom: 0; }
  .bl-tile { width: 96px; height: 92px; }
  .bl-row { max-width: 96%; }
  .bl-chat-meter { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .bl-tile, .bl-nav { transition: none; } }

/* movies frame lives at page level so it can fill the whole window */
.bl-movies { display: none; }
body[data-active-tab="movies"] .bl-movies { display: block; }
#movies-section { display: none !important; }

/* clearer custom cursor ring */
#bl-cursor { border: 2px solid var(--primary-orange); background: rgba(var(--primary-orange-rgb), .2); box-shadow: 0 0 10px rgba(var(--primary-orange-rgb), .55), 0 0 0 1px rgba(0, 0, 0, .55); }

/* ================= Discord-style full-page chat ================= */
#chat-section { display: none !important; }
.bl-chat { display: none; position: fixed; top: 0; left: var(--bl-side); right: 0; bottom: 0; z-index: 850; background: #313338; color: #dbdee1; }
body[data-active-tab="chat"] .bl-chat { display: flex; }
body[data-active-tab="chat"] .site-footer { display: none; }
.dc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-head { flex: none; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid #1f2023; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.dc-head > i { color: #80848e; font-size: 1.15rem; }
.dc-head b { color: #f2f3f5; font-size: 1rem; }
.dc-topic { color: #949ba4; font-size: .85rem; padding-left: 12px; border-left: 1px solid #4e5058; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.dc-meter { flex: none; color: #b5bac1; font-size: .8rem; width: 120px; text-align: right; }
.dc-meter span { color: var(--primary-orange); font-weight: 700; }
.dc-icon-btn { all: unset; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #b5bac1; }
.dc-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.dc-icon-btn:focus-visible { outline: 2px solid var(--primary-orange); }
.bl-chat .bl-chat-banner { margin: 10px 16px 0; }
.dc-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 0 8px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }
.dc-log[hidden] { display: none; }
.dc-log .bl-chat-empty { margin: auto; color: #949ba4; }
.dc-row { position: relative; display: flex; gap: 16px; padding: 2px 48px 2px 16px; margin-top: 14px; text-align: left; }
.dc-row.cont { margin-top: 0; padding-left: 72px; }
.dc-row:hover { background: rgba(2, 2, 2, .08); }
.dc-row.mention { background: rgba(var(--primary-orange-rgb), .08); box-shadow: inset 2px 0 0 var(--primary-orange); }
.dc-ava { width: 40px; height: 40px; flex: none; margin-top: 2px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--primary-orange); color: #111; font-weight: 700; }
.dc-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-ava.ai { background: #5865f2; color: #fff; }
.dc-body { min-width: 0; flex: 1; }
.dc-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; line-height: 1.3; }
.dc-name { color: #f2f3f5; font-weight: 600; font-size: 1rem; }
.dc-name.dev { color: var(--primary-orange); }
.dc-time { color: #949ba4; font-size: .72rem; }
.dc-badge { display: inline-block; padding: 1px 5px; border-radius: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; background: var(--primary-orange); color: #111; position: relative; top: -1px; }
.dc-badge.ai { background: #5865f2; color: #fff; }
.dc-text { color: #dbdee1; font-size: .97rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.dc-sys { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; color: #949ba4; font-size: .82rem; }
.dc-sys::before, .dc-sys::after { content: ''; flex: 1; height: 1px; background: #3f4147; }
.dc-typing { flex: none; padding: 0 20px 4px; color: #b5bac1; font-size: .8rem; }
.dc-form { flex: none; display: flex; align-items: center; gap: 4px; margin: 0 16px 20px; padding: 4px 8px; border-radius: 10px; background: #383a40; }
.dc-form[hidden] { display: none; }
.dc-form input { all: unset; flex: 1; min-width: 0; height: 40px; padding: 0 8px; color: #dbdee1; font-size: .97rem; text-align: left; }
.dc-form input::placeholder { color: #87898f; }
.dc-form[data-disabled="1"] { opacity: .6; }
.dc-send { color: var(--primary-orange); }
.bl-chat .bl-chat-guest { margin: auto; }
.dc-members { flex: none; width: 232px; background: #2b2d31; overflow-y: auto; padding: 8px 8px 16px; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }
.bl-chat.no-members .dc-members, .bl-chat.guest .dc-members { display: none; }
.dc-group { margin: 16px 8px 4px; color: #949ba4; font-size: .72rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; text-align: left; }
.dc-member { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; text-align: left; }
.dc-member:hover { background: rgba(255, 255, 255, .06); }
.dc-member .dc-ava { width: 32px; height: 32px; margin: 0; font-size: .85rem; position: relative; overflow: visible; }
.dc-member .dc-ava img { border-radius: 50%; }
.dc-member .dc-ava::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #23a55a; border: 3px solid #2b2d31; }
.dc-member .dc-name { font-size: .92rem; font-weight: 500; color: #b5bac1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dc-member .dc-name.dev { color: var(--primary-orange); }

/* ================= Dev panel ================= */
.bl-nav[hidden] { display: none; }
.bl-nav-dev { margin-top: auto; color: var(--primary-orange); border: 1px solid rgba(var(--primary-orange-rgb), .45); }
.bl-nav-dev + .bl-nav-account { margin-top: 4px; }
.bl-dev { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; background: rgba(0, 0, 0, .7); padding: 16px; box-sizing: border-box; }
.bl-dev[hidden] { display: none; }
.bl-dev-box { width: min(680px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; background: #1e1f22; color: #dbdee1; border: 1px solid rgba(var(--primary-orange-rgb), .5); border-radius: 14px; overflow: hidden; text-align: left; }
.bl-dev-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; background: #111214; color: var(--primary-orange); font-weight: 700; font-size: 1.05rem; }
.bl-dev-sec { padding: 14px 18px; border-bottom: 1px solid #2e3035; }
.bl-dev-sec h3 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .4px; text-transform: uppercase; color: #949ba4; }
.bl-dev-sec p { margin: 0 0 10px; font-size: .9rem; color: #b5bac1; }
.bl-dev-sec p span { color: var(--primary-orange); font-weight: 700; }
.bl-dev-users { flex: 1; min-height: 0; display: flex; flex-direction: column; border-bottom: 0; }
.bl-dev-users .text-input { width: 100%; box-sizing: border-box; margin: 0 0 10px; }
.bl-dev-list { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.bl-dev-user { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #2b2d31; }
.bl-dev-user-name { font-weight: 600; color: #f2f3f5; margin-right: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bl-dev-chip { font-size: .66rem; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: #3f4147; color: #dbdee1; text-transform: uppercase; }
.bl-dev-chip.on { background: #23a55a; color: #fff; }
.bl-dev-chip.bad { background: #da373c; color: #fff; }
.bl-dev-chip.warn { background: #f0b232; color: #111; }
.bl-dev-user button, .bl-dev-user select { all: unset; box-sizing: border-box; height: 30px; padding: 0 10px; border-radius: 6px; background: #404249; color: #f2f3f5; font-size: .8rem; font-weight: 600; }
.bl-dev-user button:hover { background: #4e5058; }
.bl-dev-user button.danger { background: #da373c; }
.bl-dev-user button.danger:hover { background: #a12828; }
.bl-dev-user button:focus-visible, .bl-dev-user select:focus-visible { outline: 2px solid var(--primary-orange); }
.bl-dev-user select { padding-right: 6px; background: #111214; }
.bl-dev-user select option { background: #111214; color: #f2f3f5; }
.bl-dev-msg { flex: none; min-height: 1.3em; padding: 8px 18px 12px; font-size: .88rem; color: var(--primary-orange); }

@media (max-width: 720px) {
  .bl-chat { left: 0; bottom: 58px; }
  .dc-topic { display: none; }
  .dc-head b { flex: 1; }
  .dc-members { position: absolute; top: 50px; right: 0; bottom: 0; z-index: 2; box-shadow: -8px 0 20px rgba(0, 0, 0, .4); }
  .bl-chat:not(.show-members) .dc-members { display: none; }
  .dc-row { padding-right: 16px; }
  .bl-nav-dev { margin-top: 0; border: 0; }
}

/* never render style/script nodes as text (extension-injected styles) */
head, style, script, link, meta, title { display: none !important; }
#devTab { white-space: nowrap; }

/* offline members + Blossom AI picture */
.dc-member.off { opacity: .45; }
.dc-member.off:hover { opacity: .8; }
.dc-member.off .dc-ava::after { background: #80848e; }
.dc-ava.ai { background: #2a0f22; }
.dc-ava.ai img { image-rendering: pixelated; border-radius: 50%; }
.dc-badge.ai { background: #5865f2; color: #fff; }

/* hide the real pointer while the site cursor is being drawn (only on mouse devices, only once the site cursor is confirmed moving) */
@media (hover: hover) and (pointer: fine) {
  body.bl-cursor-live:not(.cursor-disabled), body.bl-cursor-live:not(.cursor-disabled) *, html:has(body.bl-cursor-live:not(.cursor-disabled)) { cursor: none !important; }
}
body:not(.bl-cursor-live):not(.cursor-disabled), body:not(.bl-cursor-live):not(.cursor-disabled) * { cursor: auto !important; }
#bl-cursor { z-index: 2147483647 !important; pointer-events: none !important; }

/* ---------- Changelog ---------- */
.bl-cl { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 16px; box-sizing: border-box; background: rgba(5, 2, 6, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.bl-cl.open { opacity: 1; }
.bl-cl-box { width: min(560px, 100%); max-height: min(84vh, 720px); display: flex; flex-direction: column; overflow: hidden; text-align: left; color: #e9e6ea; background: linear-gradient(180deg, #1d1420, #141116 40%); border: 1px solid rgba(var(--primary-orange-rgb), .45); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(var(--primary-orange-rgb), .16); transform: translateY(18px) scale(.97); transition: transform .28s cubic-bezier(.2, 1.3, .4, 1); }
.bl-cl.open .bl-cl-box { transform: none; }
.bl-cl-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: radial-gradient(120% 160% at 0 0, rgba(var(--primary-orange-rgb), .22), transparent 60%); }
.bl-cl-head img { width: 46px; height: 46px; border-radius: 12px; image-rendering: pixelated; }
.bl-cl-head > div { flex: 1; min-width: 0; }
.bl-cl-title { font-size: 1.35rem; font-weight: 800; color: #fff; }
.bl-cl-sub { font-size: .82rem; color: #a99fad; margin-top: 2px; }
.bl-cl-x { all: unset; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #b9b2bc; cursor: pointer; }
.bl-cl-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bl-cl-list { flex: 1; overflow-y: auto; padding: 18px 20px 6px 38px; scrollbar-width: thin; scrollbar-color: rgba(var(--primary-orange-rgb), .5) transparent; }
.bl-cl-rel { position: relative; padding: 0 0 20px 18px; border-left: 2px solid rgba(255, 255, 255, .09); }
.bl-cl-rel:last-child { border-left-color: transparent; padding-bottom: 8px; }
.bl-cl-dot { position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #3a3340; border: 2px solid #141116; }
.bl-cl-rel.latest .bl-cl-dot { background: var(--primary-orange); box-shadow: 0 0 0 4px rgba(var(--primary-orange-rgb), .22), 0 0 14px rgba(var(--primary-orange-rgb), .9); }
.bl-cl-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.bl-cl-v { font-weight: 800; color: var(--primary-orange); letter-spacing: .03em; }
.bl-cl-tag { padding: 1px 7px; border-radius: 99px; font-size: .64rem; font-weight: 800; letter-spacing: .08em; background: var(--primary-orange); color: #190a12; }
.bl-cl-date { color: #8d8591; }
.bl-cl-rel h3 { margin: 4px 0 8px; font-size: 1.08rem; font-weight: 700; color: #fff; }
.bl-cl-rel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bl-cl-rel li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.4; color: #cfc9d2; }
.bl-cl-rel li i { flex: none; width: 18px; margin-top: 3px; text-align: center; font-size: .82rem; color: rgba(var(--primary-orange-rgb), .95); }
.bl-cl-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .25); }
.bl-cl-foot label { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #a99fad; cursor: pointer; }
.bl-cl-foot input { accent-color: var(--primary-orange); width: 15px; height: 15px; }
.bl-cl-ok { all: unset; padding: 9px 22px; border-radius: 10px; font-weight: 700; background: var(--primary-orange); color: #190a12; cursor: pointer; }
.bl-cl-ok:hover { filter: brightness(1.1); }
@media (max-width: 720px) { #updatesTab { display: none; } .bl-cl-list { padding-left: 28px; } }
@media (prefers-reduced-motion: reduce) { .bl-cl, .bl-cl-box { transition: none; } }
.bl-cl .bl-cl-list .bl-cl-rel { margin: 0; padding: 0 0 20px 18px; border: 0; border-left: 2px solid rgba(255, 255, 255, .09); border-radius: 0; background: none; background-image: none; box-shadow: none; backdrop-filter: none; width: auto; max-width: none; box-sizing: border-box; overflow: visible; }
.bl-cl .bl-cl-list .bl-cl-rel::before, .bl-cl .bl-cl-list .bl-cl-rel::after { content: none; }
.bl-cl .bl-cl-list .bl-cl-rel:last-child { border-left-color: transparent; padding-bottom: 8px; }
.bl-cl .bl-cl-rel h3 { margin: 4px 0 8px; padding: 0; border: 0; text-align: left; background: none; }
.bl-cl .bl-cl-rel ul, .bl-cl .bl-cl-rel li { margin: 0; padding: 0; border: 0; background: none; }

.bl-dev-user button.petal { background: linear-gradient(180deg, #ff7ab5, #e0206f); color: #fff; }
.bl-dev-user button.petal:hover { filter: brightness(1.12); }
.bl-dev-user button:disabled { opacity: .38; cursor: not-allowed; }
.bl-dev-bans { max-height: 240px; }
.bl-dev-bans .bl-dev-list { min-height: 60px; }

/* device/IP ban overlay */
.bl-ban-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(800px 500px at 50% 40%, rgba(218,55,60,.18), rgba(8,6,10,.92)); padding: 24px; }
.bl-ban-overlay[hidden] { display: none; }
.bl-ban-card { max-width: 440px; text-align: center; padding: 38px 30px; border-radius: 22px; background: linear-gradient(180deg, #21181d, #160f13); border: 1px solid rgba(218,55,60,.45); box-shadow: 0 24px 60px rgba(0,0,0,.55); animation: cxIn .4s ease both; }
.bl-ban-card i { font-size: 3rem; color: #da373c; }
.bl-ban-card h2 { margin: 12px 0 8px; color: #fff; font-size: 1.4rem; }
.bl-ban-card p { margin: 0 0 6px; color: #cbbcc6; font-size: .95rem; }
.bl-ban-card .bl-ban-sub { font-size: .82rem; color: #8a7a84; }

/* ---------- performance mode: freeze motion & heavy backgrounds ---------- */
body.bl-perf canvas#blEmbers,
body.bl-perf canvas#blBgX { display: none !important; }
body.bl-perf, body.bl-perf * {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
body.bl-perf .cx-fx, body.bl-perf .cx-blob, body.bl-perf .cx-logo img { display: none !important; }
body.bl-perf .cx { background: linear-gradient(180deg, #150d14 0%, #0c080d 100%) !important; }
body.bl-perf .bl-embers::before, body.bl-perf .bl-embers::after { display: none !important; }
.bl-dev-grant { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; margin-top: 2px; border-top: 1px solid #3a3c42; }
.bl-dev-grant input { flex: 1 1 110px; min-width: 90px; height: 30px; box-sizing: border-box; padding: 0 10px; border-radius: 6px; border: 1px solid #111214; background: #111214; color: #f2f3f5; font: inherit; font-size: .85rem; outline: none; }
.bl-dev-grant input:focus { border-color: var(--primary-orange); }
.bl-dev-user button.give { background: #23a55a; } .bl-dev-user button.give:hover { background: #1a8a49; }
