:root {
  color-scheme: dark;
  --bg: #080704;
  --bg-soft: #0e0c08;
  --panel: #15120c;
  --panel-2: #1d180e;
  --panel-3: #27200f;
  --gold-1: #fff0a3;
  --gold-2: #f8cc45;
  --gold-3: #dda022;
  --gold-4: #9c6810;
  --gold-muted: #bca66a;
  --text: #fffdf5;
  --muted: #bcb4a2;
  --line: #493814;
  --danger: #ff6b6b;
  --success: #62d98a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; background: radial-gradient(circle at 50% -20%, #382507 0, var(--bg) 36rem); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold-2); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.danger { color: var(--danger); }
.success { color: var(--success); }
.eyebrow { color: var(--gold-2); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.startup { min-height: 100dvh; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--gold-muted); }
.startup img { width: 84px; height: 84px; object-fit: contain; }

.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(320px, .9fr); }
.auth-art { padding: clamp(32px, 7vw, 90px); display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; background: radial-gradient(circle at 30% 25%, #5c3b08, transparent 35%), linear-gradient(150deg, #171006, #050403); border-right: 1px solid var(--line); }
.auth-logo { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 14px 34px #eaa71c55); }
.auth-art h1 { max-width: 720px; margin: 20px 0 10px; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .96; letter-spacing: -.06em; }
.auth-art p { max-width: 600px; color: #d4c6a4; font-size: 1.1rem; }
.auth-panel { min-height: 100dvh; display: grid; align-items: center; padding: 28px; }
.auth-card { width: min(520px, 100%); margin: auto; background: #12100bd9; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #090806; padding: 6px; border-radius: 14px; margin-bottom: 26px; }
.auth-tab { border: 0; background: transparent; padding: 11px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 800; }
.auth-tab.active { background: var(--panel-3); color: var(--gold-1); }
.auth-support-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: .8rem; text-align: center; }
.auth-support-divider::before, .auth-support-divider::after { content: ""; height: 1px; flex: 1; background: #493814; }
.auth-support-button img { width: 25px; height: 25px; object-fit: contain; }
.guest-support-head { text-align: center; }
.guest-support-head > .btn { display: flex; width: max-content; margin: -10px 0 12px; }
.guest-support-head > img { width: 72px; height: 72px; object-fit: contain; }
.guest-support-head h2 { margin: 6px 0; }
.guest-support-head p { margin: 0 0 16px; color: var(--muted); }
.guest-staff-privacy { display: grid; gap: 5px; margin: 15px 0; padding: 13px 14px; border: 1px solid #6b501b; border-radius: 14px; background: #1c160b; color: #f9e6a4; font-size: .88rem; }
.guest-staff-privacy span { color: var(--muted); }
.guest-staff-privacy.compact { margin-bottom: 10px; }
.guest-support-messages { display: grid; gap: 10px; max-height: 350px; overflow-y: auto; margin: 12px -4px; padding: 4px; }
.guest-support-message { width: min(88%, 560px); padding: 11px 13px; border: 1px solid #493814; border-radius: 15px; background: #100d08; }
.guest-support-message.from-staff { justify-self: start; border-color: #72551c; background: #211a0c; }
.guest-support-message.from-guest { justify-self: end; background: #292217; }
.guest-support-message > div { display: flex; justify-content: space-between; gap: 10px; color: var(--gold-1); font-size: .78rem; }
.guest-support-message time { color: var(--muted); font-size: .7rem; }
.guest-support-message p { margin: 6px 0 0; overflow-wrap: anywhere; }
.guest-support-composer .field { margin-bottom: 8px; }
.guest-support-composer textarea { min-height: 88px; }
.guest-support-closed { display: grid; gap: 12px; text-align: center; padding-top: 12px; color: var(--muted); }

.field { display: grid; gap: 7px; margin: 14px 0; }
.field > span { font-size: .88rem; font-weight: 800; color: #e6ddc9; }
.field input, .field textarea, .field select, .input { width: 100%; min-height: 46px; border: 1px solid #57441c; background: #0b0906; color: var(--text); border-radius: 12px; padding: 11px 13px; outline: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px #dda02226; }
.field small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.span-2 { grid-column: 1 / -1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid #69521e; border-radius: 12px; background: #211b0f; color: var(--gold-1); padding: 9px 15px; font-weight: 850; cursor: pointer; text-decoration: none; }
.btn:hover { background: #2b220f; border-color: var(--gold-3); }
.btn:disabled { opacity: .48; cursor: not-allowed; filter: saturate(.45); }
.btn.primary { background: linear-gradient(135deg, #ffe173, #d59618); color: #181005; border: 0; }
.btn.danger-btn { background: #321718; border-color: #6c2a2d; color: #ffc3c3; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: .84rem; }
.btn.wide { width: 100%; }
.form-message { min-height: 22px; color: var(--muted); font-size: .9rem; }
.contact-confirmation-notice { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid #69521e; border-radius: 12px; background: #211b0f; color: #ead79f; font-size: .9rem; }
.request-sent-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 25%, #392605 0, #100c05 34%, #050403 72%); }
.request-sent-card { width: min(680px, 100%); text-align: center; border: 1px solid #8d6317; border-radius: 30px; padding: clamp(28px, 7vw, 64px); background: #0e0c08ed; box-shadow: 0 34px 100px #000c, 0 0 80px #dda0221c; }
.request-sent-card > img { width: 92px; height: 92px; object-fit: contain; }
.request-sent-card h1 { margin: 12px 0; font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -.045em; }
.request-sent-card > p { color: #d4c6a4; }
.request-check { display: grid; place-items: center; width: 54px; height: 54px; margin: -22px auto 18px; border: 5px solid #0e0c08; border-radius: 50%; background: linear-gradient(135deg, #ffe173, #d59618); color: #171006; font-size: 1.7rem; font-weight: 950; }
.request-review-note { display: grid; gap: 7px; margin: 26px 0; padding: 18px; border: 1px solid #69521e; border-radius: 16px; background: #1b160c; color: #fff0c0; }
.request-review-note span { color: #c6b893; }

.app-shell { min-height: 100dvh; padding-bottom: 104px; }
.topbar { position: sticky; top: 0; z-index: 60; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 clamp(16px, 4vw, 44px); background: #090805e8; border-bottom: 1px solid #3f3012; backdrop-filter: blur(16px); }
.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 12px; }
.brand-lockup img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 950; color: var(--gold-1); letter-spacing: -.02em; }
.account-button { display: flex; align-items: center; gap: 9px; min-width: 0; border: 1px solid #4b3916; background: #17130c; border-radius: 999px; padding: 5px 10px 5px 5px; cursor: pointer; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #332711; border: 1px solid #87631c; display: grid; place-content: center; color: var(--gold-1); font-weight: 900; flex: 0 0 auto; }
.avatar.large { width: 104px; height: 104px; border: 4px solid #0c0a06; font-size: 2rem; }
.avatar.tiny { width: 30px; height: 30px; font-size: .72rem; }
.rank-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-1); font-size: .8rem; font-weight: 900; }
.rank-badge img { width: 20px; height: 20px; object-fit: contain; }
.main { width: min(1320px, 100%); margin: 0 auto; padding: clamp(18px, 4vw, 42px); }
.main.full-chat { width: 100%; height: calc(100dvh - 70px - 96px); padding: 0; margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 8px 0 26px; }
.page-head h1 { margin: 3px 0 0; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.055em; }
.section-title { margin: 0 0 14px; font-size: 1.25rem; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: linear-gradient(150deg, #19150d, #100e09); border: 1px solid #453613; border-radius: 20px; padding: 20px; box-shadow: 0 12px 36px #0004; }
.card h2, .card h3 { margin-top: 0; }
.empty { display: grid; place-items: center; min-height: 180px; text-align: center; border: 1px dashed #59451b; border-radius: 18px; color: var(--muted); padding: 26px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 12px; }
.stat { border: 1px solid #493814; border-radius: 16px; background: #110e08; color: var(--text); padding: 16px; text-align: left; }
.stat b { display: block; color: var(--gold-1); font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: .86rem; }
.stat small { display: block; margin-top: 12px; color: var(--gold-3); font-weight: 800; opacity: .72; transform: translateX(0); transition: opacity .18s ease; }
.stat.clickable { width: 100%; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.stat.clickable:hover, .stat.clickable:focus-visible { border-color: var(--gold-3); background: #1d170b; transform: translateY(-2px); outline: none; }
.stat.clickable:hover small, .stat.clickable:focus-visible small { opacity: 1; }
.live-monitor-state { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #5a451c; border-radius: 999px; background: #151109; color: #cbbd9d; padding: 7px 11px; font-size: .8rem; font-weight: 850; white-space: nowrap; }
.live-monitor-state i, .activity-now i { width: 9px; height: 9px; border-radius: 50%; background: #8f815f; box-shadow: 0 0 0 4px #8f815f1c; }
.live-monitor-state.watching { border-color: #80601e; color: var(--gold-1); }
.live-monitor-state.watching i { background: var(--gold-3); box-shadow: 0 0 0 4px #dda02220; animation: monitorPulse 1.8s ease-in-out infinite; }
.live-monitor-state.activity { border-color: #a64a22; background: #2a130b; color: #ffbd8e; }
.live-monitor-state.activity i, .activity-now i { background: #ff7a3d; box-shadow: 0 0 0 4px #ff7a3d24; animation: monitorPulse .9s ease-in-out infinite; }
.live-monitor-state.error { border-color: #6c2a2d; color: #ffc3c3; }
.live-security-stats { grid-template-columns: repeat(4, minmax(130px, 1fr)); margin-bottom: 18px; }
.live-activity-card { padding: 0; overflow: hidden; }
.live-activity-card .section-heading { padding: 18px 20px 4px; }
.sign-in-table td { vertical-align: middle; }
.sign-in-table tr.active-attempt td { background: #2a160a; }
.activity-now { display: inline-flex; align-items: center; gap: 7px; color: #ffbd8e; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.login-result { display: inline-flex; border: 1px solid; border-radius: 999px; padding: 4px 8px; font-size: .75rem; font-weight: 900; }
.login-result.success { border-color: #7b5c1d; background: #241b0b; color: var(--gold-1); }
.login-result.failed { border-color: #73302c; background: #2d1413; color: #ffc0b7; }
@keyframes monitorPulse { 0%,100% { transform: scale(.82); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }

.profile-card { padding: 0; overflow: hidden; }
.profile-banner { height: clamp(170px, 28vw, 280px); background: linear-gradient(120deg, #654309, #1a1308 55%, #9f6e11); background-size: cover; background-position: center; position: relative; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, #0c0a07e8); }
.profile-body { position: relative; padding: 0 clamp(20px, 4vw, 42px) 34px; margin-top: -48px; z-index: 2; }
.profile-heading { display: flex; align-items: flex-end; gap: 18px; min-height: 104px; }
.profile-name { padding-bottom: 8px; min-width: 0; }
.profile-name h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.7rem); overflow-wrap: anywhere; }
.profile-actions { margin-left: auto; padding-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.profile-copy { max-width: 760px; color: #ddd4c0; white-space: pre-wrap; }

.updates-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.update-banner-stack { display: grid; gap: 14px; margin-bottom: 28px; }
.updates-image-carousel { position: relative; min-height: clamp(260px, 38vw, 430px); margin: 0 0 16px; overflow: hidden; border: 1px solid #765619; border-radius: 24px; background: #151007; box-shadow: 0 18px 56px #0007; }
.update-selector-banner { display: block; width: 100%; margin: 0; padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.update-selector-banner:hover, .update-selector-banner.selected, .update-person-banner:hover, .update-person-banner.selected { border-color: var(--gold-2); box-shadow: 0 0 0 2px #e5a91555, 0 18px 56px #0008; }
.update-image-slide { background-position: center; background-size: cover; }
.update-image-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #00000008 20%, #000000d9 100%); }
.update-image-slide .slide-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 840px; }
.update-image-slide .slide-copy > span { color: var(--gold-1); font-weight: 950; text-transform: uppercase; letter-spacing: .11em; font-size: .8rem; }
.update-image-slide .slide-copy > strong { font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; text-shadow: 0 3px 24px #000; }
.update-image-slide .slide-copy > small { color: #eee4c9; font-size: 1rem; text-shadow: 0 2px 12px #000; }
.empty-image-banner { display: flex; align-items: flex-end; padding: clamp(24px, 5vw, 46px); background: radial-gradient(circle at 75% 20%, #c28b1c55, transparent 33%), linear-gradient(135deg, #3b2809, #0d0a05 70%); }
.empty-image-banner > span { display: flex; flex-direction: column; position: relative; z-index: 1; }
.empty-image-banner strong { font-size: clamp(2rem, 5vw, 4rem); }
.empty-image-banner small { color: #eadcae; margin-top: 6px; }
.update-person-banner { position: relative; width: 100%; min-height: clamp(150px, 22vw, 230px); overflow: hidden; border: 1px solid #654a16; border-radius: 21px; background-color: #171107; background-position: center; background-size: cover; color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 15px 42px #0006; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.update-person-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080603ed 0%, #090704b3 45%, #09070433 100%); }
.update-person-banner > span { position: relative; z-index: 1; display: flex; min-height: inherit; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: clamp(22px, 4vw, 38px); }
.update-person-banner strong { font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1; text-shadow: 0 3px 22px #000; }
.update-person-banner small { margin-top: 7px; color: #e7dcc3; text-shadow: 0 2px 12px #000; }
.empty-person-banner:nth-of-type(2) { background: radial-gradient(circle at 82% 30%, #dba51f66, transparent 28%), linear-gradient(135deg, #3b290a, #100c06 68%); }
.empty-person-banner:nth-of-type(3) { background: radial-gradient(circle at 76% 40%, #f5cf5b55, transparent 30%), linear-gradient(135deg, #4b330b, #100c06 70%); }
.empty-person-banner:nth-of-type(4) { background: radial-gradient(circle at 85% 20%, #ad741955, transparent 34%), linear-gradient(135deg, #332208, #100c06 68%); }
.updates-results { scroll-margin-top: 88px; }
.updates-results > .official-links { margin: 0 0 18px; padding: 0 0 14px; }
.update-filter-banner { margin-bottom: 18px; padding: clamp(18px, 3vw, 26px); border: 1px solid #755719; border-radius: 20px; background: radial-gradient(circle at 88% 0, #b77e1430, transparent 42%), #171208; box-shadow: inset 0 1px 0 #ffd97012; }
.update-filter-banner h1 { margin: 3px 0 2px; font-size: clamp(2rem, 5vw, 3.4rem); }
.update-filter-banner p { margin: 0; color: var(--gold-muted); }
.update-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.official-links { display: flex; gap: 9px; overflow-x: auto; padding: 14px 0 0; margin-top: 4px; border-top: 1px solid #463411; }
.official-links a { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; border: 1px solid #594316; border-radius: 12px; background: #141007; color: var(--text); padding: 9px 12px; text-decoration: none; }
.official-links a:hover { border-color: var(--gold-3); }
.official-links span { color: #d9d0bf; }
.official-links strong { color: var(--gold-1); font-size: .8rem; }
.filter-chip { border: 1px solid #594316; border-radius: 999px; background: #120f09; color: #b8ae99; min-height: 40px; padding: 8px 14px; cursor: pointer; font-weight: 800; }
.filter-chip:hover, .filter-chip.active { border-color: var(--gold-3); color: #1a1105; background: var(--gold-3); }
.banner-carousel { position: relative; min-height: 230px; margin-bottom: 20px; overflow: hidden; border: 1px solid #634919; border-radius: 22px; background: radial-gradient(circle at 25% 20%, #a87516, transparent 34%), linear-gradient(135deg, #382506, #0d0a05 70%); box-shadow: inset 0 -90px 100px #0008; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transform: translateX(18px); transition: opacity .55s ease, transform .55s ease; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: clamp(22px, 5vw, 44px); pointer-events: none; }
.banner-slide.active { opacity: 1; transform: translateX(0); }
.banner-slide > span { color: var(--gold-1); font-weight: 950; text-transform: uppercase; letter-spacing: .11em; font-size: .8rem; text-shadow: 0 2px 10px #000; }
.banner-slide strong { max-width: 760px; font-size: clamp(1.7rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.04em; text-shadow: 0 3px 24px #000; }
.banner-slide small { color: #e0d1a9; }
.banner-carousel.compact { width: 100%; height: 100%; min-height: 150px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.banner-carousel.compact .banner-slide { padding: 18px; }
.banner-carousel.compact .banner-slide strong { font-size: 1.35rem; }
.banner-carousel.compact .banner-slide > span { font-size: .7rem; }
.update-card { min-height: 190px; display: flex; flex-direction: column; overflow: hidden; }
.update-thumbnail { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: 13px; object-fit: cover; background: #090704; }
.update-card time { color: var(--gold-muted); font-size: .82rem; }
.update-card p { white-space: pre-wrap; color: #ded7c7; }
.update-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.original-link { color: var(--gold-1); font-weight: 850; text-decoration: none; }
.original-link:hover { text-decoration: underline; }
.social-update { border-color: #654b18; }
.banner-manager { margin-bottom: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading h3 { margin: 3px 0 0; }
.banner-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.banner-manager-item { min-width: 0; display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 13px; border: 1px solid #453613; border-radius: 15px; padding: 10px; background: #0e0b06; }
.banner-manager-item > img { width: 145px; height: 112px; object-fit: cover; border-radius: 10px; background: #050402; }
.banner-manager-item h4 { margin: 8px 0 3px; }
.banner-manager-item p { margin: 0 0 5px; color: var(--muted); overflow-wrap: anywhere; }
.banner-manager-item .row-actions { margin-top: 9px; }
.updates-list-heading { margin: 6px 0 12px; }

.community-layout { height: 100%; display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; background: #0a0805; overflow: hidden; }
.channel-sidebar, .member-sidebar { min-width: 0; background: #100d08; overflow-y: auto; }
.channel-sidebar { border-right: 1px solid #382b11; }
.member-sidebar { border-left: 1px solid #382b11; }
.chat-hero { min-height: 150px; padding: 24px 20px; display: flex; align-items: flex-end; position: relative; background: radial-gradient(circle at 30% 20%, #966513aa, transparent 45%), linear-gradient(145deg, #342307, #0b0906); overflow: hidden; }
.chat-hero::after, .member-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, #090805e8); pointer-events: none; }
.chat-hero h2 { position: relative; z-index: 1; margin: 0; color: var(--gold-1); overflow-wrap: anywhere; }
.sidebar-block { padding: 16px; }
.sidebar-label { margin: 0 0 10px; color: var(--gold-muted); font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.channel-button { width: 100%; border: 0; background: transparent; border-radius: 10px; padding: 10px 11px; color: #c9c0ae; text-align: left; cursor: pointer; font-weight: 750; }
.channel-button:hover, .channel-button.active { background: #29200e; color: var(--gold-1); }
.chat-panel { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.chat-header { height: 64px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid #382b11; background: #0d0b07; }
.chat-header h1 { margin: 0; font-size: 1.05rem; }
.chat-live-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #a99f8c; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.chat-live-status i { width: 8px; height: 8px; border-radius: 50%; background: #8b7a55; }
.chat-live-status.connecting { color: var(--gold-1); }
.chat-live-status.connecting i { background: var(--gold-3); box-shadow: 0 0 0 4px #dda0221c; animation: monitorPulse 1.2s ease-in-out infinite; }
.message-list { overflow-y: auto; padding: 18px 20px; scroll-behavior: smooth; }
.message { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; gap: 10px; padding: 9px 6px; border-radius: 12px; }
.message:hover { background: #17130b; }
.message-main { min-width: 0; }
.message-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.message-author { border: 0; padding: 0; background: transparent; color: var(--gold-1); cursor: pointer; font-weight: 900; }
.message-time { color: #807967; font-size: .76rem; }
.message-body { color: #eee9dc; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.48; }
.message-deleted { color: #777064; font-style: italic; }
.message-menu-button { align-self: start; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #9f9784; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.message:hover .message-menu-button, .message-menu-button:focus { background: #2a210f; color: var(--gold-1); }
.reply-preview { border-left: 2px solid var(--gold-3); padding-left: 9px; margin-bottom: 5px; color: #a99f8c; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer { border-top: 1px solid #382b11; background: #0d0b07; padding: 12px 16px 16px; }
.replying { display: flex; justify-content: space-between; gap: 12px; color: var(--gold-muted); font-size: .84rem; margin-bottom: 8px; }
.composer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.composer textarea { resize: none; min-height: 48px; max-height: 140px; border: 1px solid #4d3c18; background: #151108; color: #fff; border-radius: 14px; padding: 12px; }
.member-tile { min-height: 92px; position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 12px; margin-bottom: 9px; border: 1px solid #3d2e10; border-radius: 14px; background: #181208 center/cover; overflow: hidden; cursor: pointer; }
.member-tile > * { position: relative; z-index: 1; }
.member-tile strong { text-shadow: 0 2px 12px #000; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #62d98a24; }

.context-menu { position: fixed; z-index: 10000; width: min(270px, calc(100vw - 24px)); background: #17130c; border: 1px solid #6b511c; border-radius: 14px; padding: 7px; box-shadow: 0 26px 80px #000c; }
.context-menu button { width: 100%; min-height: 38px; border: 0; background: transparent; color: #eee7d5; border-radius: 9px; padding: 8px 10px; text-align: left; cursor: pointer; }
.context-menu button:hover { background: #30250e; color: var(--gold-1); }
.context-menu hr { border: 0; border-top: 1px solid #4c3a15; margin: 6px; }
.context-menu .menu-label { padding: 5px 10px 2px; color: var(--gold-muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }

.staff-hero { text-align: center; padding: 34px 20px 20px; }
.staff-hero img { width: 116px; height: 116px; object-fit: contain; filter: drop-shadow(0 18px 30px #e6a81a33); }
.staff-hero h1 { margin: 4px 0 0; font-size: clamp(2rem, 6vw, 4rem); }
.staff-hero p { margin: 0; color: var(--gold-muted); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.staff-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: start; }
.staff-content { min-width: 0; }
.staff-tabs { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - 112px); overflow-y: auto; padding: 12px; background: #100d08; border: 1px solid #493814; border-radius: 18px; box-shadow: 0 18px 50px #0005; }
.staff-menu-label { padding: 5px 10px 9px; color: var(--gold-muted); font-size: .74rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.staff-nav-group { margin: 0; padding-top: 10px; border-top: 1px solid #382b10; }
.staff-nav-group:first-of-type { padding-top: 0; border-top: 0; }
.staff-nav-heading { margin: 0 0 5px; padding: 0 10px; color: var(--gold-muted); font-size: .7rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.staff-nav-items { display: grid; gap: 5px; }
.staff-tab { width: 100%; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #bcb29d; padding: 10px 12px; cursor: pointer; font-weight: 800; text-align: left; }
.staff-tab:hover { background: #1b160c; border-color: #3f3012; color: var(--gold-1); }
.staff-tab.active { background: var(--gold-3); border-color: var(--gold-3); color: #181005; }
.guest-support-staff-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; min-height: 620px; }
.guest-support-thread-list { display: flex; flex-direction: column; gap: 8px; max-height: 720px; overflow-y: auto; padding-right: 3px; }
.guest-support-thread { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; width: 100%; border: 1px solid #493814; border-radius: 14px; background: #110e08; color: var(--text); padding: 12px; text-align: left; cursor: pointer; }
.guest-support-thread > span:first-child { display: grid; min-width: 0; gap: 3px; }
.guest-support-thread strong, .guest-support-thread small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-support-thread small { color: var(--muted); font-size: .72rem; }
.guest-support-thread > small { grid-column: 1 / -1; }
.guest-support-thread:hover, .guest-support-thread.active { border-color: var(--gold-3); background: #20190c; }
.guest-support-thread.new { border-left: 4px solid #d45047; }
.guest-support-thread.closed { opacity: .68; border-color: #47443f; }
.guest-support-status.new { border-color: #aa4a43; background: #351916; color: #ffb8b1; }
.guest-support-status.open { border-color: #80601e; background: #211a0c; color: var(--gold-1); }
.guest-support-status.closed { border-color: #56534d; background: #1d1d1b; color: #aaa79f; }
.guest-support-staff-chat { display: flex; flex-direction: column; min-width: 0; min-height: 620px; padding: 16px; }
.guest-support-staff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #3b2d11; }
.guest-support-staff-head h3 { margin: 4px 0 8px; }
.guest-support-staff-messages { display: grid; align-content: start; gap: 10px; flex: 1; max-height: 470px; overflow-y: auto; padding: 14px 3px; }
.guest-support-staff-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding-top: 10px; border-top: 1px solid #3b2d11; }
.guest-support-staff-composer .field { margin: 0; }
.guest-support-staff-composer textarea { min-height: 78px; }
.guest-support-closed-note { margin: 12px 0 0; padding: 12px; border: 1px solid #4c4942; border-radius: 12px; color: #aaa79f; text-align: center; }
.connection-note { margin-bottom: 18px; border-left: 3px solid var(--gold-3); background: #171207; border-radius: 0 14px 14px 0; padding: 14px 16px; }
.connection-note p { margin: 5px 0 0; color: var(--muted); }
.request-contact-status { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.request-contact-status span { padding: 5px 9px; border: 1px solid #765719; border-radius: 999px; background: #211a0c; color: #f5d878; font-size: .76rem; font-weight: 800; }
.request-contact-status span.legacy { border-color: #594842; background: #1c1715; color: #c8b8af; }
.source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.source-heading h3 { margin: 8px 0 0; }
.platform-pill { color: #1a1003; background: var(--gold-3); border-radius: 8px; padding: 5px 8px; font-size: .75rem; font-weight: 950; }
.social-source-card a { color: var(--gold-1); overflow-wrap: anywhere; }
.source-error { border: 1px solid #7d3f32; background: #2b1410; color: #ffd1c7; border-radius: 10px; padding: 10px; }
.cron-card { margin-top: 18px; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.copy-field code { display: block; min-width: 0; overflow-x: auto; white-space: nowrap; background: #090704; border: 1px solid #3e2e0f; border-radius: 10px; padding: 11px; color: #e9d596; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.data-table th, .data-table td { padding: 11px; border-bottom: 1px solid #3b2d11; text-align: left; vertical-align: top; }
.data-table th { color: var(--gold-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.status { display: inline-flex; border: 1px solid #5c4618; border-radius: 999px; padding: 3px 8px; color: var(--gold-1); font-size: .75rem; }
.member-status { font-weight: 900; text-transform: capitalize; }
.member-status.active { border-color: #5c4618; background: #211a0c; color: var(--gold-1); }
.member-status.suspended { border-color: #9a631d; background: #2b1a0b; color: #ffc879; }
.member-status.banned { border-color: #9b3d3d; background: #321516; color: #ffb5b5; }
.member-status-detail { display: block; max-width: 280px; margin-top: 5px; color: var(--muted); line-height: 1.35; }
.member-row-suspended td { background: #1d140b55; }
.member-row-banned td { background: #25101155; }
.queue-card { position: relative; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.queue-card.queue-new { border-color: #993d36; background: linear-gradient(150deg, #2b1412, #130c09); box-shadow: inset 4px 0 0 #d45047, 0 12px 36px #0004; }
.queue-status.queue-new { border-color: #aa4a43; background: #351916; color: #ffb8b1; }
.queue-card.queue-process { border-color: #5c4618; background: linear-gradient(150deg, #19150d, #100e09); }
.queue-status.queue-process { border-color: #80601e; background: #211a0c; color: var(--gold-1); }
.queue-card.queue-closed { border-color: #3e3c37; background: linear-gradient(150deg, #171716, #0e0e0d); box-shadow: none; }
.queue-card.queue-closed h3, .queue-card.queue-closed p { color: #aaa79f; }
.queue-card.queue-closed .muted { color: #7d7a73; }
.queue-status.queue-closed { border-color: #56534d; background: #1d1d1b; color: #aaa79f; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
details { margin: 14px 0; border-top: 1px solid #3b2d11; padding-top: 10px; }
summary { color: var(--gold-1); font-weight: 800; cursor: pointer; }
.case-timeline { margin: 12px 0 0 7px; padding-left: 16px; border-left: 2px solid #5d4618; }
.case-timeline > div { padding: 0 0 13px; }
.case-timeline time { color: var(--gold-muted); font-size: .76rem; }
.case-timeline p { margin: 3px 0; overflow-wrap: anywhere; }

.contact-page { min-height: calc(100dvh - 220px); display: grid; place-items: center; }
.contact-card { width: min(760px, 100%); text-align: center; }
.contact-card > img { width: 140px; height: 140px; object-fit: contain; }
.contact-card h1 { margin: 0; font-size: 2.8rem; }
.contact-card .department { color: var(--gold-muted); text-transform: uppercase; letter-spacing: .14em; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }

.modal-backdrop { position: fixed; z-index: 9000; inset: 0; display: grid; place-items: center; background: #000b; padding: 18px; }
.modal { width: min(620px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; background: #17130c; border: 1px solid #73561b; border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.modal-head h2 { margin: 0; }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #2a210f; cursor: pointer; }
.moderation-member { display: grid; gap: 3px; margin: 16px 0 12px; font-size: 1.05rem; }
.moderation-member span { color: var(--muted); font-size: .84rem; }
.moderation-current { display: grid; gap: 5px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid #59451b; border-radius: 14px; background: #100e09; }
.moderation-current span, .moderation-current small { color: var(--muted); }
.moderation-current.suspended { border-color: #81531b; background: #21160b; }
.moderation-current.banned { border-color: #7b3032; background: #281213; color: #ffc0c0; }
.moderation-actions { display: grid; gap: 13px; }
.moderation-action { padding: 16px; border: 1px solid #493814; border-radius: 16px; background: #100d08; }
.moderation-action h3 { margin: 0; }
.moderation-action > p { margin: 6px 0 10px; }
.moderation-action.permanent { border-color: #69292c; background: #1e1010; }
.toast { position: fixed; z-index: 12000; right: 18px; bottom: 118px; width: min(380px, calc(100vw - 36px)); background: #211a0e; border: 1px solid #84631f; border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow); }

.page-selector { --active: 0; --count: 4; position: fixed; z-index: 500; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(620px, calc(100% - 24px)); height: 70px; display: grid; grid-template-columns: repeat(var(--count), 1fr); align-items: stretch; padding: 7px; background: #0f0d09f2; border: 1px solid #4b3915; border-radius: 24px; box-shadow: 0 18px 70px #000b; backdrop-filter: blur(12px); }
.selector-piece { position: absolute; z-index: 0; top: 7px; bottom: 7px; left: 7px; width: calc((100% - 14px) / var(--count)); transform: translateX(calc(var(--active) * 100%)); border-radius: 17px; background: #3b2d13; border: 1px solid #74561b; box-shadow: inset 0 1px 0 #9e7a2d33; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.nav-button { position: relative; z-index: 1; min-width: 0; border: 0; background: transparent; color: #a69d8a; border-radius: 16px; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; font-size: .71rem; font-weight: 850; }
.nav-button img { width: 29px; height: 29px; object-fit: contain; opacity: .65; filter: saturate(.75); }
.nav-button.active { color: var(--gold-1); }
.nav-button.active img { opacity: 1; filter: none; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .community-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .member-sidebar { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .staff-workspace { grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; }
  .guest-support-staff-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .banner-manager-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .form-grid, .grid.two, .grid.three, .contact-actions { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .main { padding: 18px 14px; }
  .topbar { height: 62px; padding: 0 12px; }
  .brand-name { max-width: 42vw; }
  .account-button .account-copy { display: none; }
  .main.full-chat { height: calc(100dvh - 62px - 92px); }
  .community-layout { display: block; position: relative; }
  .channel-sidebar { position: absolute; z-index: 80; inset: 0 auto 0 0; width: min(285px, 84vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 24px 0 70px #000c; }
  .community-layout.channels-open .channel-sidebar { transform: translateX(0); }
  .chat-panel { height: 100%; }
  .chat-header { height: 56px; padding: 0 12px; }
  .mobile-channels { display: inline-flex !important; margin-right: 10px; }
  .message-list { padding: 12px 8px; }
  .message { grid-template-columns: 34px minmax(0, 1fr) 32px; gap: 7px; }
  .composer { padding: 9px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .staff-workspace { display: flex; flex-direction: column; }
  .staff-tabs { position: static; order: -1; width: 100%; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-menu-label { grid-column: 1 / -1; }
  .staff-nav-group { grid-column: 1 / -1; }
  .staff-nav-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-content { width: 100%; }
  .guest-support-staff-layout { grid-template-columns: 1fr; min-height: 0; }
  .guest-support-thread-list { max-height: 260px; }
  .guest-support-staff-chat { min-height: 560px; }
  .guest-support-staff-composer { grid-template-columns: 1fr; }
  .profile-heading { align-items: flex-start; flex-wrap: wrap; }
  .profile-actions { width: 100%; margin-left: 0; padding: 6px 0 0; }
  .updates-image-carousel { min-height: 250px; border-radius: 18px; }
  .update-person-banner { min-height: 145px; border-radius: 17px; }
  .update-filter-banner { border-radius: 16px; }
  .banner-manager-item { grid-template-columns: 1fr; }
  .banner-manager-item > img { width: 100%; height: 180px; }
  .page-selector { height: 64px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .nav-button span { font-size: .62rem; }
  .nav-button img { width: 25px; height: 25px; }
}

@media (min-width: 701px) { .mobile-channels { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
