:root {
  --bg: #000000;
  --bg-soft: #06000a;
  --panel: rgba(62, 13, 102, 0.9);
  --panel-2: rgba(48, 10, 80, 0.9);
  --line: rgba(210, 152, 255, 0.42);
  --text: #f8eeff;
  --muted: #d5b7f4;
  --accent: #d173ff;
  --accent-2: #8c36ff;
  --warn: #ffbd8f;
  --shadow: 0 24px 55px rgba(102, 16, 171, 0.34);
}

:root[data-theme="light"] {
  --bg: #f4f8fc;
  --bg-soft: #e8f1f8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(247, 251, 255, 0.94);
  --line: rgba(43, 99, 139, 0.2);
  --text: #102131;
  --muted: #4f6a80;
  --accent: #0b7fcb;
  --accent-2: #0e9d77;
  --warn: #ad5f2f;
  --shadow: 0 20px 45px rgba(18, 57, 88, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(980px 620px at -8% -14%, rgba(149, 66, 246, 0.24), transparent 62%),
    radial-gradient(920px 580px at 112% 118%, rgba(116, 26, 221, 0.2), transparent 58%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow-x: hidden;
}

body.live-room-view-page {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 30;
  font-family: "Manrope", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Final sitewide shell/header reset */
.shell {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.page {
  padding-top: 0 !important;
}

.site-header {
  top: 0 !important;
}

.header-inner {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  .shell {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
  }

  .site-header .header-inner {
    margin-top: 0 !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 760px) {
  body.live-room-view-page,
  body.live-room-view-page > main#liveRoomPageRoot.live-room-page-shell,
  body.live-room-view-page > main#liveRoomPageRoot.shell.page.live-page.live-room-page-shell {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
  }

  body.live-room-view-page > main#liveRoomPageRoot > #liveHomeModal.live-room-modal,
  body.live-room-view-page > main#liveRoomPageRoot > #liveHomeModal {
    margin: 0 !important;
    padding: 0 !important;
    inset: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
  }

  body.live-room-view-page > main#liveRoomPageRoot > #liveHomeModal > .live-room-modal-card {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    border-radius: 0 !important;
    border-top: 0 !important;
  }

  body.live-room-view-page > main#liveRoomPageRoot > #liveHomeModal .live-room-mobile-hud,
  body.live-room-view-page > main#liveRoomPageRoot > #liveHomeModal .live-room-mobile-topbar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.live-room-view-page > main#liveRoomPageRoot > #liveHomeModal .live-room-mobile-topbar {
    border-radius: 0 !important;
    border-top: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
  }
}

.header-inner {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-media {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 15, 23, 0.42);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-dark {
  display: none;
}

:root[data-theme="light"] .brand-logo-dark {
  display: block;
}

:root[data-theme="light"] .brand-logo-light {
  display: none;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-inner.nav-center-only {
  position: relative;
  justify-content: center;
}

.header-inner.nav-center-only .header-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.header-inner.nav-center-only .header-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.header-inner.nav-center-only .logout-link {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.header-inner.nav-center-only .header-nav-corner {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.header-inner.nav-center-only .header-nav-settings .header-nav-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.header-inner.nav-center-only .header-nav-corner .header-nav-settings .header-nav-menu {
  left: auto;
  right: 0;
  transform: none;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.header-nav-link {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #df8cff;
  text-decoration: none;
  padding: 0.38rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.header-nav-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.18rem 0.46rem 0.18rem 0.18rem;
  background: transparent;
  box-shadow: none;
}

.header-nav-icon-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-nav-mobile-icon {
  display: block;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 999px;
  filter: drop-shadow(0 0 10px rgba(216, 107, 255, 0.24));
}

.header-nav-mobile-icon-explore {
  background-image: url('/images/mobile-nav/explore.png');
}

.header-nav-mobile-icon-wall {
  background-image: url('/images/mobile-nav/wall.png');
}

.header-nav-mobile-icon-messages {
  background-image: url('/images/mobile-nav/messages.png');
}

.header-nav-mobile-icon-users {
  background-image: url('/images/mobile-nav/users.png');
}

.header-nav-mobile-icon-room {
  background-image: url('/images/mobile-nav/room.png');
}

.header-nav-mobile-icon-shop {
  background-image: url('/images/mobile-nav/shop.png');
}

.header-nav-mobile-icon-raffle {
  background-image: url('/images/mobile-nav/raffle.png');
}

.header-nav-mobile-icon-vip {
  background-image: url('/images/mobile-nav/vip.png');
}

.header-nav-mobile-icon-notifications {
  background-image: url('/images/mobile-nav/alerts.svg?v=20260703cachebust1');
}

.header-nav-mobile-icon-settings {
  background-image: url('/images/settings-icon-20260501-v3.png');
}

.header-nav-link:hover {
  transform: translateY(-2px);
  color: #f7d8ff;
  box-shadow: none;
}

.header-nav-link.active {
  color: #f7d8ff;
  box-shadow: none;
}

.header-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.header-nav-mobile-label {
  display: inline;
  line-height: 1;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.header-nav-corner-item {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.header-nav-corner-label {
  display: none;
  line-height: 1;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.dm-unread-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 185, 255, 0.9);
  background: #ff30e3;
  color: #1a001f;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 70, 218, 0.72);
}

.notifications-page {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.notifications-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.notifications-head-copy {
  display: grid;
  gap: 0.2rem;
}

.notifications-head-copy p {
  color: var(--muted);
  font-size: 0.88rem;
}

.notifications-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.notifications-list {
  display: grid;
  gap: 0.75rem;
}

.notifications-group {
  display: grid;
  gap: 0.8rem;
}

.notifications-group + .notifications-group {
  margin-top: 0.25rem;
}

.notifications-group-head {
  display: grid;
  gap: 0.18rem;
}

.notifications-group-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.notifications-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.notifications-group-list {
  display: grid;
  gap: 0.75rem;
}

.notification-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 18, 35, 0.62);
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.notification-item.is-unread {
  border-color: rgba(255, 115, 240, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 115, 240, 0.18);
}

.notification-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.notification-item-meta {
  display: grid;
  gap: 0.24rem;
}

.notification-item-kicker {
  color: #ffb6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notification-item-time {
  color: var(--muted);
  font-size: 0.76rem;
}

.notification-item-title {
  font-size: 1rem;
}

.notification-item-body {
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.notification-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.notification-item-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.notification-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.header-nav-settings {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.header-nav-settings-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
}

.header-nav-icon-badge-wrap .dm-unread-badge,
.header-nav-settings-badge {
  position: absolute;
  top: -8px;
  right: -2px;
  z-index: 2;
  pointer-events: none;
}

.header-nav-toggle {
  appearance: none;
}

.header-profile-pill {
  width: 3.76rem;
  height: 3.76rem;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.header-profile-pill:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.header-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-nav-profile {
  position: relative;
  display: flex;
  align-items: center;
}

.header-profile-popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(320px, 92vw);
  border: 1px solid rgba(210, 94, 255, 0.78);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 223, 120, 0.98), rgba(214, 157, 40, 0.98));
  box-shadow: 0 0 20px rgba(136, 34, 220, 0.42);
  padding: 0.6rem;
  z-index: 80;
  display: none;
  gap: 0.55rem;
}

.header-nav-profile.open .header-profile-popover {
  display: grid;
}

.header-profile-popover-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-profile-popover-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(210, 94, 255, 0.78);
  background: rgba(0, 0, 0, 0.65);
  object-fit: cover;
  flex: 0 0 auto;
}

.header-profile-popover-meta {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.header-profile-popover-meta strong {
  display: block;
  font-size: 0.96rem;
  color: #1a001f;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-profile-popover-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(26, 0, 31, 0.75);
  font-weight: 800;
}

.header-profile-popover-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.header-profile-popover-stat {
  border: 1px solid rgba(210, 94, 255, 0.6);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  padding: 0.45rem 0.55rem;
  display: grid;
  gap: 0.15rem;
  text-align: center;
}

.header-profile-popover-stat .muted {
  color: rgba(223, 140, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
}

.header-profile-popover-stat strong {
  color: #f7d8ff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
}

.header-profile-popover-stat-level {
  border-color: rgba(255, 210, 120, 0.72);
  background: linear-gradient(180deg, rgba(70, 20, 102, 0.92), rgba(28, 8, 46, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header-profile-popover-stat-level .muted {
  color: rgba(255, 222, 145, 0.96);
}

.header-profile-popover-stat-level strong {
  color: #ffd978;
}

.header-profile-popover-btn {
  width: 100%;
}

.header-profile-popover-xp {
  border: 1px solid rgba(210, 94, 255, 0.55);
  border-radius: 12px;
  background: rgba(14, 4, 24, 0.82);
  padding: 0.55rem 0.6rem 0.6rem;
  display: grid;
  gap: 0.38rem;
}

.header-profile-popover-xp-head,
.header-profile-popover-xp-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.header-profile-popover-xp-head span,
.header-profile-popover-xp-meta span {
  font-size: 0.72rem;
  font-weight: 800;
}

.header-profile-popover-xp-head span {
  color: rgba(255, 222, 145, 0.96);
}

.header-profile-popover-xp-head strong {
  color: #f7d8ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.header-profile-popover-xp-meta span {
  color: rgba(223, 140, 255, 0.92);
}

.header-profile-popover-xp-bar {
  position: relative;
  width: 100%;
  height: 0.56rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header-profile-popover-xp-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcf5a 0%, #ff83dc 52%, #9a68ff 100%);
  box-shadow: 0 0 14px rgba(255, 160, 219, 0.35);
}

.header-nav-gear {
  width: 100%;
  height: 100%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header-nav-gear:hover,
.header-nav-gear.active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.header-nav-gear-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
}

.header-nav-toggle::after {
  content: " \25be";
  font-size: 0.68rem;
}

.header-nav-gear::after {
  content: "";
}

.header-nav-settings.open .header-nav-toggle::after {
  content: " \25b4";
}

.header-nav-settings.open .header-nav-gear::after {
  content: "";
}

.header-nav-corner {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.header-download-apk {
  white-space: nowrap;
}

.header-nav-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 168px;
  border: 1px solid rgba(210, 94, 255, 0.78);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 223, 120, 0.98), rgba(214, 157, 40, 0.98));
  box-shadow: 0 0 20px rgba(136, 34, 220, 0.42);
  padding: 0.34rem;
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 0.34rem;
}

.header-nav-settings.open .header-nav-menu {
  display: flex;
}

.header-language-field {
  display: grid;
  gap: 0.28rem;
  padding: 0.3rem 0.1rem 0.15rem;
}

.header-language-label {
  font-size: 0.72rem;
  font-weight: 900;
  color: #1a001f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-language-help {
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(26, 0, 31, 0.72);
  font-weight: 700;
}

.header-language-select {
  width: 100%;
  min-width: 0;
  padding: 0.42rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.pull-refresh-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.55rem);
  left: 50%;
  z-index: 120;
  padding: 0.58rem 0.95rem;
  border: 1px solid rgba(222, 135, 255, 0.42);
  border-radius: 999px;
  background: rgba(27, 7, 42, 0.94);
  color: #f7d8ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -1.3rem);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pull-refresh-indicator.is-visible {
  opacity: 1;
}

.pull-refresh-indicator.is-armed {
  border-color: rgba(255, 194, 255, 0.72);
  box-shadow: 0 16px 36px rgba(172, 63, 255, 0.36);
}

.header-menu-link {
  border: 1px solid rgba(210, 94, 255, 0.78);
  border-radius: 999px;
  background: #000000;
  color: #df8cff;
  text-decoration: none;
  padding: 0.36rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.header-menu-link:hover {
  transform: translateY(-2px);
  border-color: #e9a0ff;
  color: #f7d8ff;
  box-shadow: 0 0 18px rgba(216, 107, 255, 0.56);
}

.header-menu-link.active {
  border-color: #e9a0ff;
  color: #f7d8ff;
  box-shadow: 0 0 14px rgba(216, 107, 255, 0.34);
}

.header-menu-link-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 185, 255, 0.9);
  background: #ff30e3;
  color: #1a001f;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 70, 218, 0.72);
  flex: 0 0 auto;
}

.theme-btn,
.logout-link,
.ghost-link {
  border: 1px solid rgba(210, 94, 255, 0.78);
  border-radius: 999px;
  background: #000000;
  color: #df8cff;
  text-decoration: none;
  padding: 0.44rem 0.74rem;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

:root[data-theme="light"] .theme-btn,
:root[data-theme="light"] .logout-link,
:root[data-theme="light"] .ghost-link {
  background: #000000;
  color: #df8cff;
}

.logout-link {
  color: #df8cff;
}

.theme-btn:hover,
.logout-link:hover,
.ghost-link:hover {
  transform: translateY(-2px);
  border-color: #e9a0ff;
  color: #f7d8ff;
  box-shadow: 0 0 22px rgba(216, 107, 255, 0.62);
}

.primary-nav {
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 0.45rem 0.64rem;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
  background: rgba(58, 196, 255, 0.16);
}

.page {
  padding: 1.2rem 0 2.2rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
  padding: 1.15rem;
}

.hero.hero-image-only {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0.85rem;
}

.hero.hero-image-only .hero-media {
  width: fit-content;
  max-width: min(560px, 100%);
  margin: 0 auto;
}

.hero.hero-image-only .hero-media.hero-media-card {
  padding: 0.12rem;
}

.hero.hero-image-only .hero-media.hero-media-card .hero-logo {
  width: min(500px, 92vw);
  padding: 0.12rem;
}

.terms-image-wrap {
  display: grid;
  justify-content: center;
  margin-bottom: 1rem;
}

.terms-image-pill {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.terms-image-pill.hero-media-card .hero-logo {
  width: min(500px, 92vw);
  max-width: 100%;
  border: 1px solid rgba(210, 152, 255, 0.58);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.86);
  padding: 0.1rem;
}

.hero-copy {
  display: grid;
  gap: 0.75rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-copy h1 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  text-decoration: none;
  background: #000000;
  color: #df8cff;
  border: 1px solid rgba(210, 94, 255, 0.78);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0.52rem 0.82rem;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn.secondary {
  color: #df8cff;
  background: #000000;
  border: 1px solid rgba(210, 94, 255, 0.78);
  box-shadow: 0 0 14px rgba(189, 56, 255, 0.42);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #e9a0ff;
  color: #f7d8ff;
  box-shadow: 0 0 22px rgba(216, 107, 255, 0.62);
}

.btn:active {
  transform: translateY(0);
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(35, 76, 109, 0.42), rgba(10, 26, 40, 0.35));
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.hero-logo {
  width: min(280px, 82%);
  max-height: 145px;
  object-fit: contain;
}

.hero-media.hero-media-card {
  min-height: 0;
  padding: 0.28rem;
  display: grid;
  place-items: center;
}

.hero-media.hero-media-card .hero-logo {
  width: min(520px, 100%);
  max-width: 100%;
  max-height: none;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 12, 20, 0.66);
  padding: 0.35rem;
}

.admin-hero-media.hero-media-card {
  min-height: 0;
  padding: 0.16rem;
}

.admin-hero-media.hero-media-card .admin-hero-logo {
  width: min(760px, 100%);
  max-width: 100%;
  max-height: 68vh;
  height: auto;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  padding: 0.12rem;
}

/* Terms page image-only override: remove container card, keep only image pill */
.terms-image-pill.hero-media.hero-media-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

.terms-image-pill.hero-media.hero-media-card .hero-logo {
  width: min(500px, 92vw);
  max-width: 100%;
  border: 1px solid rgba(210, 152, 255, 0.58);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.86);
  padding: 0.1rem;
}

.hero-logo-dark {
  display: none;
}

:root[data-theme="light"] .hero-logo-dark {
  display: block;
}

:root[data-theme="light"] .hero-logo-light {
  display: none;
}

.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0.95rem;
}

.panel h2 {
  font-size: 1.08rem;
}

.panel p {
  margin-top: 0.5rem;
}

.tile {
  text-decoration: none;
  display: block;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.list li {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(6, 18, 29, 0.34);
  padding: 0.65rem;
}

:root[data-theme="light"] .list li {
  background: rgba(240, 247, 255, 0.92);
}

.kpi {
  display: grid;
  gap: 0.16rem;
}

.kpi strong {
  font-size: 1.16rem;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.signed-user {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-signed-title {
  color: #f6c45d;
}

.admin-signed-title strong {
  color: #ffd97a;
}

.owner-signed-title {
  color: #f6c45d;
}

.owner-signed-title strong {
  color: #ffe8a6;
}

.owner-controls-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.52rem;
  max-width: 520px;
}

.owner-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.owner-check-row input {
  width: 16px;
  height: 16px;
}

.owner-lock-pill {
  border: 1px solid rgba(255, 216, 111, 0.85);
  border-radius: 999px;
  background: rgba(19, 12, 2, 0.9);
  color: #ffe39a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.62rem;
  white-space: nowrap;
}

/* ── Site Controls popup cards ─────────────────────────────────── */
.sc-intro {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.sc-grid--single {
  grid-template-columns: 1fr;
  max-width: 560px;
}

.sc-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--staff-outline, rgba(210, 94, 255, 0.28));
  border-radius: 14px;
  background: var(--staff-surface-soft, rgba(255, 255, 255, 0.04));
  transition: border-color 0.18s, background 0.18s;
}

.sc-card--warn {
  border-color: rgba(255, 162, 80, 0.55);
  background: rgba(255, 130, 0, 0.06);
}

.sc-card--security {
  border-color: var(--staff-outline-strong, rgba(236, 156, 255, 0.54));
}

.sc-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.sc-card-text {
  display: grid;
  gap: 0.22rem;
  flex: 1;
  min-width: 0;
}

.sc-card-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.sc-card-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.sc-card-status {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

/* Toggle switch */
.sc-toggle {
  flex-shrink: 0;
  display: inline-flex;
  cursor: pointer;
  margin-top: 2px;
}

.sc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.sc-toggle-track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--staff-outline, rgba(210, 94, 255, 0.28));
  transition: background 0.18s, border-color 0.18s;
}

.sc-toggle input:checked + .sc-toggle-track {
  background: var(--accent, #d173ff);
  border-color: var(--accent, #d173ff);
}

.sc-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s;
}

.sc-toggle input:checked + .sc-toggle-track .sc-toggle-thumb {
  transform: translateX(18px);
}

.sc-security-heading {
  color: var(--accent, #d173ff);
}

.sc-section--security {
  border-color: var(--staff-outline-strong, rgba(236, 156, 255, 0.54));
}

/* ── End Site Controls popup cards ─────────────────────────────── */

.metric {
  margin-top: 0.45rem;
  font-size: 1.9rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
}

.table-wrap {
  margin-top: 0.7rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-users-toolbar {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-metric-panel {
  min-height: 100%;
}

.admin-command-center,
.admin-section-card {
  scroll-margin-top: 6rem;
}

.admin-command-center {
  display: grid;
  gap: 0.9rem;
}

.admin-command-center-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin-quick-links,
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-quick-link,
.admin-filter-btn {
  min-height: 2.45rem;
}

.admin-filter-btn.active {
  border-color: rgba(255, 208, 88, 0.78);
  color: #ffe7a8;
  box-shadow: 0 0 14px rgba(255, 193, 81, 0.16);
}

.admin-section-card {
  display: grid;
  gap: 0.15rem;
}

.admin-section-hidden {
  display: none;
}

.admin-search-input {
  flex: 1 1 320px;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.6rem 0.72rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.86rem;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.6rem 0.66rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.admin-table th {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-open-btn {
  padding: 0.34rem 0.56rem;
  font-size: 0.75rem;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.admin-modal.hidden {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.admin-modal-card {
  position: relative;
  width: min(1120px, calc(100% - 1.2rem));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 6, 30, 0.97);
  box-shadow: 0 0 28px rgba(146, 44, 224, 0.46);
  padding: 0.9rem;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-modal-subtitle {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 1rem;
}

.admin-detail-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-detail-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 21, 37, 0.55);
  padding: 0.56rem;
  display: grid;
  gap: 0.22rem;
}

.admin-detail-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-detail-item strong {
  color: var(--text);
  font-size: 0.87rem;
  word-break: break-word;
}

.admin-detail-wide {
  grid-column: span 2;
}

.admin-actions-panel {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 20, 33, 0.6);
  padding: 0.7rem;
}

.admin-action-state-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-action-form {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.admin-action-form label {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-action-select,
.admin-action-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.56rem 0.66rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.86rem;
}

.admin-action-select:focus,
.admin-action-input:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-ban-fields {
  display: grid;
  gap: 0.42rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.56rem;
  background: rgba(12, 24, 39, 0.5);
}

.admin-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.admin-check-row input {
  width: 16px;
  height: 16px;
}

.admin-user-agent-cell {
  max-width: 320px;
  word-break: break-word;
}

.admin-session-active {
  color: #8fffd0;
}

.admin-session-inactive {
  color: #ffd5a1;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.1rem 0;
}

.auth-layout {
  width: min(1050px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.auth-panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.auth-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.auth-brand {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.65rem;
  display: grid;
  place-items: center;
  min-height: 140px;
  background: rgba(8, 22, 33, 0.36);
}

.auth-brand img {
  width: min(330px, 90%);
  max-height: 95px;
  object-fit: contain;
}

.auth-logo-dark {
  display: none;
}

:root[data-theme="light"] .auth-logo-dark {
  display: block;
}

:root[data-theme="light"] .auth-logo-light {
  display: none;
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 0.72rem;
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.auth-tabs {
  display: flex;
  gap: 0.45rem;
}

.tab-btn {
  border: 1px solid rgba(210, 94, 255, 0.78);
  border-radius: 999px;
  background: #000000;
  color: #df8cff;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

:root[data-theme="light"] .tab-btn {
  background: #000000;
  color: #df8cff;
}

.tab-btn.active {
  color: #df8cff;
  background: #000000;
  box-shadow: none;
}

.tab-btn:hover {
  transform: translateY(-2px);
  border-color: #e9a0ff;
  box-shadow: 0 0 20px rgba(214, 108, 255, 0.58);
  color: #f7d8ff;
}

.auth-form {
  display: grid;
  gap: 0.52rem;
}

.auth-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.62rem 0.72rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
}

:root[data-theme="light"] .auth-form input {
  background: rgba(255, 255, 255, 0.9);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.notice {
  min-height: 1.1rem;
  font-size: 0.85rem;
  color: var(--warn);
  margin: 0;
}

.terms-form {
  margin-top: 0.8rem;
  gap: 0.75rem;
}

.policy-read-wrap {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.policy-reader-block {
  display: grid;
  gap: 0.45rem;
}

.policy-reader-block h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.policy-reader {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 3, 16, 0.68);
  max-height: 250px;
  overflow: auto;
  padding: 0.76rem;
  line-height: 1.42;
  font-size: 0.84rem;
}

.policy-reader[data-read="true"] {
  border-color: rgba(213, 132, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(213, 132, 255, 0.25), 0 0 18px rgba(179, 56, 255, 0.28);
}

.policy-reader p {
  margin: 0 0 0.62rem;
}

.policy-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.52rem;
}

.settings-kv li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.settings-kv li span {
  color: var(--muted);
  font-size: 0.86rem;
}

.settings-kv li strong {
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
}

.settings-status-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.6rem;
}

.settings-status-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.46);
  padding: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.settings-status-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.status-pill {
  border: 1px solid rgba(210, 94, 255, 0.78);
  border-radius: 999px;
  background: #000000;
  color: #df8cff;
  padding: 0.22rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-pill.ok {
  border-color: rgba(58, 214, 140, 0.8);
  color: #8fffd0;
}

.status-pill.warn {
  border-color: rgba(255, 174, 92, 0.82);
  color: #ffd5a1;
}

.settings-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.62rem;
  max-width: 420px;
}

.settings-form label {
  font-size: 0.84rem;
  color: var(--muted);
}

.setting-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.58rem 0.7rem;
  background: rgba(5, 15, 24, 0.6);
  color: var(--text);
  font-size: 0.85rem;
}

.setting-select:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.employment-panel {
  display: grid;
  gap: 0.8rem;
}

.employment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.employment-sender-pill {
  border: 1px solid rgba(246, 196, 93, 0.52);
  border-radius: 999px;
  background: rgba(246, 196, 93, 0.1);
  color: #ffe5a5;
  padding: 0.42rem 0.72rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.employment-kpis,
.employment-identity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.employment-kpis div,
.employment-identity-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.46);
  padding: 0.68rem;
  min-width: 0;
}

.employment-kpis span,
.employment-identity-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.employment-kpis strong,
.employment-identity-grid strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.employment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.employment-form label,
.employment-sign-form label {
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.employment-notes-field,
.employment-user-search-field,
.employment-user-search-actions,
.employment-form-actions,
.employment-form .notice {
  grid-column: 1 / -1;
}

.employment-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.62rem 0.72rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  resize: vertical;
}

.employment-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.employment-doc-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.36);
  padding: 0.72rem;
}

.employment-doc-summary h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}

.employment-doc-summary ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.24rem;
  font-size: 0.84rem;
}

.employment-actions-cell {
  min-width: 230px;
}

.employment-actions-cell .btn {
  margin: 0.12rem 0.1rem 0.12rem 0;
  padding: 0.38rem 0.55rem;
  font-size: 0.74rem;
}

.employment-public-page {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.agency-page,
.agency-controls-page {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .agency-page,
  .agency-controls-page {
    padding-top: 1rem;
  }
}

.agency-hero,
.agency-controls-hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 24, 39, 0.94), rgba(95, 20, 140, 0.86));
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
}

.agency-hero h1,
.agency-controls-hero h1 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin: 0;
}

.agency-card-stack {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.agency-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  box-shadow: var(--shadow);
  padding: 0.5rem;
}

.agency-card-head,
.agency-stat-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.agency-card-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.agency-card-head h3 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.2;
}

.agency-card-head .eyebrow {
  font-size: 0.72rem;
  margin: 0 0 0.15rem;
  color: var(--muted);
}

.agency-card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agency-card-grid,
.agency-form-grid,
.agency-upload-grid,
.agency-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .agency-card-grid,
  .agency-form-grid,
  .agency-upload-grid,
  .agency-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.agency-card-grid > div,
.agency-stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem;
  transition: background 0.2s ease;
}

.agency-card-grid > div:hover {
  background: rgba(255, 255, 255, 0.06);
}

.agency-card-grid span,
.agency-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.agency-card-grid strong,
.agency-stat-card strong {
  display: block;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.agency-card-notes,
.agency-empty {
  margin-top: 0.4rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.agency-form {
  display: grid;
  gap: 0.6rem;
}

.agency-form label,
.agency-upload-grid label {
  display: grid;
  gap: 0.35rem;
}

.agency-form label > span,
.agency-upload-grid label > span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.agency-form input,
.agency-form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0.65rem;
}

.agency-form input:hover,
.agency-form textarea:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.agency-form input:focus,
.agency-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.agency-form input::placeholder,
.agency-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.agency-notes {
  min-height: 80px;
  resize: vertical;
  line-height: 1.3;
  padding: 0.5rem 0.65rem;
}

.agency-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.agency-status-pending,
.agency-status-under_review {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.agency-status-approved,
.agency-status-hired {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.agency-status-denied,
.agency-status-withdrawn,
.agency-status-fired {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.agency-doc-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.agency-doc-list li {
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: background 0.2s ease;
}

.agency-doc-list li:hover {
  background: rgba(255, 255, 255, 0.06);
}

.agency-doc-list li strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.agency-doc-list li span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.agency-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* File input styling */
.agency-form input[type="file"],
.agency-upload-grid input[type="file"] {
  padding: 0.5rem 0;
}

.agency-form input[type="file"]::file-selector-button,
.agency-upload-grid input[type="file"]::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.agency-form input[type="file"]::file-selector-button:hover,
.agency-upload-grid input[type="file"]::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.agency-table-wrap {
  overflow-x: auto;
}

/* ── Agency Dashboard ─────────────────────────────────────────────── */

.agency-dash-grid {
  margin-top: 0.75rem;
}

.agency-dash-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.6rem;
}

@media (min-width: 560px) {
  .agency-dash-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .agency-dash-stat-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.agency-dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.agency-dash-section-head h2 {
  margin: 0;
}

.agency-action-cell {
  white-space: nowrap;
}

/* Dashboard modal card */
.agency-dash-modal {
  width: min(520px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.agency-dash-modal h3 {
  margin: 0;
  font-size: 1.1rem;
}

.agency-dash-modal .agency-form label {
  display: grid;
  gap: 0.35rem;
}

.agency-dash-modal .agency-form label > span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Select inputs styled like other inputs on the page */
.agency-dash-modal select.admin-search-input,
.agency-form select,
select.admin-search-input {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.agency-dash-modal select.admin-search-input:hover,
.agency-form select:hover,
select.admin-search-input:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.agency-dash-modal select.admin-search-input:focus,
.agency-form select:focus,
select.admin-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(209, 115, 255, 0.12);
}

.agency-access-denied {
  margin-top: 0.75rem;
}

/* ── Agency decision banners (applicant card + support centre) ──────────── */

.agency-decision-banner {
  margin-top: 0.55rem;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.agency-decision-banner strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
}

.agency-decision-banner p {
  margin: 0;
  line-height: 1.5;
}

.agency-decision-hint {
  font-size: 0.76rem;
  opacity: 0.75;
}

.agency-decision-approved {
  border: 1px solid rgba(52, 211, 153, 0.38);
  background: linear-gradient(135deg, rgba(6, 40, 26, 0.92), rgba(4, 26, 17, 0.9));
  color: #a7f3d0;
}

.agency-decision-approved strong {
  color: #6ee7b7;
}

.agency-decision-denied {
  border: 1px solid rgba(248, 113, 113, 0.38);
  background: linear-gradient(135deg, rgba(40, 8, 8, 0.92), rgba(28, 5, 5, 0.9));
  color: #fecaca;
}

.agency-decision-denied strong {
  color: #fca5a5;
}

.agency-decision-withdrawn {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* Support centre decision banner (inside the CTA card) */
.support-agency-decision-banner {
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  display: grid;
  gap: 0.28rem;
  font-size: 0.83rem;
  line-height: 1.45;
  margin-top: 0.1rem;
}

.support-agency-decision-banner strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}

.support-agency-decision-banner p {
  margin: 0;
}

.support-agency-decision-approved {
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: linear-gradient(135deg, rgba(6, 40, 26, 0.88), rgba(4, 22, 15, 0.9));
  color: #a7f3d0;
}

.support-agency-decision-approved strong {
  color: #6ee7b7;
}

.support-agency-decision-denied {
  border: 1px solid rgba(248, 113, 113, 0.32);
  background: linear-gradient(135deg, rgba(40, 8, 8, 0.88), rgba(24, 4, 4, 0.9));
  color: #fecaca;
}

.support-agency-decision-denied strong {
  color: #fca5a5;
}

.employment-public-hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 31, 47, 0.96), rgba(8, 75, 88, 0.86));
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.employment-public-hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.employment-public-hero img {
  width: min(160px, 32vw);
  height: auto;
}

.employment-identity-grid .span-identity {
  grid-column: span 2;
}

.employment-documents {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.employment-doc-block {
  min-width: 0;
}

.employment-doc-block h3 {
  margin: 0;
  font-size: 0.96rem;
}

.employment-doc-reader {
  margin-top: 0.42rem;
  min-height: 280px;
  max-height: 320px;
}

.employment-sign-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.72rem;
  max-width: 760px;
}

.employment-cancel-panel {
  border-color: rgba(255, 174, 92, 0.34);
}

.settings-msg {
  min-height: 1rem;
}

.users-page {
  padding-top: 1rem;
  padding-bottom: 5.5rem;
}

.users-directory {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(26, 7, 42, 0.94);
  box-shadow: var(--shadow);
  padding: 0.9rem;
  display: grid;
  gap: 0.72rem;
}

.users-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 0.85rem;
  align-items: end;
}

.users-head h1 {
  font-size: clamp(1.2rem, 2.15vw, 1.66rem);
  line-height: 1.2;
}

.users-search-wrap {
  display: grid;
  gap: 0.38rem;
}

.users-search-wrap label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.users-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.62rem 0.72rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.86rem;
}

.users-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.users-directory .notice {
  margin: 0.12rem 0 0;
}

.users-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.7rem;
}

.users-pager {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  z-index: 20;
  padding: 0 14px;
  width: min(calc(100vw - 28px), 1200px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
}

.users-page-indicator {
  pointer-events: auto;
  border: 1px solid rgba(210, 94, 255, 0.45);
  background: rgba(8, 2, 14, 0.72);
  color: #f5d4ff;
  border-radius: 14px;
  padding: 0.52rem 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.users-page-indicator strong {
  font-weight: 900;
}

.users-arrow {
  pointer-events: auto;
  border: 1px solid rgba(210, 94, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 110, 166, 0.18), rgba(106, 91, 255, 0.18));
  color: #f5d4ff;
  border-radius: 999px;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
}

.users-arrow[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.users-arrow-prev {
  justify-self: start;
}

.users-arrow-next {
  justify-self: end;
}

.user-card {
  border: 1px solid rgba(210, 94, 255, 0.5);
  border-radius: 14px;
  background: rgba(8, 2, 14, 0.9);
  color: var(--text);
  padding: 0.66rem;
  display: grid;
  gap: 0.56rem;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.user-card-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.56rem;
}

.user-card-link:focus-visible {
  outline: 2px solid rgba(228, 142, 255, 0.92);
  outline-offset: 3px;
  border-radius: 12px;
}

.user-card:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 142, 255, 0.92);
  box-shadow: 0 0 18px rgba(189, 56, 255, 0.4);
}

.user-card-top {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 0.52rem;
  align-items: center;
}

.user-card-avatar {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(210, 94, 255, 0.68);
  background: rgba(0, 0, 0, 0.62);
}

.user-card-identity {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.user-card-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-handle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-role {
  border: 1px solid rgba(210, 94, 255, 0.72);
  border-radius: 999px;
  background: #000000;
  color: #df8cff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.52rem;
  white-space: nowrap;
}

.user-card-pills {
  min-height: 1.5rem;
  display: flex;
  gap: 0.38rem;
  align-items: center;
  flex-wrap: wrap;
}

.user-card-pill {
  border: 1px solid rgba(210, 94, 255, 0.65);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #f5d4ff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
}

.user-card-bio,
.user-card-location {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.36;
  color: var(--muted);
}

.user-card-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.user-card-bio.is-empty {
  opacity: 0.8;
  font-style: italic;
}

.user-card-location {
  color: #f3d5ff;
}

.user-card-location.is-empty {
  opacity: 0.8;
  font-style: italic;
}

.user-card-location.is-private {
  opacity: 0.9;
  font-style: italic;
}

.user-card-stats {
  border: 1px solid rgba(210, 94, 255, 0.44);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.42);
  padding: 0.48rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (max-width: 760px) {
  body.live-room-view-page #liveRoomPageRoot {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
  }

  body.live-room-view-page #liveHomeModal {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
  }

  body.live-room-view-page #liveHomeModal .live-room-modal-card {
    width: 100vw !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-extra.live-room-modal-extra-stage {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100dvh !important;
    gap: 0 !important;
  }

  body.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel {
    width: 100% !important;
    min-height: 54dvh !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000 !important;
    overflow: hidden !important;
  }

  body.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-viewport {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 54dvh !important;
    height: 54dvh !important;
    flex: 0 0 54dvh !important;
  }

  body.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-host {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media {
    width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: cover !important;
    background: #000 !important;
  }

  body.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-right-rail {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.live-room-view-page #liveRoomPageRoot.live-room-page-shell,
  body.live-room-view-page .live-room-page-shell.shell {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    height: 100dvh !important;
  }

  body.live-room-view-page #liveHomeModal.live-room-modal,
  body.live-room-view-page #liveHomeModal.live-room-modal.hidden {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  body.live-room-view-page #liveHomeModal .live-room-modal-card {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
  }
}

/* ── Step-Up Security Dialog ────────────────────────────────── */
.beamz-step-up-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.beamz-step-up-backdrop.hidden {
  display: none;
}

.beamz-step-up-card {
  background: rgba(62, 13, 102, 0.97);
  border: 1px solid rgba(210, 152, 255, 0.42);
  border-radius: 18px;
  padding: 2rem 2rem 1.6rem;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beamz-step-up-eyebrow {
  text-transform: uppercase;
  color: var(--accent, #d173ff);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  margin: 0;
}

.beamz-step-up-title {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text, #f8eeff);
  margin: 0;
  line-height: 1.3;
}

.beamz-step-up-subtitle {
  font-size: 0.88rem;
  color: var(--muted, #d5b7f4);
  margin: 0;
  line-height: 1.5;
}

.beamz-step-up-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 1.8rem;
  font-family: "Manrope", monospace;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  background: rgba(4, 15, 24, 0.56);
  border: 1px solid rgba(210, 152, 255, 0.42);
  border-radius: 11px;
  color: var(--text, #f8eeff);
  outline: none;
  transition: border-color 0.18s;
}

.beamz-step-up-input:focus {
  border-color: var(--accent, #d173ff);
}

.beamz-step-up-input.is-error {
  border-color: var(--warn, #ffbd8f);
  color: var(--warn, #ffbd8f);
}

.beamz-step-up-error {
  font-size: 0.82rem;
  color: var(--warn, #ffbd8f);
  margin: 0;
  min-height: 1.2em;
  display: none;
}

.beamz-step-up-error.visible {
  display: block;
}

.beamz-step-up-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}


.user-card-stats div {
  display: grid;
  gap: 0.12rem;
  justify-items: center;
  text-align: center;
}

.user-card-stats strong {
  font-size: 0.9rem;
  line-height: 1.05;
}

.user-card-stats span {
  font-size: 0.68rem;
  color: var(--muted);
}

.user-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.user-card-message,
.user-card-friend {
  flex: 1 1 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   PROFILE PAGE — desktop two-column viewport-fit + mobile stacked
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   PROFILE PAGE — Desktop-first redesign
   Professional layout inspired by Facebook / X (Twitter) pattern:
     • Full-width cover photo banner
     • Large avatar overlapping the cover
     • Name / handle / stats / action-buttons in a hero strip
     • Left sidebar  — About + Write-post
     • Right feed    — scrollable wall posts
   Mobile (≤ 900 px) collapses to a single stacked column.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Page shell ──────────────────────────────────────────────────────── */
.profile-page {
  padding: 0;
  min-height: calc(100vh - var(--header-h, 64px));
}

.profile-shell {
  display: flex;
  flex-direction: column;
}

/* ── Top-level desktop wrapper: cover + body stacked ─────────────────── */
.profile-desktop-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ══════════════════════════════════════════════════════
   COVER AREA
   Contains: cover image + hero strip (avatar + info)
   ══════════════════════════════════════════════════════ */
.profile-cover-area {
  position: relative;
  width: 100%;
  border-radius: 0 0 20px 20px;
  overflow: visible;
  background: rgba(18, 5, 30, 0.96);
  border: 1px solid var(--line);
  border-top: none;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

/* Cover photo */
.profile-cover-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0 0 0 0;
}

.profile-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Cover-edit form — floated to top-right corner */
.profile-cover-form {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.profile-cover-form.hidden {
  display: none;
}

.profile-cover-form input[type="file"] {
  display: none;
}

.profile-cover-change-btn {
  font-size: 0.74rem;
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.55) !important;
}

/* ── Hero strip ──────────────────────────────────────────────────────── */
/* Sits directly below the cover photo, avatar overlaps upward via negative margin */
.profile-hero-strip {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 1.4rem 1rem;
  flex-wrap: wrap;
}

/* ── Avatar block ────────────────────────────────────────────────────── */
.profile-avatar-block {
  flex: 0 0 auto;
  /* Pull avatar up to overlap the cover photo */
  margin-top: -56px;
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(18, 5, 30, 0.98);
  outline: 2px solid rgba(210, 94, 255, 0.8);
  background: rgba(8, 2, 15, 0.86);
  box-shadow: 0 4px 24px rgba(177, 52, 241, 0.4);
  display: block;
}

/* Avatar edit form — tiny overlay buttons */
.profile-avatar-form {
  position: absolute;
  bottom: 4px;
  right: 0;
  display: flex;
  gap: 0.25rem;
}

.profile-avatar-form.hidden {
  display: none;
}

.profile-avatar-form input[type="file"] {
  display: none;
}

.profile-avatar-change-btn {
  font-size: 0.7rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.6) !important;
}

/* ── Identity ────────────────────────────────────────────────────────── */
.profile-identity {
  flex: 1 1 200px;
  min-width: 0;
  padding-bottom: 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  /* Align text baseline with avatar bottom */
  align-self: flex-end;
}

.profile-identity-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Customisable colours — applied via JS inline style */
.profile-name {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--profile-name-color, var(--text));
  word-break: break-word;
  margin: 0;
}

.profile-handle {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--profile-handle-color, var(--muted));
  letter-spacing: 0.01em;
  margin: 0;
}

.profile-meta {
  font-size: 0.78rem;
  color: var(--profile-meta-color, var(--muted));
  line-height: 1.4;
}

.profile-vip-pill {
  --vip-color: rgba(210, 94, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--vip-color);
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.38), 0 0 10px var(--vip-color);
}

/* Stats row below name */
.profile-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.1rem;
}

.profile-stat-chip {
  border: 1px solid rgba(210, 94, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #e9c6ff;
  padding: 0.22rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: default;
}

/* ── Hero action buttons ─────────────────────────────────────────────── */
.profile-hero-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  /* Push to the right side of the hero strip */
  margin-left: auto;
  padding-bottom: 0.1rem;
  align-self: flex-end;
}

/* Primary actions (Follow / Add Friend / Message) */
.profile-action-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.46rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}

.profile-action-btn:hover {
  opacity: 0.88;
  box-shadow: 0 0 16px rgba(209, 115, 255, 0.5);
}

.profile-action-btn.hidden {
  display: none;
}

/* Secondary outline actions (Edit Profile / Copy Link) */
.profile-action-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.44rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.profile-action-btn-outline:hover {
  border-color: var(--accent);
  color: #f0c6ff;
}

.profile-action-btn-outline.hidden {
  display: none;
}

/* ══════════════════════════════════════════════════════
   BODY — two-column layout
   Left sidebar  = 320px  |  Right feed = 1fr
   ══════════════════════════════════════════════════════ */
.profile-body-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  padding: 0 0 2rem;
  align-items: start;
}

/* ── LEFT sidebar ────────────────────────────────────────────────────── */
.profile-left-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  /* Sidebar scrolls independently if content overflows */
  max-height: calc(100vh - var(--header-h, 64px) - 260px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(210, 94, 255, 0.25) transparent;
}

.profile-left-col::-webkit-scrollbar { width: 4px; }
.profile-left-col::-webkit-scrollbar-track { background: transparent; }
.profile-left-col::-webkit-scrollbar-thumb {
  background: rgba(210, 94, 255, 0.25);
  border-radius: 999px;
}

/* Shared card base for sidebar panels */
.profile-about-card,
.profile-write-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 5, 30, 0.96);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Shared card heading */
.profile-card-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #f4d4ff;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Card head row (heading + sub-text) */
.profile-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(210, 94, 255, 0.2);
  padding-bottom: 0.55rem;
}

.profile-card-sub {
  font-size: 0.74rem;
}

/* Bio text */
.profile-bio {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.86rem;
  color: var(--text);
}

/* About-card meta links */
.profile-about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-website {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d5b7f4;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.profile-website:hover {
  color: #f0c6ff;
  text-decoration: underline;
}

.profile-website.hidden {
  display: none;
}

/* Write-post form */
.profile-wall-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-wall-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.88rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  resize: vertical;
  min-height: 72px;
  transition: border-color 0.16s;
}

.profile-wall-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-wall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.profile-wall-actions input[type="file"] {
  flex: 1 1 120px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  padding: 0.3rem;
  font-size: 0.74rem;
}

.profile-wall-post-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
}

/* ── RIGHT feed ──────────────────────────────────────────────────────── */
.profile-right-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile-feed-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 5, 30, 0.96);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Make the card fill remaining space and scroll internally */
  max-height: calc(100vh - var(--header-h, 64px) - 240px);
  overflow: hidden;
}

.profile-feed-head {
  flex: 0 0 auto;
}

/* Wall list — scrollable area inside feed card */
.profile-feed-card .profile-wall-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(210, 94, 255, 0.25) transparent;
  padding-right: 0.25rem;
}

.profile-feed-card .profile-wall-list::-webkit-scrollbar { width: 4px; }
.profile-feed-card .profile-wall-list::-webkit-scrollbar-track { background: transparent; }
.profile-feed-card .profile-wall-list::-webkit-scrollbar-thumb {
  background: rgba(210, 94, 255, 0.25);
  border-radius: 999px;
}

/* Wall list outside feed card (mobile) */
.profile-wall-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Wall post items ─────────────────────────────────────────────────── */
.profile-wall-empty {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  padding: 2rem 0;
  border: 1px dashed rgba(210, 94, 255, 0.28);
  border-radius: 14px;
}

.profile-wall-item {
  border: 1px solid rgba(210, 94, 255, 0.3);
  border-radius: 14px;
  background: rgba(8, 2, 14, 0.88);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.profile-wall-item:hover {
  border-color: rgba(210, 94, 255, 0.55);
  box-shadow: 0 4px 20px rgba(162, 42, 241, 0.14);
}

.profile-wall-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.profile-wall-author {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.profile-wall-author span {
  color: #f0d4ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-wall-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(210, 94, 255, 0.6);
  background: rgba(0, 0, 0, 0.6);
  flex: 0 0 auto;
}

.profile-wall-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-wall-delete {
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
}

.profile-wall-message {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
}

.profile-wall-image {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(210, 94, 255, 0.45);
  border-radius: 12px;
  display: block;
  background: rgba(0, 0, 0, 0.5);
}

/* ── Comments block ──────────────────────────────────────────────────── */
.profile-comments-block {
  border-top: 1px solid rgba(210, 94, 255, 0.15);
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-comments-block h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(210, 94, 255, 0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-comments-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Comment item */
.profile-comment-item {
  border: 1px solid rgba(210, 94, 255, 0.22);
  border-radius: 10px;
  background: rgba(12, 4, 20, 0.7);
  padding: 0.5rem 0.65rem;
  display: grid;
  gap: 0.3rem;
  transition: border-color 0.16s;
}

.profile-comment-item:hover {
  border-color: rgba(210, 94, 255, 0.42);
}

.profile-comment-item.is-reply {
  margin-left: 1.2rem;
  border-left: 3px solid rgba(148, 195, 255, 0.45);
  border-color: rgba(148, 195, 255, 0.22);
  background: rgba(8, 17, 30, 0.65);
  border-radius: 0 10px 10px 0;
}

.profile-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.profile-comment-author {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.profile-comment-author span {
  color: #f0d4ff;
  font-size: 0.76rem;
  font-weight: 800;
}

.profile-comment-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(210, 94, 255, 0.5);
  background: rgba(0, 0, 0, 0.6);
  flex: 0 0 auto;
}

.profile-comment-time {
  color: var(--muted);
  font-size: 0.66rem;
}

.profile-comment-reply-tag {
  margin: 0;
  color: #a8d9ff;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.9;
}

.profile-comment-message {
  margin: 0;
  line-height: 1.4;
  font-size: 0.8rem;
  word-break: break-word;
}

.profile-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-comment-actions .btn {
  padding: 0.16rem 0.44rem;
  font-size: 0.66rem;
}

/* Comment form */
.profile-comment-form {
  border: 1px solid rgba(210, 94, 255, 0.26);
  border-radius: 10px;
  background: rgba(7, 2, 13, 0.62);
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.38rem;
}

.profile-comment-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.44rem 0.55rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.8rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  resize: vertical;
  transition: border-color 0.16s;
}

.profile-comment-input:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-comment-reply-target {
  border: 1px solid rgba(148, 195, 255, 0.35);
  border-radius: 8px;
  background: rgba(7, 18, 30, 0.56);
  padding: 0.36rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.38rem;
}

.profile-comment-reply-text {
  color: #b8e4ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-comment-submit-row {
  display: flex;
  justify-content: flex-end;
}

/* ── Edit Profile Modal ──────────────────────────────────────────────── */
.profile-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 0.75rem;
  overflow-y: auto;
}

.profile-edit-modal.hidden {
  display: none;
}

.profile-edit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.profile-edit-modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  border: 1px solid rgba(210, 94, 255, 0.72);
  border-radius: 22px;
  background: rgba(14, 4, 24, 0.98);
  box-shadow: 0 0 0 1px rgba(210, 94, 255, 0.18), 0 24px 64px rgba(120, 20, 200, 0.5);
  padding: 1.4rem 1.3rem 1.6rem;
  display: grid;
  gap: 1rem;
}

.profile-edit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(210, 94, 255, 0.28);
  padding-bottom: 0.7rem;
}

.profile-edit-modal-head h2 {
  font-size: 1.18rem;
  color: #f4d4ff;
}

.profile-edit-close-btn {
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.profile-edit-fieldset {
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.025);
}

.profile-edit-fieldset legend {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(210, 94, 255, 0.88);
  padding: 0 0.4rem;
}

.profile-edit-form {
  display: grid;
  gap: 0.8rem;
}

.profile-edit-form label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-edit-form input[type="text"],
.profile-edit-form input[type="url"],
.profile-edit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.72rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.88rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  transition: border-color 0.16s;
}

.profile-edit-form textarea {
  resize: vertical;
  min-height: 80px;
}

.profile-edit-form input[type="text"]:focus,
.profile-edit-form input[type="url"]:focus,
.profile-edit-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-edit-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.72rem;
  background: rgba(4, 15, 24, 0.6);
  color: var(--text);
  font-size: 0.88rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.profile-edit-select:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.profile-checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.profile-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.profile-color-input {
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 1px solid rgba(210, 94, 255, 0.62);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.profile-color-hex {
  flex: 1 1 80px;
  max-width: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.82rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.profile-color-hex:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-color-reset {
  font-size: 0.72rem;
  padding: 0.28rem 0.6rem;
}

.profile-bg-opt {
  margin-top: 0.3rem;
}

.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(210, 94, 255, 0.18);
  margin-top: 0.2rem;
}

/* ── Light theme overrides ───────────────────────────────────────────── */
:root[data-theme="light"] .profile-cover-area {
  background: rgba(255, 255, 255, 0.97);
}

:root[data-theme="light"] .profile-about-card,
:root[data-theme="light"] .profile-write-card,
:root[data-theme="light"] .profile-feed-card {
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .profile-wall-item {
  background: rgba(244, 249, 255, 0.92);
}

:root[data-theme="light"] .profile-comment-item {
  background: rgba(240, 248, 255, 0.85);
}

:root[data-theme="light"] .profile-edit-modal-card {
  background: rgba(255, 255, 255, 0.98);
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE — below 900 px
   Collapse to a single stacked column.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .profile-page {
    height: auto;
    overflow: visible;
    padding-bottom: 1.5rem;
  }

  .profile-shell {
    display: block;
  }

  .profile-desktop-layout {
    flex-direction: column;
    gap: 0;
  }

  /* Cover photo smaller on tablet/mobile */
  .profile-cover-wrap {
    height: 160px;
  }

  /* Hero strip — wraps below cover, no push-up trick */
  .profile-hero-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0 1rem 0.85rem;
  }

  .profile-avatar-block {
    margin-top: -48px;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
  }

  .profile-avatar-wrap {
    width: 96px;
  }

  /* Hero actions — below identity on mobile */
  .profile-hero-actions {
    margin-left: 0;
    width: 100%;
  }

  /* Body — single column */
  .profile-body-layout {
    grid-template-columns: 1fr;
    padding: 0.75rem 0 1rem;
    gap: 0.75rem;
  }

  /* Left col — normal flow */
  .profile-left-col {
    max-height: none;
    overflow: visible;
  }

  /* Feed card — no max-height scroll on mobile */
  .profile-feed-card {
    max-height: none;
    overflow: visible;
  }

  .profile-feed-card .profile-wall-list {
    overflow: visible;
  }

  .profile-name {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }

  .profile-wall-form textarea {
    font-size: 1rem; /* prevent iOS zoom */
  }
}

/* ── Narrower phones ─────────────────────────────────────────────────── */
@media (max-width: 600px) {

  .profile-cover-wrap {
    height: 130px;
  }

  .profile-hero-strip {
    padding: 0 0.75rem 0.75rem;
  }

  .profile-avatar-block {
    margin-top: -40px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-avatar-wrap {
    width: 80px;
  }

  .profile-stat-chip {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }

  .profile-bio {
    font-size: 0.86rem;
  }

  .profile-about-card,
  .profile-write-card,
  .profile-feed-card {
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
  }

  .profile-cover-area {
    border-radius: 0 0 14px 14px;
  }
}

@media (max-width: 480px) {

  .profile-name {
    font-size: 1.2rem;
  }

  .profile-stat-chip {
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
  }

  .profile-edit-modal-card {
    padding: 1rem 0.9rem 1.2rem;
  }

  .profile-edit-fieldset {
    padding: 0.7rem 0.75rem;
  }

  .profile-comment-item.is-reply {
    margin-left: 0.7rem;
  }
}

.support-page {
  padding-top: 1rem;
}

.support-embed {
  overflow: hidden;
  background: transparent !important;
}

.support-embed body,
body.support-embed {
  background: transparent !important;
}

.support-embed .site-header,
.support-embed .site-footer {
  display: none !important;
}

.support-embed .support-page {
  height: 100%;
  padding-top: 0;
  padding: 0;
}

.support-embed .support-shell {
  height: 100%;
  gap: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.support-embed .support-hero {
  display: none !important;
}

.support-embed .support-app {
  min-height: 0;
  height: 100%;
  grid-template-columns: 1fr;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.support-embed .support-side {
  padding: 0;
  border: 0;
  background: transparent;
}

.support-embed .support-side-stack {
  gap: 0;
}

.support-embed .support-side-stack > .support-panel:not(.support-panel-list) {
  display: none !important;
}

.support-embed .support-panel-list {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.support-shell {
  display: grid;
  gap: 1rem;
}

.site-header .header-inner {
  border-radius: 0;
}

.support-hero {
  border: 1px solid rgba(234, 174, 255, 0.38);
  border-radius: 24px;
  padding: 1.2rem;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(103, 233, 255, 0.16), transparent 68%),
    radial-gradient(320px 180px at 0% 100%, rgba(255, 188, 112, 0.12), transparent 64%),
    linear-gradient(155deg, rgba(54, 14, 91, 0.98), rgba(17, 6, 28, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: 1rem;
}

.support-hero-copy {
  display: grid;
  gap: 0.7rem;
}

.support-hero-copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.support-hero-text {
  max-width: 60ch;
  line-height: 1.5;
}

.support-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.support-panel-kicker,
.support-reply-label {
  color: #ffdd9d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-app {
  width: 100%;
  min-height: calc(100vh - 210px);
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  overflow: hidden;
}

.support-app.ban-mode {
  grid-template-columns: minmax(0, 1fr);
}

.support-app.ban-mode .support-side {
  display: none;
}

.support-side {
  border-right: 1px solid rgba(226, 162, 255, 0.18);
  padding: 1rem;
  min-height: 0;
  overflow: auto;
}

.support-side-stack {
  display: grid;
  gap: 0.9rem;
}

.support-panel {
  border: 1px solid rgba(226, 162, 255, 0.18);
  border-radius: 20px;
  padding: 0.95rem;
  background: rgba(10, 5, 18, 0.58);
  display: grid;
  gap: 0.75rem;
}

.support-panel-accent {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(108, 232, 255, 0.12), transparent 68%),
    linear-gradient(160deg, rgba(54, 15, 88, 0.82), rgba(15, 6, 25, 0.88));
}

.support-panel-muted {
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(255, 189, 118, 0.08), transparent 68%),
    rgba(18, 8, 21, 0.74);
}

.support-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.support-panel-head h2 {
  font-size: 1.08rem;
}

.support-panel-head-compact {
  align-items: center;
}

.support-panel-note {
  max-width: 20rem;
  line-height: 1.4;
}

.support-mobile-toggle {
  display: none;
}

.support-create-form,
.support-ban-form {
  display: grid;
  gap: 0.55rem;
}

.support-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.9fr);
  gap: 0.65rem;
  align-items: end;
}

.support-form-tip {
  min-height: 100%;
  border: 1px solid rgba(255, 217, 157, 0.22);
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  background: rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 0.18rem;
}

.support-form-tip strong {
  font-size: 0.78rem;
  color: #ffe2b6;
}

.support-form-tip span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.support-create-form label,
.support-filters label,
.support-ban-form label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}

.support-create-form input,
.support-create-form select,
.support-create-form textarea,
.support-filters input,
.support-filters select,
.support-reply-form input,
.support-reply-form textarea,
.support-admin-controls select,
.support-ban-form input,
.support-ban-form select,
.support-ban-form textarea {
  width: 100%;
  border: 1px solid rgba(226, 162, 255, 0.26);
  border-radius: 14px;
  padding: 0.72rem 0.8rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.88rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.support-create-form textarea,
.support-reply-form textarea,
.support-ban-form textarea {
  resize: vertical;
  min-height: 92px;
}

.support-create-form input:focus,
.support-create-form select:focus,
.support-create-form textarea:focus,
.support-filters input:focus,
.support-filters select:focus,
.support-reply-form input:focus,
.support-reply-form textarea:focus,
.support-admin-controls select:focus,
.support-ban-form input:focus,
.support-ban-form select:focus,
.support-ban-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(209, 115, 255, 0.16);
}

.support-filters {
  display: grid;
  gap: 0.55rem;
}

.support-filter-row,
.support-reply-row,
.support-chat-actions,
.support-admin-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.support-filter-row select {
  flex: 1 1 180px;
}

.support-status-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.support-status-pill {
  min-width: 0;
  width: auto;
  flex: 0 0 auto;
  padding-inline: 0.78rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(7, 18, 30, 0.66);
  border-color: rgba(226, 162, 255, 0.28);
}

.support-status-pill:hover,
.support-status-pill:focus-visible {
  border-color: rgba(255, 123, 247, 0.55);
  background: rgba(22, 10, 39, 0.92);
}

.support-status-pill.active {
  color: #fff6ff;
  border-color: rgba(255, 123, 247, 0.82);
  background: linear-gradient(135deg, rgba(154, 71, 255, 0.42), rgba(255, 88, 206, 0.36));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 18px rgba(120, 39, 172, 0.2);
}

.support-status-pills .support-status-pill {
  width: auto;
}

.support-status-select-mobile {
  display: none;
  width: auto;
  min-width: 11.5rem;
  flex: 0 0 auto;
}

.support-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.support-list-msg {
  min-height: 1rem;
}

.support-list-count {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 121, 0.36);
  background: rgba(255, 214, 121, 0.08);
  color: #ffe8b6;
  font-size: 0.82rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-ticket-list {
  display: grid;
  gap: 0.55rem;
  overflow: auto;
  max-height: calc(100vh - 440px);
  padding-right: 0.2rem;
}

.support-panel-list {
  min-height: 0;
}

.support-ticket-item {
  width: 100%;
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(12, 6, 21, 0.98), rgba(7, 4, 12, 0.98));
  color: var(--text);
  text-align: left;
  padding: 0.78rem 0.82rem;
  cursor: pointer;
  display: grid;
  gap: 0.4rem;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.support-ticket-item:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 142, 255, 0.6);
  box-shadow: 0 10px 22px rgba(81, 14, 130, 0.26);
}

.support-ticket-item.active {
  border-color: rgba(255, 214, 121, 0.6);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(255, 206, 113, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(43, 19, 17, 0.98), rgba(18, 9, 12, 0.98));
}

.support-ticket-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.support-ticket-line strong {
  font-size: 0.9rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-sub,
.support-ticket-time {
  color: var(--muted);
}

.support-ticket-owner {
  font-weight: 700;
  color: #f8d4ff;
}

.support-ticket-status {
  border: 1px solid rgba(210, 94, 255, 0.42);
  border-radius: 999px;
  padding: 0.18rem 0.54rem;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.support-ticket-type-pill {
  border: 1px solid rgba(150, 220, 255, 0.34);
  border-radius: 999px;
  padding: 0.18rem 0.54rem;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  color: #d7fbff;
  background: rgba(10, 28, 36, 0.7);
}

.support-ticket-status.status-open {
  color: #f7e4ff;
}

.support-ticket-status.status-pending {
  color: #ffd9a8;
}

.support-ticket-status.status-resolved {
  color: #9fffd2;
}

.support-ticket-status.status-closed {
  color: #ffb8c2;
}

.support-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.support-conversation-modal {
  position: fixed;
  inset: 0;
  z-index: 1850;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 4, 10, 0.4);
  backdrop-filter: blur(8px);
}

.support-conversation-modal.hidden {
  display: none;
}

.support-conversation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
}

.support-conversation-card {
  position: relative;
  width: min(1240px, calc(100vw - 2rem));
  max-height: min(92vh, 980px);
  overflow: hidden;
  border-radius: 28px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background:
    radial-gradient(1100px 320px at 12% 0%, rgba(255, 194, 98, 0.08), transparent 42%),
    radial-gradient(900px 340px at 100% 0%, rgba(210, 94, 255, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(20, 8, 34, 0.99), rgba(9, 4, 16, 0.99));
  border: 1px solid rgba(226, 162, 255, 0.2);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
}

.support-conversation-card.support-upload-review-mode {
  grid-template-rows: minmax(0, 1fr);
}

.support-conversation-card.support-upload-review-mode .support-chat-head,
.support-conversation-card.support-upload-review-mode .support-conversation-banner,
.support-conversation-card.support-upload-review-mode .support-reply-form {
  display: none;
}

.support-upload-review {
  display: grid;
  gap: 0.75rem;
}

.support-upload-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.support-upload-review-head h3 {
  margin: 0.12rem 0 0;
  font-size: 1.02rem;
}

.support-upload-review .support-upload-preview {
  width: 100%;
  max-width: min(100%, 720px);
  align-items: start;
  justify-items: start;
}

.support-upload-review .support-upload-preview img {
  width: 100%;
  max-width: 100%;
  max-height: min(42vh, 22rem);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.18);
}

.support-chat-head {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid rgba(226, 162, 255, 0.14);
  padding: 1rem 1.15rem 0.95rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  background:
    linear-gradient(180deg, rgba(22, 8, 36, 0.98), rgba(16, 6, 27, 0.94));
  backdrop-filter: blur(16px);
}

.support-chat-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.support-chat-meta h2 {
  font-size: clamp(1.08rem, 1vw + 1rem, 1.45rem);
  line-height: 1.16;
}

.support-chat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.support-conversation-banner {
  padding: 0.9rem 1.15rem 0.2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.support-conversation-banner-copy {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.support-conversation-banner-actions {
  max-width: min(460px, 100%);
  text-align: right;
}

.support-banner-meta {
  margin: 0;
  line-height: 1.5;
}

.support-ticket-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.support-ticket-type-pill-inline,
.support-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

button.support-chip,
a.support-chip {
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.support-ticket-type-pill-inline {
  border: 1px solid rgba(150, 220, 255, 0.42);
  color: #d7fbff;
  background: linear-gradient(180deg, rgba(10, 28, 36, 0.92), rgba(6, 18, 24, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.support-chip-status {
  border: 1px solid rgba(226, 162, 255, 0.32);
  color: #f4e1ff;
  background: linear-gradient(180deg, rgba(33, 13, 45, 0.9), rgba(18, 8, 28, 0.9));
}

.support-chip-quiet {
  border: 1px solid rgba(226, 162, 255, 0.2);
  color: #eddcff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.support-chip-warm {
  border: 1px solid rgba(255, 194, 98, 0.34);
  color: #ffe2ae;
  background: linear-gradient(180deg, rgba(44, 24, 8, 0.9), rgba(28, 16, 7, 0.88));
}

.support-chip.status-open {
  border-color: rgba(150, 220, 255, 0.34);
  background: linear-gradient(180deg, rgba(21, 52, 62, 0.9), rgba(9, 26, 33, 0.9));
  color: #d7fbff;
}

.support-chip.status-pending {
  border-color: rgba(255, 194, 98, 0.34);
  background: linear-gradient(180deg, rgba(64, 42, 10, 0.92), rgba(33, 21, 5, 0.9));
  color: #ffe2ae;
}

.support-chip.status-resolved {
  border-color: rgba(118, 222, 163, 0.34);
  background: linear-gradient(180deg, rgba(11, 46, 30, 0.92), rgba(7, 27, 18, 0.9));
  color: #c8ffd9;
}

.support-chip.status-closed {
  border-color: rgba(255, 129, 141, 0.34);
  background: linear-gradient(180deg, rgba(60, 18, 27, 0.92), rgba(32, 9, 15, 0.9));
  color: #ffc3ca;
}

.support-conversation-grid {
  min-height: 0;
  padding: 0.9rem 1.15rem 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.support-conversation-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 0.85rem;
}

.support-thread-surface {
  min-height: 0;
  border: 1px solid rgba(226, 162, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 5, 19, 0.96), rgba(8, 3, 14, 0.95)),
    radial-gradient(500px 180px at 50% 0%, rgba(210, 94, 255, 0.08), transparent 60%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.support-conversation-rail {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  position: sticky;
  top: 7.1rem;
  align-self: start;
}

.support-rail-card {
  border: 1px solid rgba(226, 162, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 4, 20, 0.94), rgba(8, 3, 14, 0.94)),
    radial-gradient(320px 150px at 100% 0%, rgba(210, 94, 255, 0.08), transparent 68%);
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.support-rail-card-highlight {
  border-color: rgba(150, 220, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(10, 16, 25, 0.94), rgba(8, 4, 14, 0.94)),
    radial-gradient(340px 160px at 100% 0%, rgba(150, 220, 255, 0.1), transparent 68%);
}

.support-rail-meta {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.support-admin-controls {
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.support-admin-controls select {
  width: 100%;
}

.support-conversation-card .support-messages {
  max-height: none;
  min-height: 0;
  padding: 1rem;
  margin: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(226, 162, 255, 0.1);
}

.support-conversation-card .support-reply-form {
  margin: 0;
  border-top: 1px solid rgba(226, 162, 255, 0.1);
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(10, 4, 16, 0.98), rgba(8, 3, 14, 0.98)),
    radial-gradient(400px 140px at 0% 0%, rgba(255, 194, 98, 0.06), transparent 64%);
}

.support-reply-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.support-reply-panel-head .support-panel-note {
  margin: 0.2rem 0 0;
}

.support-reply-form textarea {
  min-height: 9rem;
}

.support-reply-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 270px);
  gap: 0.55rem;
  align-items: start;
}

.support-reply-actions-panel {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.support-reply-attachments-panel {
  background: rgba(10, 5, 18, 0.56);
}

.support-mobile-attachments-btn {
  display: none;
}

.support-attachments-modal {
  position: fixed;
  inset: 0;
  z-index: 1980;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 4, 10, 0.55);
  backdrop-filter: blur(10px);
}

.support-attachments-modal.hidden {
  display: none;
}

.support-attachments-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.support-attachments-modal-card {
  position: relative;
  width: min(460px, calc(100vw - 2rem));
  display: grid;
  gap: 0.75rem;
  z-index: 1;
}

.support-attachments-picker {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.8rem;
  width: 100%;
  border-radius: 14px;
  border: 1px dashed rgba(226, 162, 255, 0.34);
  background: rgba(7, 18, 30, 0.56);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.support-attachments-summary {
  margin: 0;
  word-break: break-word;
}

@media (min-width: 721px) {
  body:has(main.support-page) {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overscroll-behavior-y: none;
  }

  body:has(main.support-page) > .site-header,
  body:has(main.support-page) > .site-footer {
    flex: 0 0 auto;
  }

  body:has(main.support-page) > main.support-page {
    flex: 1 1 auto;
    min-height: 0;
    height: 100dvh;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    margin: 0;
  }

  .support-page {
    height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    margin: 0;
    overscroll-behavior-y: none;
  }

  .support-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    overscroll-behavior-y: none;
  }

  .support-hero {
    display: none;
  }

  .support-hero-copy h1 {
    font-size: clamp(1.2rem, 1.7vw, 1.85rem);
  }

  .support-hero-text {
    max-width: 52ch;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .support-app {
    min-height: 0;
    flex: 0 0 auto;
    height: calc(100dvh - 10rem);
    max-height: calc(100dvh - 10rem);
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overscroll-behavior: none;
  }

  .support-side {
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border-right: 0;
  }

  .support-side-stack {
    height: 100%;
    min-height: 0;
  }

  .support-desktop-list-host {
    display: none;
  }

  .support-panel-list {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .support-panel {
    padding: 0.78rem;
    gap: 0.55rem;
  }

  .support-ticket-list {
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .support-conversation-modal {
    position: fixed;
    inset: 0;
    z-index: 1985;
    display: grid;
    place-items: stretch;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    background: rgba(2, 7, 13, 0.74);
    backdrop-filter: blur(16px);
    overscroll-behavior: none;
  }

  .support-conversation-modal.hidden {
    display: grid !important;
  }

  .support-conversation-modal-backdrop {
    display: block;
  }

  .support-conversation-card {
    width: min(980px, calc(100vw - 420px));
    height: 100dvh;
    max-height: none;
    min-height: 0;
    border-radius: 28px 0 0 28px;
    border: 1px solid rgba(226, 162, 255, 0.18);
    margin-left: 420px;
  }

  .support-chat-head {
    padding: 0.9rem 1rem 0.8rem;
  }

  .support-chat-actions {
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .support-admin-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: auto;
  }

  .support-admin-controls select {
    min-width: 10.5rem;
    width: auto;
  }

  .support-admin-controls .btn {
    width: auto;
  }

  .support-chat-actions {
    justify-content: flex-end;
  }

  .support-conversation-banner {
    padding: 0.22rem 0.82rem 0.04rem;
  }

  .support-conversation-grid {
    height: 100%;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr) minmax(300px, 380px);
    padding: 0.8rem 0.9rem 0.9rem;
    gap: 0.8rem;
  }

  .support-conversation-main {
    height: 100%;
    min-height: 0;
  }

  .support-thread-surface {
    height: 100%;
    min-height: 0;
  }

  .support-conversation-card .support-messages {
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding: 0.75rem;
    overscroll-behavior: contain;
  }

  .support-conversation-card .support-reply-form {
    max-height: 21vh;
    padding: 0.6rem 0.7rem 0.75rem;
  }

  .support-reply-panel {
    padding: 0.45rem;
  }

  .support-reply-attachments-panel {
    padding: 0.55rem;
  }

  .support-reply-composer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .support-reply-actions-panel {
    display: grid;
    gap: 0.55rem;
  }

  .support-reply-attachments-panel {
    display: contents;
  }

  .support-reply-attachments-panel label {
    margin: 0;
  }

  .support-reply-submit-row {
    margin-top: 0;
    justify-content: space-between;
    align-items: center;
  }
}

.support-ban-panel {
  border: 1px solid rgba(255, 192, 123, 0.26);
  border-radius: 16px;
  background: rgba(41, 18, 11, 0.32);
  padding: 0.95rem;
  margin: 0.95rem 1rem 0;
  display: grid;
  gap: 0.55rem;
}

.support-ban-banner h3 {
  margin: 0;
  font-size: 0.98rem;
}

.support-ban-banner p {
  margin: 0.1rem 0 0;
}

.support-ban-hint {
  margin: 0;
  font-size: 0.72rem;
}

.ban-support-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(255, 176, 93, 0.10), transparent 65%),
    radial-gradient(780px 460px at 100% 20%, rgba(104, 217, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #0d0814 0%, #09060d 100%);
}

.ban-support-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem 0 0.7rem;
  height: 100dvh;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
}

.ban-support-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.15rem 0.1rem;
}

.ban-support-brand {
  display: grid;
  gap: 0.18rem;
}

.ban-support-brand-mark {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff4dc;
}

.ban-support-brand-sub {
  color: rgba(224, 211, 238, 0.72);
  font-size: 0.85rem;
}

.ban-support-topbar-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ban-support-hero,
.ban-support-card {
  border: 1px solid rgba(227, 173, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(255, 193, 120, 0.12), transparent 64%),
    linear-gradient(155deg, rgba(28, 13, 41, 0.96), rgba(10, 7, 16, 0.98));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

.ban-support-hero {
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 0.8rem;
  align-items: start;
  flex: 0 0 auto;
}

.ban-support-hero-copy {
  display: grid;
  gap: 0.45rem;
}

.ban-support-hero-copy h1,
.ban-support-card h2 {
  margin: 0;
}

.ban-support-hero-copy h1 {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.06;
}

.ban-support-card h2 {
  font-size: 1.02rem;
  line-height: 1.1;
}

.ban-support-intro,
.ban-support-text {
  margin: 0;
  line-height: 1.35;
  color: rgba(245, 236, 255, 0.88);
}

.ban-support-reason-text {
  margin: 0;
  padding: 0.78rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 194, 108, 0.10);
  border: 1px solid rgba(255, 194, 108, 0.18);
  color: #ffe8c5;
  line-height: 1.5;
}

.ban-support-actions,
.ban-support-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.ban-support-status-card,
.ban-support-card {
  padding: 0.88rem;
}

.ban-support-status-head {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.ban-support-status-chip,
.ban-support-ticket,
.ban-support-badge {
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ban-support-status-chip {
  background: rgba(255, 194, 108, 0.18);
  color: #ffdeaf;
  border: 1px solid rgba(255, 194, 108, 0.28);
}

.ban-support-ticket {
  background: rgba(110, 225, 255, 0.12);
  color: #d5f5ff;
  border: 1px solid rgba(110, 225, 255, 0.20);
}

.ban-support-status-list {
  display: grid;
  gap: 0.62rem;
  margin: 0.75rem 0 0;
}

.ban-support-status-list div {
  display: grid;
  gap: 0.2rem;
}

.ban-support-status-list dt {
  color: rgba(219, 205, 231, 0.72);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ban-support-status-list dd {
  margin: 0;
  font-weight: 700;
}

.ban-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 auto;
}

.ban-support-grid.one-column {
  grid-template-columns: minmax(0, 1fr);
}

.ban-support-card-conversation,
.ban-support-card-form,
.ban-support-card-footer {
  display: grid;
  gap: 0.7rem;
  min-height: 0;
  height: 100%;
}

.ban-support-card-conversation {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.ban-support-card-form {
  grid-template-rows: auto auto auto auto auto;
}

.ban-support-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ban-support-conversation-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.ban-support-conversation {
  display: grid;
  gap: 0.65rem;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 0.15rem;
}

.ban-support-reply-form {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(227, 173, 255, 0.12);
}

.ban-support-reply-form textarea {
  width: 100%;
  min-height: 4.8rem;
  resize: none;
}

.ban-support-reply-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.ban-support-conversation-empty {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(227, 173, 255, 0.22);
  color: rgba(245, 236, 255, 0.72);
}

.ban-support-message {
  border-radius: 18px;
  padding: 0.72rem 0.8rem;
  display: grid;
  gap: 0.32rem;
  border: 1px solid rgba(227, 173, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.ban-support-message.is-user {
  background: rgba(255, 194, 108, 0.10);
  border-color: rgba(255, 194, 108, 0.22);
}

.ban-support-message.is-staff {
  background: rgba(110, 225, 255, 0.08);
  border-color: rgba(110, 225, 255, 0.18);
}

.ban-support-message-head {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
}

.ban-support-message-head strong {
  font-size: 0.88rem;
}

.ban-support-message-time {
  color: rgba(219, 205, 231, 0.72);
  font-size: 0.72rem;
  white-space: nowrap;
}

.ban-support-message-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.38;
  color: rgba(248, 242, 255, 0.94);
}

.ban-support-form-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: 0.75rem;
  align-items: start;
}

.ban-support-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.ban-support-insight {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(227, 173, 255, 0.12);
  display: grid;
  gap: 0.28rem;
}

.ban-support-insight-label {
  color: rgba(223, 204, 246, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ban-support-insight strong {
  color: #fff3df;
}

.ban-support-insight p {
  margin: 0;
  color: rgba(245, 236, 255, 0.84);
  line-height: 1.45;
  font-size: 0.92rem;
}

.ban-support-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #f6eefb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-support-badge.tone-accent {
  background: rgba(255, 184, 103, 0.16);
  color: #ffd9a7;
  border-color: rgba(255, 184, 103, 0.25);
}

.ban-support-badge.tone-neutral {
  background: rgba(110, 225, 255, 0.10);
  color: #cff7ff;
  border-color: rgba(110, 225, 255, 0.18);
}

.ban-support-badge.tone-warning {
  background: rgba(255, 204, 87, 0.12);
  color: #ffe8ad;
  border-color: rgba(255, 204, 87, 0.24);
}

.ban-support-badge.tone-danger {
  background: rgba(255, 93, 110, 0.14);
  color: #ffcad1;
  border-color: rgba(255, 93, 110, 0.24);
}

.ban-support-steps {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.ban-support-steps li {
  line-height: 1.35;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(227, 173, 255, 0.14);
  color: rgba(245, 236, 255, 0.92);
}

.ban-support-form {
  display: grid;
  gap: 0.65rem;
  min-height: 0;
}

.ban-support-form label {
  font-weight: 700;
}

.ban-support-form select,
.ban-support-form textarea,
.ban-support-form input[type="file"] {
  width: 100%;
}

.ban-support-form.is-loading {
  opacity: 0.92;
}

.ban-support-field {
  display: grid;
  gap: 0.3rem;
}

.ban-support-hint {
  margin: -0.15rem 0 0;
  font-size: 0.7rem;
  color: rgba(219, 205, 231, 0.72);
}

.ban-support-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(227, 173, 255, 0.12);
}

.ban-support-footer-actions {
  justify-content: flex-end;
}

.ban-support-page.ban-support-page--submitted .ban-support-shell {
  gap: 0.4rem;
  padding-bottom: 0.5rem;
}

.ban-support-page.ban-support-page--submitted .ban-support-topbar {
  padding-top: 0.2rem;
}

.ban-support-page.ban-support-page--submitted .ban-support-hero {
  padding: 0.55rem 0.85rem 0.45rem;
  grid-template-columns: minmax(0, 1fr);
}

.ban-support-page.ban-support-page--submitted .ban-support-status-card {
  display: none;
}

.ban-support-page.ban-support-page--submitted .ban-support-hero-copy h1 {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.ban-support-page.ban-support-page--submitted .ban-support-intro {
  display: none;
}

.ban-support-page.ban-support-page--submitted .ban-support-grid {
  grid-template-columns: minmax(0, 1fr);
}

.ban-support-page.ban-support-page--submitted .ban-support-card-form {
  display: none;
}

.ban-support-page.ban-support-page--submitted .ban-support-intro {
  max-width: 70ch;
}

@media (max-width: 980px) {
  .ban-support-topbar,
  .ban-support-hero,
  .ban-support-grid {
    grid-template-columns: 1fr;
  }

  .ban-support-topbar {
    display: grid;
  }

  .ban-support-form-head,
  .ban-support-conversation-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .ban-support-shell {
    gap: 0.4rem;
    padding: 0.4rem 0 0.5rem;
  }

  .ban-support-topbar {
    padding: 0.1rem 0.1rem 0;
    gap: 0.35rem;
  }

  .ban-support-brand-mark {
    font-size: 0.92rem;
  }

  .ban-support-brand-sub {
    font-size: 0.72rem;
  }

  .ban-support-hero,
  .ban-support-card {
    border-radius: 18px;
  }

  .ban-support-hero {
    padding: 0.7rem 0.75rem;
    gap: 0.5rem;
  }

  .ban-support-hero-copy {
    gap: 0.3rem;
  }

  .ban-support-hero-copy h1 {
    font-size: 1.2rem;
  }

  .ban-support-card h2 {
    font-size: 0.98rem;
  }

  .ban-support-status-list {
    gap: 0.45rem;
    margin-top: 0.55rem;
  }

  .ban-support-status-list dt {
    font-size: 0.68rem;
  }

  .ban-support-status-list dd {
    font-size: 0.92rem;
  }

  .ban-support-grid {
    gap: 0.55rem;
  }

  .ban-support-card-conversation,
  .ban-support-card-form {
    gap: 0.5rem;
  }

  .ban-support-conversation-head {
    gap: 0.45rem;
  }

  .ban-support-conversation {
    gap: 0.5rem;
  }

  .ban-support-message {
    padding: 0.62rem 0.7rem;
    border-radius: 16px;
  }

  .ban-support-message-head {
    gap: 0.4rem;
  }

  .ban-support-message-head strong {
    font-size: 0.84rem;
  }

  .ban-support-message-time {
    font-size: 0.68rem;
  }

  .ban-support-message-body {
    font-size: 0.92rem;
  }

  .ban-support-reply-form {
    gap: 0.35rem;
    padding-top: 0.45rem;
  }

  .ban-support-reply-form textarea {
    min-height: 4.1rem;
  }

  .ban-support-reply-actions {
    gap: 0.45rem;
  }

  .ban-support-reply-actions .btn,
  .ban-support-topbar-actions .btn,
  .ban-support-actions .btn {
    width: auto;
    min-height: 2.55rem;
    padding-inline: 1rem;
  }

  .ban-support-status-head {
    align-items: flex-start;
  }

  .ban-support-actions-row {
    align-items: stretch;
  }

  .ban-support-actions-row .btn {
    width: 100%;
  }

  .ban-support-topbar-actions,
  .ban-support-actions {
    width: 100%;
  }

  .ban-support-topbar-actions {
    justify-content: flex-end;
  }

  .ban-support-topbar-actions .btn {
    width: auto;
    min-width: 7.25rem;
  }

  .ban-support-page.ban-support-page--submitted .ban-support-hero {
    padding: 0.45rem 0.7rem 0.35rem;
  }

  .ban-support-page.ban-support-page--submitted .ban-support-hero-copy h1 {
    font-size: 1.05rem;
  }

  .ban-support-page.ban-support-page--submitted .ban-support-reply-form {
    padding-top: 0.35rem;
  }
}

.ban-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.ban-modal.hidden {
  display: none;
}

.ban-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.ban-modal-card {
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem;
  background: rgba(7, 7, 12, 0.92);
  border: 1px solid rgba(255, 0, 60, 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.gift-modal.hidden {
  display: none;
}

.gift-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.gift-modal-card {
  position: relative;
  width: min(680px, 100%);
  border-radius: 18px;
  padding: 1.05rem 1.05rem 1.15rem;
  border: 1px solid rgba(210, 94, 255, 0.78);
  background: linear-gradient(170deg, rgba(46, 12, 79, 0.96), rgba(21, 6, 34, 0.98));
  box-shadow: 0 0 28px rgba(193, 93, 255, 0.26);
  display: grid;
  gap: 0.65rem;
}

.gift-modal-hero {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(210, 94, 255, 0.55);
  background: center / cover no-repeat url("img/giftsystem.png");
  box-shadow: 0 0 18px rgba(193, 93, 255, 0.25);
}

.gift-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.gift-modal-head h3 {
  margin: 0;
}

.gift-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.gift-modal-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.gift-modal-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

#giftModalQty {
  width: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-weight: 800;
}

.gift-modal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 0.2rem;
}

.gift-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  text-align: left;
}

.gift-item-media {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(210, 94, 255, 0.5);
  background: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.gift-item-media img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.gift-item-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.gift-item-name {
  font-weight: 900;
  text-align: left;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-item-price {
  font-weight: 900;
  color: #ffd8a4;
  white-space: nowrap;
}

.ban-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.ban-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ban-modal-close {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
}

.ban-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.ban-modal-body p {
  margin: 0.15rem 0;
}

.support-create-modal {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.support-create-modal.hidden {
  display: none;
}

.support-create-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.support-request-choice-modal,
.support-staff-report-modal {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.support-request-choice-modal.hidden,
.support-staff-report-modal.hidden {
  display: none;
}

.support-request-choice-modal-backdrop,
.support-staff-report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.support-create-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 20px;
  padding: 1.15rem 1.15rem 1.2rem;
  background:
    radial-gradient(circle at top, rgba(210, 94, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(18, 7, 30, 0.98), rgba(8, 3, 16, 0.99));
  border: 1px solid rgba(210, 94, 255, 0.42);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.85rem;
}

.support-request-choice-panel {
  position: relative;
  width: min(740px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border-radius: 20px;
  padding: 1.15rem 1.15rem 1.2rem;
  background:
    radial-gradient(circle at top, rgba(210, 94, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(18, 7, 30, 0.98), rgba(8, 3, 16, 0.99));
  border: 1px solid rgba(210, 94, 255, 0.42);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.85rem;
}

.support-request-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.support-request-choice-card {
  appearance: none;
  border: 1px solid rgba(210, 94, 255, 0.28);
  background:
    radial-gradient(circle at top right, rgba(210, 94, 255, 0.14), transparent 32%),
    rgba(10, 4, 18, 0.96);
  color: var(--text);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.support-request-choice-card strong {
  font-size: 1rem;
}

.support-request-choice-card span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.support-request-choice-card:hover,
.support-request-choice-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(220, 166, 255, 0.56);
  outline: none;
}

.support-request-choice-card-warm {
  background:
    radial-gradient(circle at top right, rgba(255, 165, 84, 0.16), transparent 32%),
    rgba(13, 5, 16, 0.96);
}

.support-create-modal-head {
  align-items: flex-start;
}

.support-create-modal-head h2 {
  margin: 0.08rem 0 0;
}

.support-create-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}

.support-attachment-modal {
  position: fixed;
  inset: 0;
  z-index: 2060;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.support-attachment-modal.hidden {
  display: none;
}

.support-attachment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.support-attachment-modal-card {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(90vh, 960px);
  overflow: auto;
  border-radius: 22px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(13, 6, 22, 0.98), rgba(6, 2, 10, 0.99));
  border: 1px solid rgba(210, 94, 255, 0.38);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  display: grid;
  gap: 0.8rem;
}

.support-attachment-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.support-attachment-modal-head h2 {
  margin: 0.08rem 0 0;
}

.support-attachment-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}

.support-attachment-modal-image {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(210, 94, 255, 0.18);
}

.support-attachment-modal-frame {
  width: 100%;
  height: calc(90vh - 120px);
  border: 1px solid rgba(210, 94, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.support-messages {
  overflow: auto;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  max-height: min(27rem, 42vh);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.support-empty-state {
  border: 1px dashed rgba(226, 162, 255, 0.22);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 0.24rem;
}

.support-empty-state strong {
  color: var(--text);
  font-size: 0.95rem;
}

.support-message {
  max-width: min(760px, 92%);
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 18px;
  background: rgba(14, 7, 23, 0.9);
  padding: 0.72rem 0.82rem;
  display: grid;
  gap: 0.42rem;
}

.support-message.role-admin {
  border-color: rgba(88, 215, 255, 0.28);
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(102, 226, 255, 0.12), transparent 68%),
    rgba(3, 15, 26, 0.88);
}

.support-message.mine {
  margin-left: auto;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(255, 206, 113, 0.12), transparent 68%),
    rgba(34, 14, 11, 0.9);
  border-color: rgba(255, 214, 121, 0.26);
}

.support-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.support-message-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.support-message-pill {
  border-color: rgba(210, 94, 255, 0.48);
  background: rgba(210, 94, 255, 0.1);
  color: #f3d0ff;
}

.support-message-body {
  display: grid;
  gap: 0.45rem;
}

.support-attachment-heading {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-message-body span {
  line-height: 1.52;
  font-size: 0.88rem;
  word-break: break-word;
}

.support-message-body a {
  color: #9ad9ff;
  text-decoration: underline;
  word-break: break-word;
}

.support-message-body .support-attachment {
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.72);
  padding: 0.6rem;
  display: grid;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.support-message-body .support-attachment span {
  color: var(--text);
  font-size: 0.82rem;
}

.support-message-body .support-attachment-icon {
  min-width: 52px;
  min-height: 52px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(210, 94, 255, 0.14);
  color: #f5d4ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-message-body .support-attachment-image img {
  width: 100%;
  max-width: 360px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.support-message-body .support-attachment-image:hover,
.support-message-body .support-attachment-file:hover {
  border-color: rgba(150, 220, 255, 0.6);
}

.support-message-body .support-attachment-file {
  min-height: 3.2rem;
  align-items: center;
}

.support-message-body .support-attachment-file::before {
  content: "Attachment";
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.support-message p {
  margin: 0;
  line-height: 1.52;
  font-size: 0.88rem;
  word-break: break-word;
}

.support-reply-form {
  border-top: 1px solid rgba(226, 162, 255, 0.16);
  margin: 0.8rem 1rem 1rem;
  padding: 0.95rem;
  display: grid;
  gap: 0.55rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 162, 255, 0.2);
  background: rgba(8, 3, 14, 0.7);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.support-reply-panel,
.support-reply-attachments-panel {
  border: 1px solid rgba(226, 162, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 3, 14, 0.46);
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.support-reply-attachments-panel {
  background: rgba(12, 5, 20, 0.34);
}

.support-mobile-reply-btn {
  display: inline-flex;
  width: fit-content;
}

.support-reply-submit-row {
  justify-content: space-between;
  margin-top: 0.1rem;
}

.support-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.support-dm-report-transcript {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(226, 162, 255, 0.18);
}

@media (max-width: 1120px) {
  .support-hero,
  .support-app {
    grid-template-columns: 1fr;
  }

  .support-side {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 162, 255, 0.18);
    max-height: none;
  }

  .support-ticket-list {
    max-height: 32vh;
  }

  .support-ticket-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .support-page {
    padding: 0;
  }

  .support-shell {
    gap: 0;
  }

  .support-hero {
    display: none;
  }

  .support-hero,
  .support-app,
  .support-panel,
  .support-message,
  .support-overview-card {
    border-radius: 0;
  }

  .support-hero,
  .support-side,
  .support-chat-head,
  .support-messages,
  .support-reply-form,
  .support-ticket-overview {
    padding-left: 0;
    padding-right: 0;
  }

  .support-side {
    padding-top: 0;
    padding-bottom: 0;
  }

  .support-hero-cards,
  .support-ticket-overview,
  .support-form-grid {
    grid-template-columns: 1fr;
  }

  .support-messages {
    max-height: min(36vh, 22rem);
  }

  .support-stat-card-wide {
    grid-column: auto;
  }

  .support-mobile-toggle {
    display: inline-flex;
  }

  .support-status-pills {
    gap: 0.28rem;
  }

  .support-status-pills .support-status-pill {
    padding-inline: 0.54rem;
    font-size: 0.76rem;
  }

  .support-status-select-mobile {
    display: inline-flex;
    width: 100%;
    min-width: 0;
  }

  .support-admin-status-pills {
    display: none;
  }

  .support-filter-row .btn,
  .support-reply-row .btn,
  .support-admin-controls .btn,
  .support-admin-controls select {
    width: 100%;
  }

  .support-filter-row .support-status-pills .btn {
    width: auto;
  }

  .support-list-head,
  .support-panel-head,
  .support-chat-head,
  .support-reply-row {
    align-items: stretch;
  }

  .support-ticket-list {
    max-height: 38vh;
  }

  .support-message {
    max-width: 100%;
  }

  .support-conversation-modal {
    padding: 0.25rem;
  }

  .support-conversation-card {
    width: 100vw;
    height: auto;
    max-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .support-chat-head {
    padding: 0.9rem 0.85rem 0.75rem;
  }

  .support-conversation-banner {
    padding: 0.05rem 0.85rem 0.2rem;
  }

  .support-conversation-banner-actions {
    max-width: none;
    text-align: left;
  }

  .support-conversation-grid {
    padding: 0.75rem 0.85rem 1rem;
    gap: 0.75rem;
    min-height: auto;
  }

  .support-thread-surface {
    border-radius: 20px;
    min-height: auto;
  }

  .support-ticket-pills {
    gap: 0.35rem;
  }

  .support-ticket-type-pill-inline,
  .support-chip {
    min-height: 1.85rem;
    padding: 0.24rem 0.56rem;
    font-size: 0.69rem;
  }

  .support-conversation-card .support-messages {
    padding: 0.85rem;
    max-height: none;
    overflow: visible;
    overscroll-behavior: contain;
  }

  .support-conversation-card .support-reply-form {
    padding: 0;
    border-top: 1px solid rgba(226, 162, 255, 0.1);
  }

  .support-conversation-card .support-reply-form .support-reply-composer-grid {
    grid-template-columns: 1fr;
    padding: 0.2rem 0.28rem 0.3rem;
    align-items: start;
  }

  .support-conversation-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .support-thread-surface {
    display: flex;
    flex-direction: column;
  }

  .support-reply-form {
    background:
      linear-gradient(180deg, rgba(10, 4, 16, 0.98), rgba(7, 2, 12, 0.98)),
      radial-gradient(300px 120px at 0% 0%, rgba(255, 194, 98, 0.06), transparent 64%);
  }

  .support-reply-attachments-panel {
    padding-bottom: 0;
    margin-bottom: -25px;
  }

  .support-reply-composer-grid {
    grid-template-columns: 1fr;
  }

  .support-mobile-attachments-btn {
    display: inline-flex;
  }

  .support-reply-attachments-panel {
    display: none;
  }

  .support-reply-panel,
  .support-reply-attachments-panel {
    border-radius: 14px;
    padding: 0.7rem;
  }

  .support-reply-panel,
  .support-rail-card {
    border-radius: 18px;
  }

  .support-reply-panel-head {
    flex-direction: column;
  }

  .support-reply-form textarea {
    align-self: start;
  }

  .support-reply-actions-panel {
    align-self: start;
  }

  .support-reply-attachments-panel {
    margin-top: 0;
  }

  .support-reply-submit-row {
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .support-reply-submit-row .notice {
    margin-right: auto;
    min-width: 0;
  }

  .support-admin-controls {
    gap: 0.45rem;
    justify-items: center;
  }

  .support-admin-controls select,
  .support-admin-controls .btn {
    width: 100%;
  }

  .support-admin-controls {
    width: min(100%, 26rem);
    margin-inline: auto;
  }

  .support-message-body .support-attachment-image {
    width: 100%;
  }

  .support-message-body .support-attachment-image img {
    width: 100%;
    max-width: none;
    max-height: min(44vh, 20rem);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.18);
  }

  .support-upload-review .support-upload-preview img {
    max-height: min(34vh, 18rem);
  }

  .support-message-body .support-attachment {
    padding: 0.55rem;
  }

  .support-attachment-modal {
    padding: 0.5rem;
  }

  .support-attachment-modal-card {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .support-attachment-modal-image {
    max-height: calc(100dvh - 8rem);
    object-fit: contain;
  }

  .support-attachment-modal-frame {
    height: calc(100dvh - 8rem);
  }

  .support-rail-card {
    border-radius: 18px;
  }

  .support-conversation-rail {
    gap: 0.65rem;
  }

}

.staff-page {
  padding-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.staff-topbar {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.staff-topbar h1 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
  margin-top: 0.18rem;
}

.staff-topbar-actions,
.staff-chat-actions,
.staff-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.staff-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.staff-panel-toggle {
  display: none;
  min-width: 2.6rem;
  padding: 0.5rem 0.62rem;
}

.staff-panel-toggle-arrow {
  display: block;
  width: 1rem;
  height: 1rem;
  transition: transform 0.18s ease;
  object-fit: contain;
}

.staff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 0.9rem;
  align-items: stretch;
}

.staff-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0.95rem;
}

.staff-security-panel {
  display: grid;
  gap: 0.8rem;
}

.staff-security-banner {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.staff-security-banner h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 0.22rem;
}

.staff-security-banner p {
  color: var(--muted);
}

.staff-security-banner--active {
  border-color: rgba(255, 189, 143, 0.55);
  background: linear-gradient(180deg, rgba(64, 20, 10, 0.72), rgba(33, 10, 8, 0.75));
}

.staff-security-banner--idle {
  border-color: rgba(210, 94, 255, 0.26);
  background: linear-gradient(180deg, rgba(16, 7, 28, 0.7), rgba(10, 4, 18, 0.75));
}

.staff-security-banner-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.staff-security-log-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 0.75rem;
}

.staff-security-log-head h3 {
  font-size: 0.98rem;
  line-height: 1.2;
}

.staff-security-log {
  display: grid;
  gap: 0.65rem;
}

.staff-security-event {
  border: 1px solid rgba(210, 94, 255, 0.24);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: rgba(4, 10, 18, 0.4);
  display: grid;
  gap: 0.35rem;
}

.staff-security-event--risk {
  border-color: rgba(255, 189, 143, 0.48);
  background: rgba(54, 20, 8, 0.45);
}

.staff-security-event-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.staff-security-event-time {
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-security-event-severity {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-security-event-meta {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
  color: var(--text);
  font-size: 0.9rem;
}

.staff-panel-head h2,
.staff-support-panel h2,
.staff-training-panel h2,
.staff-side-panel h2 {
  font-size: 1.08rem;
}

.staff-chat-panel {
  min-height: 580px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.staff-chat-log {
  min-height: 360px;
  max-height: 58vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 15, 24, 0.5);
  padding: 0.75rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.staff-chat-message {
  max-width: min(760px, 92%);
  border: 1px solid rgba(210, 94, 255, 0.48);
  border-radius: 12px;
  background: rgba(10, 3, 16, 0.88);
  padding: 0.58rem 0.66rem;
  display: grid;
  gap: 0.35rem;
}

.staff-chat-message.mine {
  margin-left: auto;
  border-color: rgba(88, 215, 255, 0.58);
  background: rgba(3, 15, 26, 0.86);
}

.staff-chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.72rem;
}

.staff-chat-meta strong {
  color: var(--text);
  font-size: 0.78rem;
}

.staff-chat-message p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.86rem;
  word-break: break-word;
}

.staff-chat-form {
  display: grid;
  gap: 0.5rem;
}

.staff-chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.78rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.9rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  resize: vertical;
  min-height: 92px;
}

.staff-chat-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.staff-directory,
.staff-tool-list,
.staff-tool-grid,
.staff-training-grid {
  display: grid;
  gap: 0.55rem;
}

.staff-directory {
  margin-top: 0.75rem;
}

.staff-person {
  border: 1px solid rgba(210, 94, 255, 0.42);
  border-radius: 12px;
  background: rgba(4, 15, 24, 0.46);
  padding: 0.58rem;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.staff-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(88, 215, 255, 0.46);
  background: rgba(3, 15, 26, 0.9);
  color: #c7f3ff;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.staff-person-copy {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.staff-person-copy strong,
.staff-person-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-person-copy span {
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-role-pill {
  border: 1px solid rgba(88, 215, 255, 0.48);
  border-radius: 999px;
  color: #bfefff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.16rem 0.46rem;
  white-space: nowrap;
}

.staff-role-pill.owner {
  border-color: rgba(255, 211, 105, 0.58);
  color: #ffe3a3;
}

.staff-divider {
  height: 1px;
  background: var(--line);
  margin: 0.9rem 0;
}

.staff-tool-grid,
.staff-training-grid {
  margin-top: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-support-panel .staff-tool-grid {
  margin-top: 0.8rem;
}

.staff-tool,
.staff-training-item {
  border: 1px solid rgba(210, 94, 255, 0.42);
  border-radius: 12px;
  background: rgba(4, 15, 24, 0.46);
  padding: 0.72rem;
}

.staff-tool {
  text-decoration: none;
  color: var(--text);
  appearance: none;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.36rem;
  min-height: 7.2rem;
  align-content: start;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.staff-tool:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 142, 255, 0.82);
  box-shadow: 0 0 16px rgba(190, 58, 255, 0.26);
  background: rgba(6, 18, 30, 0.62);
}

.staff-tool strong,
.staff-training-item h3 {
  font-size: 0.95rem;
  margin: 0;
}

.staff-tool span,
.staff-training-item p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
  margin: 0;
}

.staff-tool-list {
  margin-top: 0.65rem;
}

.staff-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.staff-tool-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.staff-tool-modal.hidden {
  display: none;
}

body.staff-tool-modal-open {
  overflow: hidden;
}

.staff-tool-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.staff-tool-modal-card {
  position: relative;
  width: min(1180px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 5, 22, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.staff-tool-modal-head {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-tool-modal-head h2 {
  margin: 0.12rem 0 0;
  font-size: 1.18rem;
}

.staff-tool-modal-body {
  overflow: auto;
  padding: 0.95rem;
  display: grid;
  gap: 0.75rem;
}

.staff-toolbar,
.staff-tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.staff-toolbar .admin-search-input,
.staff-tool-actions .admin-search-input {
  min-width: min(220px, 100%);
}

.staff-tool-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.staff-tool-table {
  margin: 0;
}

.staff-tool-detail {
  display: grid;
  gap: 0.75rem;
}

.staff-detail-grid--stack {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.staff-upload-thumb,
.staff-upload-detail-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.staff-upload-thumb-placeholder,
.staff-upload-detail-image-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.staff-upload-actions {
  margin-top: 0.55rem;
}

.staff-inline-field {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.staff-inline-field .admin-search-input {
  min-height: 2.7rem;
}

.staff-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.staff-profile-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(210, 94, 255, 0.36);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 0.7rem;
  font: inherit;
  padding: 0.8rem;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.staff-profile-card:hover,
.staff-profile-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(228, 142, 255, 0.82);
  box-shadow: 0 0 18px rgba(190, 58, 255, 0.26);
  outline: none;
}

.staff-profile-card-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.staff-profile-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.staff-profile-copy strong {
  font-size: 0.94rem;
  line-height: 1.15;
}

.staff-profile-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-profile-detail-card {
  border: 1px solid rgba(210, 94, 255, 0.36);
  border-radius: 20px;
  background: rgba(8, 2, 14, 0.72);
  overflow: hidden;
}

.staff-profile-detail-card .staff-bot-body {
  padding: 1rem;
}

.staff-detail-grid,
.staff-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.staff-detail-grid div,
.staff-rule-grid label {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 15, 24, 0.46);
  padding: 0.65rem;
  min-width: 0;
}

.staff-detail-grid span,
.staff-rule-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.staff-detail-grid strong {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.staff-rule-grid label {
  display: grid;
  gap: 0.35rem;
}

.staff-rule-grid .admin-search-input,
.staff-tool-textarea {
  width: 100%;
}

.staff-tool-pre {
  margin: 0;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  padding: 0.75rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.84rem;
}

/* ── Role Descriptions Tool ───────────────────────────── */
.staff-rd-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-rd-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.staff-rd-who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.staff-rd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-rd-textarea {
  width: 100%;
  resize: vertical;
  min-height: 54px;
}

.staff-rd-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.staff-rd-notice {
  font-size: 0.84rem;
}

/* ── Staff list card description line ─────────────────── */

.dm-page {
  padding-top: 1rem;
  padding-bottom: 0;
  overflow: hidden;
}

.dm-mobile-quickbar {
  display: none;
}

.dm-app {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(20, 5, 32, 0.97), rgba(8, 3, 16, 0.98));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
  height: calc(100vh - 196px);
  min-height: calc(100vh - 196px);
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  overflow: hidden;
}

.dm-side {
  border-right: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 0;
  background: linear-gradient(180deg, rgba(20, 7, 30, 0.98), rgba(12, 5, 22, 0.96));
}

.dm-side-head h1 {
  font-size: 1.2rem;
  line-height: 1.18;
}

.dm-search-block,
.dm-thread-block {
  display: grid;
  gap: 0.44rem;
  min-height: 0;
}

.dm-thread-block {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.dm-side-shell {
  gap: 0.85rem;
}

.dm-side-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(210, 94, 255, 0.2);
  border-radius: 18px;
  background: rgba(8, 3, 16, 0.78);
}

.dm-side-brand-copy,
.dm-chat-user-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.dm-side-kicker,
.dm-chat-kicker {
  color: #f5d4ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dm-side-brand-copy h2,
.dm-chat-user-copy h2 {
  margin: 0;
}

.dm-thread-list-shell {
  min-height: 0;
  display: grid;
  gap: 0.45rem;
}

.dm-thread-list-shell .dm-thread-head {
  padding: 0 0.2rem;
}

.dm-search-block label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}

.dm-search-block input,
.dm-thread-block input,
.dm-send-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.68rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.84rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.dm-search-block input:focus,
.dm-thread-block input:focus,
.dm-send-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.dm-user-search-results {
  display: grid;
  gap: 0.45rem;
  max-height: 220px;
  overflow: auto;
  padding-right: 0.18rem;
}

.dm-user-result-item {
  width: 100%;
  border: 1px solid rgba(210, 94, 255, 0.5);
  border-radius: 11px;
  background: rgba(6, 2, 10, 0.88);
  color: var(--text);
  text-align: left;
  padding: 0.5rem 0.56rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dm-user-result-item:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 142, 255, 0.88);
  box-shadow: 0 0 15px rgba(190, 58, 255, 0.34);
}

.dm-user-result-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(210, 94, 255, 0.68);
  background: rgba(0, 0, 0, 0.62);
}

.dm-user-result-copy {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.dm-user-result-copy strong {
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
}

.dm-user-result-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-user-result-pill {
  border: 1px solid rgba(210, 94, 255, 0.65);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #f5d4ff;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  white-space: nowrap;
}

.dm-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.dm-thread-head h2 {
  font-size: 1rem;
}

.dm-thread-list {
  display: grid;
  gap: 0.45rem;
  overflow: auto;
  max-height: none;
  min-height: 0;
  padding-right: 0.18rem;
}

.dm-thread-section {
  display: grid;
  gap: 0.42rem;
}

.dm-thread-section-title {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4c8ff;
  padding: 0 0.18rem;
}

.dm-thread-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 208, 88, 0.38);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(37, 18, 46, 0.96), rgba(20, 9, 30, 0.98));
  color: #fff;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  text-align: left;
}

.dm-thread-section-toggle.active {
  box-shadow: 0 0 0 1px rgba(255, 208, 88, 0.2) inset;
}

.dm-thread-section-meta {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffe7a8;
  white-space: nowrap;
}

.dm-thread-section-caret {
  min-width: 1.2rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffe7a8;
}

.dm-thread-subsection {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.42rem;
}

.dm-thread-subsection.hidden {
  display: none;
}

.dm-thread-item {
  width: 100%;
  border: 1px solid rgba(210, 94, 255, 0.52);
  border-radius: 12px;
  background: rgba(6, 2, 10, 0.88);
  color: var(--text);
  text-align: left;
  padding: 0.54rem 0.58rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dm-thread-item-official {
  border-color: rgba(255, 208, 88, 0.75);
  background: linear-gradient(180deg, rgba(26, 16, 8, 0.96), rgba(10, 5, 16, 0.96));
}

.dm-thread-item:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 142, 255, 0.88);
  box-shadow: 0 0 16px rgba(190, 58, 255, 0.36);
}

.dm-thread-item.active {
  border-color: rgba(228, 142, 255, 0.98);
  box-shadow: 0 0 18px rgba(190, 58, 255, 0.42);
}

.dm-thread-avatar {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(210, 94, 255, 0.68);
  background: rgba(0, 0, 0, 0.62);
}

.dm-thread-avatar-official {
  border-color: rgba(255, 208, 88, 0.82);
  box-shadow: 0 0 18px rgba(255, 195, 71, 0.22);
}

.dm-thread-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.dm-thread-title {
  font-size: 0.84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dm-thread-pill {
  border: 1px solid rgba(210, 94, 255, 0.65);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #f5d4ff;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.1rem 0.42rem;
  white-space: nowrap;
}

.dm-thread-pill-official {
  border-color: rgba(255, 208, 88, 0.78);
  background: rgba(58, 36, 0, 0.7);
  color: #ffe7a8;
}

.dm-thread-inline-badge {
  margin-left: 0.25rem;
  vertical-align: middle;
}

.dm-official-hub {
  display: grid;
  gap: 0.7rem;
}

.dm-official-card {
  width: 100%;
  border: 1px solid rgba(255, 208, 88, 0.48);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 12, 28, 0.96), rgba(10, 5, 16, 0.98));
  color: var(--text);
  text-align: left;
  padding: 0.7rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.dm-official-card-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.dm-thread-action-modal.hidden {
  display: none;
}

.dm-thread-action-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
}

.dm-thread-action-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 1, 6, 0.72);
  backdrop-filter: blur(8px);
}

.dm-thread-action-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 420px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(214, 109, 255, 0.38);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 13, 39, 0.98), rgba(12, 6, 20, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.dm-thread-action-head {
  display: grid;
  gap: 0.2rem;
}

.dm-thread-action-head h3 {
  font-size: 1rem;
  font-weight: 800;
}

.dm-thread-action-list {
  display: grid;
  gap: 0.55rem;
}

.dm-thread-action-btn {
  width: 100%;
  border: 1px solid rgba(214, 109, 255, 0.38);
  border-radius: 14px;
  background: rgba(12, 7, 18, 0.92);
  color: #f7ecff;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 0.82rem 0.9rem;
  text-align: left;
  cursor: pointer;
}

.dm-thread-action-btn-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.dm-thread-action-btn-danger {
  border-color: rgba(255, 112, 112, 0.42);
  color: #ffd6d6;
  background: rgba(52, 10, 16, 0.92);
}

.dm-official-card:hover {
  border-color: rgba(255, 226, 148, 0.86);
  box-shadow: 0 0 16px rgba(255, 193, 81, 0.18);
}

.dm-gift-toggle {
  white-space: nowrap;
}

.dm-gift-modal-card {
  max-width: 780px;
}

.dm-gift-item {
  width: 100%;
  text-align: left;
}

.dm-message-gift {
  padding: 0.2rem 0;
}

.dm-gift-message-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 208, 88, 0.36);
  background: linear-gradient(180deg, rgba(33, 16, 48, 0.96), rgba(18, 9, 28, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.dm-gift-message-media {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

.dm-gift-message-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dm-gift-message-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.dm-gift-message-title {
  color: #ffe7a8;
  font-size: 0.95rem;
  font-weight: 900;
}

.dm-gift-message-meta {
  color: rgba(245, 224, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.dm-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0;
}

.dm-filter-pill {
  appearance: none;
  border: 1px solid rgba(210, 94, 255, 0.42);
  border-radius: 999px;
  background: rgba(10, 4, 18, 0.78);
  color: rgba(244, 223, 255, 0.88);
  padding: 0.38rem 0.82rem;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.dm-filter-pill.active {
  border-color: rgba(255, 208, 88, 0.82);
  color: #ffe7a8;
  box-shadow: 0 0 14px rgba(255, 193, 81, 0.16);
}

.dm-thread-handle,
.dm-thread-preview {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-thread-preview {
  color: #eac3ff;
}

.dm-thread-time {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.dm-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(255, 208, 88, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(18, 5, 30, 0.78), rgba(8, 3, 16, 0.86));
}

.dm-chat-head {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1rem 0.9rem;
}

.dm-chat-user {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 0.58rem;
}

.dm-chat-avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(210, 94, 255, 0.7);
  background: rgba(0, 0, 0, 0.62);
}

.dm-chat-user h2 {
  font-size: 1.08rem;
}

.dm-chat-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.9rem;
}

.dm-messages {
  overflow: auto;
  padding: 0.95rem;
  display: grid;
  align-content: start;
  gap: 0.58rem;
}

.dm-message-shell {
  min-height: 0;
  border: 1px solid rgba(210, 94, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 4, 16, 0.84), rgba(10, 5, 18, 0.92));
  position: relative;
  overflow: hidden;
}

.dm-gift-receive-overlay {
  position: absolute;
  top: 5.9rem;
  right: 1rem;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.dm-gift-receive-overlay.hidden {
  display: none;
}

.dm-gift-receive-overlay.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dm-gift-receive-card {
  min-width: 220px;
  max-width: 320px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.72rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 208, 88, 0.56);
  background: linear-gradient(180deg, rgba(35, 18, 50, 0.98), rgba(12, 6, 22, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.dm-gift-receive-media {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.dm-gift-receive-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dm-gift-receive-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.dm-gift-receive-copy strong {
  color: #ffe7a8;
  font-size: 0.84rem;
  font-weight: 900;
}

.dm-gift-receive-copy span {
  color: rgba(245, 224, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
}

.dm-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dm-message {
  max-width: min(700px, 92%);
  border: 1px solid rgba(210, 94, 255, 0.52);
  border-radius: 12px;
  background: rgba(10, 3, 16, 0.9);
  padding: 0.54rem 0.62rem;
  display: grid;
  gap: 0.34rem;
}

.dm-message.mine {
  margin-left: auto;
  border-color: rgba(88, 215, 255, 0.56);
  background: rgba(3, 15, 26, 0.85);
}

.dm-message p {
  margin: 0;
  line-height: 1.38;
  font-size: 0.84rem;
  word-break: break-word;
}

.dm-message-time {
  color: var(--muted);
  font-size: 0.7rem;
}

.dm-send-form {
  border: 1px solid rgba(210, 94, 255, 0.18);
  border-radius: 20px;
  background: rgba(12, 6, 20, 0.9);
  padding: 0.82rem 0.9rem 0.9rem;
  display: grid;
  gap: 0.48rem;
}

.dm-send-form textarea {
  resize: none;
  min-height: 84px;
  max-height: 160px;
  overflow: auto;
  font-family: "Manrope", "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.dm-send-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
}

.dm-send-tools {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.dm-emoji-toggle {
  width: fit-content;
  min-width: 3rem;
  padding-inline: 0.8rem;
  font-size: 1.1rem;
  line-height: 1;
}

.dm-send-primary {
  min-width: 6rem;
}

.dm-send-tools .notice {
  margin-left: auto;
}

.dm-emoji-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 35;
  width: min(360px, calc(100vw - 3rem));
  max-height: 196px;
  overflow: auto;
  border: 1px solid rgba(210, 94, 255, 0.7);
  border-radius: 12px;
  padding: 0.42rem;
  background: rgba(10, 3, 18, 0.96);
  box-shadow: 0 0 20px rgba(188, 70, 255, 0.35);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.34rem;
}

.dm-emoji-item {
  appearance: none;
  border: 1px solid rgba(210, 94, 255, 0.62);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1;
  height: 33px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dm-emoji-item:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 142, 255, 0.92);
  box-shadow: 0 0 14px rgba(190, 58, 255, 0.36);
}

.dm-emoji-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.dm-inline-emoji {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.14em;
  display: inline-block;
}

.dm-message img.emoji,
.dm-thread-preview img.emoji,
.dm-message .dm-inline-emoji,
.dm-thread-preview .dm-inline-emoji {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.14em;
}

.dm-small-msg {
  min-height: 1rem;
  font-size: 0.78rem;
}

.great-wall-page {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.great-wall-head {
  display: grid;
  gap: 0.48rem;
  width: min(980px, 100%);
  text-align: center;
}

.great-wall-head h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.great-wall-head-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.great-wall-feed {
  display: grid;
  gap: 0.8rem;
  width: min(980px, 100%);
}

.great-wall-post {
  display: grid;
  gap: 0.64rem;
  justify-items: center;
}

.great-wall-post-head {
  display: grid;
  gap: 0.36rem;
  justify-items: center;
  text-align: center;
}

.great-wall-post-author {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  width: fit-content;
}

.great-wall-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(210, 94, 255, 0.65);
  background: rgba(0, 0, 0, 0.62);
}

.great-wall-post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.great-wall-post-meta a {
  color: inherit;
}

.great-wall-post-message {
  margin: 0;
  line-height: 1.45;
  text-align: center;
  max-width: 780px;
}

.great-wall-post-image {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
}

.great-wall-reactions-block {
  display: grid;
  gap: 0.44rem;
}

.great-wall-reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  justify-content: center;
}

.great-wall-react-btn {
  appearance: none;
  border: 1px solid rgba(210, 94, 255, 0.7);
  border-radius: 999px;
  background: #000000;
  color: #df8cff;
  padding: 0.28rem 0.42rem;
  min-width: 40px;
  min-height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.great-wall-react-btn:hover {
  transform: translateY(-1px);
  border-color: #e9a0ff;
  box-shadow: 0 0 12px rgba(216, 107, 255, 0.5);
}

.great-wall-react-btn.active {
  border-color: #e9a0ff;
  box-shadow: 0 0 14px rgba(216, 107, 255, 0.6);
}

.great-wall-emoji {
  width: 20px;
  height: 20px;
  display: block;
}

.great-wall-reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.great-wall-reaction-chip {
  border: 1px solid rgba(210, 94, 255, 0.6);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  padding: 0.2rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.74rem;
}

.great-wall-comments-inline {
  border-top: 1px solid var(--line);
  padding-top: 0.56rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.great-wall-comments-open {
  min-width: 176px;
}

.great-wall-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.great-wall-modal.hidden {
  display: none;
}

.great-wall-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(2px);
}

.great-wall-modal-card {
  position: relative;
  width: min(860px, calc(100% - 0.8rem));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0.86rem;
  display: grid;
  gap: 0.58rem;
}

.great-wall-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.great-wall-modal-head h2 {
  font-size: 1.05rem;
}

.great-wall-modal-meta {
  margin: 0;
  font-size: 0.82rem;
}

.great-wall-modal-body {
  max-height: calc(90vh - 152px);
  overflow-y: auto;
  display: grid;
  gap: 0.62rem;
  padding-right: 0.12rem;
}

.great-wall-modal-post {
  display: grid;
  gap: 0.48rem;
  border: 1px solid rgba(210, 94, 255, 0.45);
  border-radius: 12px;
  background: rgba(8, 3, 14, 0.84);
  padding: 0.55rem;
}

.great-wall-modal-post-message {
  margin: 0;
  line-height: 1.42;
  font-size: 0.9rem;
}

.great-wall-modal-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
}

.great-wall-modal-comments {
  border-top: 1px solid var(--line);
  padding-top: 0.58rem;
  display: grid;
  gap: 0.44rem;
}

.great-wall-modal-comments h3 {
  font-size: 0.95rem;
}

.great-wall-comments-list {
  display: grid;
  gap: 0.4rem;
}

.great-wall-comments-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.great-wall-comment-item {
  border: 1px solid rgba(210, 94, 255, 0.5);
  border-radius: 10px;
  background: rgba(6, 2, 10, 0.86);
  padding: 0.45rem 0.52rem;
  display: grid;
  gap: 0.32rem;
}

.great-wall-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.great-wall-comment-author {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.great-wall-comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(210, 94, 255, 0.6);
}

.great-wall-comment-time {
  color: var(--muted);
  font-size: 0.72rem;
}

.great-wall-comment-message {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.great-wall-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.great-wall-comment-form {
  display: grid;
  gap: 0.38rem;
}

.great-wall-comment-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.52rem 0.62rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  resize: vertical;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.great-wall-comment-input:focus {
  outline: none;
  border-color: var(--accent);
}

.great-wall-comment-submit-row {
  display: flex;
  justify-content: flex-end;
}

.great-wall-inline-emoji {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.14em;
  display: inline-block;
}

.live-page {
  display: grid;
  gap: 0.92rem;
  justify-items: center;
}

.go-live-page {
  position: relative;
  isolation: isolate;
}

.go-live-page::before,
.go-live-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(38px);
  opacity: 0.45;
}

.go-live-page::before {
  width: 320px;
  height: 320px;
  border-radius: 999px;
  top: 110px;
  right: 6vw;
  background: radial-gradient(circle at center, rgba(255, 143, 242, 0.52), rgba(255, 143, 242, 0));
}

.go-live-page::after {
  width: 380px;
  height: 380px;
  border-radius: 999px;
  bottom: 40px;
  left: 4vw;
  background: radial-gradient(circle at center, rgba(114, 232, 255, 0.44), rgba(114, 232, 255, 0));
}

.live-stage {
  width: min(1160px, 100%);
  display: grid;
  gap: 0.72rem;
  border: 1px solid rgba(183, 102, 236, 0.42);
  border-radius: 16px;
  padding: 0.82rem;
  background:
    linear-gradient(165deg, rgba(35, 9, 61, 0.9), rgba(18, 6, 30, 0.92)),
    radial-gradient(360px 160px at 102% -25%, rgba(204, 129, 255, 0.12), transparent 72%);
}

.go-live-page .live-stage {
  border-color: rgba(225, 154, 255, 0.5);
  box-shadow: 0 8px 24px rgba(9, 2, 17, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(160deg, rgba(47, 12, 80, 0.9), rgba(18, 6, 31, 0.94)),
    radial-gradient(440px 180px at 106% -24%, rgba(255, 157, 246, 0.16), transparent 70%),
    radial-gradient(250px 100px at -6% 110%, rgba(102, 224, 255, 0.1), transparent 72%);
}

.live-stage-wide {
  width: min(1160px, 100%);
}

.live-stage-head {
  display: grid;
  gap: 0.3rem;
}

.live-stage-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.34rem);
}

.go-live-page .live-stage-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.go-live-page .live-stage-head h2::after {
  content: "";
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 168, 243, 0.95), rgba(114, 231, 255, 0.88));
}

.live-host-page {
  padding-bottom: 1.2rem;
}

.live-host-stage {
  width: min(1280px, 100%);
}

.live-host-stage-head {
  gap: 0.6rem;
}

.live-host-step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.live-host-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 183, 255, 0.34);
  background: rgba(10, 4, 18, 0.54);
  color: #f1d0ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.live-host-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
  gap: 1rem;
  align-items: start;
}

.live-host-main-panel,
.live-host-side-panel {
  min-width: 0;
}

.live-host-side-panel {
  display: grid;
  gap: 0.86rem;
  position: sticky;
  top: 1rem;
}

.live-host-sidebar-panel {
  grid-column: auto;
}

.live-host-unified-panel {
  display: grid;
  gap: 0.85rem;
}

.live-host-stage-copy {
  display: grid;
  gap: 0.28rem;
}

.live-host-stage-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 121, 0.36);
  background: rgba(0, 0, 0, 0.24);
  color: #ffd7a2;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-host-desktop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(241, 183, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(106, 231, 255, 0.12), transparent 64%),
    radial-gradient(280px 180px at 0% 100%, rgba(255, 174, 94, 0.1), transparent 62%),
    linear-gradient(145deg, rgba(53, 16, 88, 0.96), rgba(20, 7, 34, 0.98));
}

.live-host-desktop-hero-copy {
  display: grid;
  gap: 0.34rem;
}

.live-host-desktop-hero-copy h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  line-height: 1.08;
}

.live-host-overview-toggle {
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(106, 231, 255, 0.08), transparent 68%),
    rgba(0, 0, 0, 0.18);
}

.live-host-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.live-host-overview-card {
  display: grid;
  gap: 0.32rem;
  align-content: start;
  min-height: 100%;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(235, 171, 255, 0.18);
  background: rgba(8, 4, 16, 0.42);
}

.live-host-overview-card strong,
.live-host-helper-card h4 {
  margin: 0;
  color: #fff0c7;
  font-size: 0.92rem;
}

.live-host-overview-step {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd66a, #ff9f57);
  color: #2e1105;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-host-details-grid,
.live-host-source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 0.9rem;
  align-items: start;
}

.live-host-details-main,
.live-host-details-side {
  display: grid;
  gap: 0.8rem;
}

.live-host-helper-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 121, 0.18);
  background:
    radial-gradient(220px 140px at 100% 0%, rgba(255, 187, 112, 0.1), transparent 62%),
    rgba(10, 6, 17, 0.5);
}

.live-host-helper-card-compact {
  padding: 0;
  border: 0;
  background: transparent;
}

.live-host-helper-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #efd7ff;
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.live-host-action-bar-top {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 0;
  margin-bottom: 0;
  background: none;
}

.live-host-section-toggle {
  border: 1px solid rgba(235, 171, 255, 0.22);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.15rem 0.8rem 0.8rem;
}

.live-host-section-toggle summary {
  cursor: pointer;
  list-style: none;
  color: #f5dbff;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 0.8rem 0 0.6rem;
}

.live-host-section-toggle summary::-webkit-details-marker {
  display: none;
}

.live-host-section-body {
  display: grid;
  gap: 0.8rem;
}

.live-host-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.live-host-inline-panel {
  padding: 0.95rem;
}

.live-host-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.live-host-panel-head h3,
.live-host-inline-head h4 {
  margin: 0;
}

.live-host-panel-head-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.live-host-room-form {
  gap: 0.8rem;
}

.live-host-saved-room-row {
  align-items: end;
}

.live-host-room-options-grid {
  align-items: start;
}

.live-host-image-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.live-host-image-controls {
  display: grid;
  gap: 0.45rem;
}

.live-host-advanced-panel {
  border: 1px solid rgba(235, 171, 255, 0.24);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  padding: 0.15rem 0.7rem 0.7rem;
}

.live-host-advanced-panel summary {
  cursor: pointer;
  list-style: none;
  color: #f0d3ff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.55rem 0 0.45rem;
}

.live-host-advanced-panel summary::-webkit-details-marker {
  display: none;
}

.live-host-advanced-field {
  padding-top: 0.2rem;
}

.live-host-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  padding-top: 0.2rem;
}

.live-host-action-bar .btn {
  min-width: 152px;
}

.live-host-source-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.live-host-source-card {
  display: grid !important;
  gap: 0.18rem;
  align-content: start;
  min-height: 86px;
  padding: 0.78rem 0.85rem !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(18, 9, 30, 0.94), rgba(11, 5, 19, 0.98)) !important;
  border: 1px solid rgba(214, 124, 255, 0.28) !important;
  color: #f0d1ff !important;
}

.live-host-source-card.is-selected {
  border-color: rgba(255, 214, 121, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(255, 214, 121, 0.18), 0 14px 26px rgba(0, 0, 0, 0.26);
  background: linear-gradient(180deg, rgba(58, 26, 11, 0.96), rgba(29, 12, 7, 0.98)) !important;
  color: #fff0c7 !important;
}

.live-host-source-card small {
  color: rgba(240, 209, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.35;
}

.live-host-source-card.is-selected small {
  color: rgba(255, 240, 199, 0.8);
}

.live-host-source-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.live-host-source-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
}

.live-host-source-summary {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 121, 0.28);
  background: linear-gradient(180deg, rgba(35, 17, 8, 0.96), rgba(20, 8, 5, 0.98));
  color: #ffe9b8;
}

.live-host-source-summary strong {
  font-size: 0.9rem;
}

.live-host-source-summary span {
  font-size: 0.79rem;
  line-height: 1.45;
  color: rgba(255, 233, 184, 0.82);
}

.live-host-source-stage {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid rgba(235, 171, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.live-host-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.live-host-screen-share-card {
  display: grid;
  gap: 0.45rem;
  min-height: 200px;
  align-content: start;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(235, 171, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.live-host-manual-panel {
  margin-top: 0.1rem;
}

.live-host-manual-actions {
  gap: 0.48rem;
}

.live-grid-tight {
  width: 100%;
}

.live-panel-raised {
  border: 1px solid rgba(219, 151, 255, 0.3);
  box-shadow: 0 10px 26px rgba(6, 2, 15, 0.34);
}

.go-live-page .live-panel-raised {
  border-color: rgba(241, 183, 255, 0.35);
  background:
    linear-gradient(175deg, rgba(64, 16, 108, 0.92), rgba(25, 8, 40, 0.95)),
    radial-gradient(300px 130px at 98% -18%, rgba(255, 156, 245, 0.16), transparent 72%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.go-live-page .live-panel-raised:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 204, 255, 0.54);
  box-shadow: 0 16px 34px rgba(11, 3, 21, 0.46);
}

.go-live-page .live-health-card {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.25rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 201, 126, 0.28);
  background:
    linear-gradient(180deg, rgba(27, 8, 42, 0.97), rgba(14, 6, 23, 0.98)),
    radial-gradient(circle at top left, rgba(255, 154, 77, 0.18), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.go-live-page .live-health-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(255, 201, 126, 0.15);
}

.go-live-page .live-health-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.go-live-page .live-health-label {
  color: #ffcf9c;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.go-live-page #goLiveStreamHealthStatus {
  color: #ffd3a6;
  font-size: 1rem;
}

.go-live-page #goLiveStreamHealthVideo,
.go-live-page #goLiveStreamHealthFps,
.go-live-page #goLiveStreamHealthConnection,
.go-live-page #goLiveStreamHealthAdvice {
  color: var(--text);
  text-align: right;
}

@media (max-width: 1120px) {
  .live-host-layout,
  .live-host-details-grid,
  .live-host-source-layout,
  .live-host-overview-grid,
  .live-host-desktop-hero {
    grid-template-columns: 1fr;
  }

  .live-host-side-panel {
    position: static;
    top: auto;
  }
}

.live-head {
  width: min(1160px, 100%);
  display: grid;
  gap: 0.52rem;
  text-align: left;
  border: 1px solid rgba(214, 127, 255, 0.62);
  background:
    linear-gradient(160deg, rgba(57, 14, 98, 0.94), rgba(26, 6, 43, 0.96)),
    radial-gradient(420px 190px at 86% -16%, rgba(212, 126, 255, 0.24), transparent 70%);
}

.go-live-page .live-head {
  border-color: rgba(246, 166, 255, 0.7);
  box-shadow: 0 14px 38px rgba(14, 3, 26, 0.46);
  background:
    linear-gradient(155deg, rgba(74, 18, 126, 0.96), rgba(30, 8, 49, 0.96)),
    radial-gradient(520px 230px at 100% -22%, rgba(255, 168, 244, 0.34), transparent 72%),
    radial-gradient(360px 180px at -8% 118%, rgba(123, 229, 255, 0.2), transparent 74%);
}

.live-head h1 {
  font-size: clamp(1.34rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.live-head .muted {
  max-width: 78ch;
}

.live-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.live-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.live-quick-link {
  border: 1px solid rgba(214, 127, 255, 0.72);
  border-radius: 999px;
  background: rgba(6, 2, 16, 0.55);
  color: #f4d4ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.28rem 0.56rem;
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.live-quick-link:hover,
.live-quick-link:focus-visible {
  border-color: rgba(126, 255, 212, 0.76);
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-1px);
}

.live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-stat-pill {
  border: 1px solid rgba(214, 127, 255, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #f2cbff;
  padding: 0.34rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-grid {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.86rem;
}

.live-panel {
  grid-column: span 6;
  display: grid;
  gap: 0.68rem;
  background:
    linear-gradient(180deg, rgba(59, 14, 101, 0.92), rgba(29, 7, 47, 0.93)),
    radial-gradient(380px 190px at 112% -30%, rgba(210, 120, 255, 0.15), transparent 74%);
  border: 1px solid rgba(211, 121, 255, 0.42);
}

.live-wide-panel {
  width: min(1160px, 100%);
  grid-column: span 12;
}

.live-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.live-form {
  display: grid;
  gap: 0.58rem;
}

.live-form input,
.live-form textarea,
.live-form select {
  width: 100%;
}

.live-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.live-field {
  display: grid;
  gap: 0.28rem;
}

.live-field label {
  color: #efcaff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.live-saved-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.56rem;
}

.live-room-image-field {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.live-room-image-preview {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(214, 124, 255, 0.36);
  background: rgba(0, 0, 0, 0.6);
}

.live-mini {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.42;
}

.live-source-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 42px;
  align-items: center;
}

.live-source-toggle label {
  border: 1px solid rgba(210, 94, 255, 0.7);
  border-radius: 999px;
  background: #000000;
  color: #df8cff;
  padding: 0.34rem 0.58rem;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.live-source-toggle input[type="radio"] {
  accent-color: #d173ff;
}

.live-room-state {
  display: grid;
  gap: 0.6rem;
  line-height: 1.45;
}

.live-room-state-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.live-room-state-head h3 {
  margin: 0;
  font-size: 1.06rem;
}

.live-room-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.live-room-state-item {
  border: 1px solid rgba(212, 124, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.36);
  padding: 0.44rem 0.5rem;
  display: grid;
  gap: 0.16rem;
}

.live-room-state-item span {
  color: var(--muted);
  font-size: 0.72rem;
}

.live-room-state-item strong {
  font-size: 0.82rem;
}

.live-room-state-playback {
  display: grid;
  gap: 0.2rem;
}

.live-room-state-playback span {
  color: var(--muted);
  font-size: 0.74rem;
}

.live-room-state-playback code {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  padding: 0.44rem 0.52rem;
  font-size: 0.76rem;
  word-break: break-all;
}

.live-kv {
  display: grid;
  gap: 0.24rem;
}

.live-kv span {
  color: #eec9ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.live-kv code {
  border: 1px solid rgba(214, 124, 255, 0.36);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.46rem 0.58rem;
  font-size: 0.76rem;
  word-break: break-all;
}

.go-live-page .live-kv code {
  border-color: rgba(245, 177, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(106, 231, 255, 0.12);
}

.live-mobile-preview {
  width: 100%;
  min-height: 200px;
  max-height: 340px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

.go-live-page .live-mobile-preview {
  border-color: rgba(235, 171, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(109, 227, 255, 0.14);
}

.go-live-page #liveBroadcastSetup .live-panel {
  grid-column: span 12;
}

.go-live-page #liveRoomSetup .live-panel {
  grid-column: span 12;
}

.live-rooms-grid {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.8rem;
}

.explore-raffle-banner {
  width: min(1160px, 100%);
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
}

.explore-raffle-banner-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 16px;
}

.explore-raffle-banner-viewport::-webkit-scrollbar {
  display: none;
}

.explore-raffle-banner-track {
  display: flex;
  gap: 0;
}

.explore-raffle-banner-card {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.75fr);
  gap: 0.8rem;
  align-items: center;
  min-height: 122px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(216, 132, 255, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(440px 220px at 102% 0%, rgba(84, 255, 214, 0.18), transparent 62%),
    radial-gradient(360px 180px at -5% 105%, rgba(245, 167, 70, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(39, 12, 61, 0.96), rgba(12, 5, 23, 0.98));
  box-shadow: 0 0 22px rgba(163, 63, 255, 0.16);
  cursor: pointer;
}

.explore-raffle-banner-card.is-raffle {
  background:
    radial-gradient(440px 220px at 102% 0%, rgba(84, 255, 214, 0.18), transparent 62%),
    radial-gradient(360px 180px at -5% 105%, rgba(245, 167, 70, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(39, 12, 61, 0.96), rgba(12, 5, 23, 0.98));
}

.explore-raffle-banner-card.is-diamond {
  background:
    radial-gradient(440px 220px at 102% 0%, rgba(106, 244, 255, 0.2), transparent 62%),
    radial-gradient(360px 180px at -5% 105%, rgba(255, 209, 87, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(17, 31, 59, 0.96), rgba(8, 7, 25, 0.98));
}

.explore-raffle-banner-card.is-vip {
  background:
    radial-gradient(440px 220px at 102% 0%, rgba(255, 228, 133, 0.2), transparent 62%),
    radial-gradient(360px 180px at -5% 105%, rgba(255, 123, 188, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(58, 26, 10, 0.96), rgba(22, 8, 10, 0.98));
}

.explore-raffle-banner-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.explore-raffle-banner-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 219, 132, 0.46);
  background: rgba(0, 0, 0, 0.28);
  color: #ffe6a4;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.explore-raffle-banner-card h2 {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.34rem);
  line-height: 1.02;
}

.explore-raffle-banner-card p {
  margin: 0;
  color: #ecd7ff;
  font-size: 0.74rem;
  line-height: 1.32;
  max-width: 58ch;
}

.explore-raffle-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.04rem;
}

.explore-raffle-banner-meta {
  color: #bfc7ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.explore-raffle-banner-cta {
  border: 0;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  background: linear-gradient(135deg, #ffffff, #f0d3ff);
  color: #35104a;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.explore-raffle-banner-graphics {
  position: relative;
  min-height: 92px;
  display: grid;
  place-items: center;
}

.explore-raffle-banner-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.explore-raffle-banner-orb-a {
  inset: 10% auto auto 6%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(255, 209, 92, 0.34), transparent 70%);
}

.explore-raffle-banner-orb-b {
  inset: auto 4% 6% auto;
  width: 88px;
  height: 88px;
  background: radial-gradient(circle, rgba(104, 255, 214, 0.24), transparent 70%);
}

.explore-raffle-banner-chip,
.explore-raffle-banner-prize {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.explore-raffle-banner-chip {
  width: clamp(44px, 5.2vw, 66px);
  height: clamp(44px, 5.2vw, 66px);
  left: 2%;
  top: 10%;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.28));
}

.explore-raffle-banner-prize {
  width: min(176px, 84%);
  max-height: 86px;
  right: 2%;
  bottom: 0;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.28));
}

.explore-raffle-banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.explore-raffle-banner-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
}

.explore-raffle-banner-dot.is-active {
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

@media (max-width: 820px) {
  .live-rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .explore-raffle-banner-card {
    grid-template-columns: 1fr;
    min-height: 112px;
    padding: 0.66rem 0.72rem;
    gap: 0.4rem;
  }

  .explore-raffle-banner-card h2 {
    font-size: 0.98rem;
  }

  .explore-raffle-banner-card p {
    font-size: 0.7rem;
  }

  .explore-raffle-banner-actions {
    align-items: flex-start;
  }

  .explore-raffle-banner-graphics {
    min-height: 64px;
  }

  .explore-raffle-banner-prize {
    width: min(145px, 80%);
    max-height: 62px;
  }

  .explore-raffle-banner-chip {
    width: 40px;
    height: 40px;
  }

  .live-room-card {
    padding: 0.62rem;
    gap: 0.46rem;
  }

  .live-room-card-head {
    gap: 0.38rem;
  }

  .live-room-card-avatar {
    width: 38px;
    height: 38px;
  }

  .live-room-card-head h3 {
    font-size: 0.88rem;
  }

  .live-room-card-meta,
  .live-room-card-description,
  .live-room-foot {
    font-size: 0.72rem;
  }
}

.live-room-empty {
  grid-column: 1 / -1;
}

.live-room-card {
  border: 1px solid rgba(210, 94, 255, 0.44);
  border-radius: 14px;
  background:
    linear-gradient(170deg, rgba(46, 12, 79, 0.92), rgba(21, 6, 34, 0.94)),
    radial-gradient(260px 150px at 115% -15%, rgba(224, 137, 255, 0.14), transparent 74%);
  box-shadow: 0 0 20px rgba(162, 58, 255, 0.18);
  padding: 0.78rem;
  display: grid;
  gap: 0.56rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.live-room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 150, 255, 0.72);
  box-shadow: 0 0 24px rgba(193, 93, 255, 0.3);
}

.live-room-card.is-live {
  box-shadow: 0 0 22px rgba(0, 232, 154, 0.25), 0 0 20px rgba(162, 58, 255, 0.18);
}

.live-room-card-media {
  border: 1px solid rgba(216, 132, 255, 0.36);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.44);
}

.live-room-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.live-room-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.live-room-card-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.live-room-card.is-previewing .live-room-card-preview {
  opacity: 1;
}

.live-room-card.is-previewing .live-room-card-image {
  opacity: 0;
}

.live-room-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem;
}

.live-status-pill,
.live-room-micro-pill {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: 1px solid rgba(214, 122, 255, 0.64);
  background: rgba(0, 0, 0, 0.48);
  color: #f5d7ff;
  text-transform: uppercase;
}

.live-room-level-micro-pill {
  border-color: rgba(255, 211, 105, 0.52);
  background: rgba(54, 28, 0, 0.38);
  color: #ffe7a0;
}

.live-room-level-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.live-report-user-modal {
  width: min(520px, calc(100vw - 2rem));
}

.live-report-user-body {
  display: grid;
  gap: 0.75rem;
}

.live-report-user-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f4d8ff;
}

.live-report-user-select,
.live-report-user-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(214, 122, 255, 0.34);
  background: rgba(16, 6, 28, 0.92);
  color: #f7ebff;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.live-report-user-textarea {
  min-height: 110px;
  resize: vertical;
}

.live-report-user-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.admin-moderation-modal-card {
  max-width: 940px;
}

.admin-moderation-evidence {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(214, 122, 255, 0.28);
  background: rgba(11, 7, 24, 0.92);
  color: #f4e8ff;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
}

.live-status-pill.is-live {
  border-color: rgba(0, 244, 170, 0.68);
  color: #8dffd0;
}

.live-status-pill.is-ready {
  border-color: rgba(255, 193, 98, 0.68);
  color: #ffd8a4;
}

.live-status-pill.is-ended {
  border-color: rgba(255, 120, 162, 0.7);
  color: #ffc0d8;
}

.live-room-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-room-hostline {
  min-width: 0;
}

.live-room-card-head h3 {
  font-size: 0.98rem;
  line-height: 1.2;
}

.live-room-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.live-room-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.live-room-card-description {
  margin: 0;
  color: #ecd7ff;
  font-size: 0.82rem;
  line-height: 1.42;
}

.live-room-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.live-room-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
}

.live-room-modal.hidden {
  display: none;
}

.live-room-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 420px at 50% 100%, rgba(152, 66, 255, 0.22), rgba(0, 0, 0, 0)),
    rgba(2, 2, 8, 0.86);
  backdrop-filter: blur(4px);
}

.live-room-modal-card {
  position: relative;
  width: min(1120px, calc(100% - 1rem));
  max-height: 94vh;
  border: 1px solid rgba(243, 179, 255, 0.4);
  border-radius: 18px;
  background:
    linear-gradient(175deg, rgba(54, 13, 92, 0.97), rgba(21, 7, 35, 0.98)),
    radial-gradient(420px 170px at 96% -18%, rgba(255, 159, 247, 0.2), transparent 74%),
    radial-gradient(280px 130px at -7% 110%, rgba(104, 227, 255, 0.14), transparent 74%);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.98rem;
  display: grid;
  gap: 0.72rem;
  overflow: hidden;
}

.live-room-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(235, 173, 255, 0.16);
  padding-bottom: 0.52rem;
}

.live-room-title-block {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.live-room-title-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.live-room-title-main h2 {
  margin: 0;
}

.live-room-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 105, 0.42);
  background: rgba(54, 28, 0, 0.34);
  color: #ffe7a0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-room-level-anchor:hover .live-room-level-popover,
.live-room-level-anchor:focus-within .live-room-level-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.live-room-level-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  z-index: 18;
  width: min(260px, 80vw);
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 105, 0.38);
  background: linear-gradient(180deg, rgba(42, 20, 13, 0.98), rgba(21, 9, 6, 0.98));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
  color: #ffe8b7;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.live-room-level-popover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(255, 211, 105, 0.38);
  border-top: 1px solid rgba(255, 211, 105, 0.38);
  background: rgba(39, 18, 12, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.live-room-level-popover-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.live-room-level-popover-head strong {
  font-size: 0.88rem;
  color: #fff1c5;
}

.live-room-level-popover-head span,
.live-room-level-popover-stats span {
  font-size: 0.72rem;
  color: rgba(255, 230, 173, 0.82);
}

.live-room-level-progress {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 225, 154, 0.12);
  border: 1px solid rgba(255, 217, 124, 0.16);
}

.live-room-level-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcf6d, #ffe9aa);
  box-shadow: 0 0 12px rgba(255, 211, 105, 0.42);
}

.live-room-level-popover-stats {
  display: grid;
  gap: 0.24rem;
  margin-top: 0.55rem;
}

.live-room-title-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto;
  flex-wrap: wrap;
}

body.live-room-view-page #liveHomeHostSetupBtn,
body.live-room-view-page #liveHomeHostRestBtn,
body.live-room-view-page #liveHomeAdminMenuBtn {
  display: inline-flex !important;
}

body.live-room-view-page #liveRoomMobileHostActions {
  display: flex !important;
}

body.live-room-view-page #liveRoomMobileHostSetupBtn,
body.live-room-view-page #liveRoomMobileHostRestBtn,
body.live-room-view-page #liveRoomMobileHostEndBtn {
  display: inline-flex !important;
}

.live-room-viewer-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.2rem;
  padding: 0.22rem 0.42rem 0.22rem 0.28rem;
  border: 1px solid rgba(233, 170, 255, 0.24);
  border-radius: 999px;
  background: rgba(12, 5, 20, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.live-room-viewer-strip.hidden {
  display: none;
}

.live-room-viewer-strip-avatars {
  display: flex;
  align-items: center;
  padding-left: 0.1rem;
}

.live-room-viewer-strip-avatar {
  width: 1.66rem;
  height: 1.66rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 3, 12, 0.82);
  object-fit: cover;
  margin-left: -0.34rem;
  box-shadow: 0 0 0 1px rgba(14, 8, 24, 0.84);
}

.live-room-viewer-strip-avatar:first-child {
  margin-left: 0;
}

.live-room-viewer-strip-count {
  min-width: 1.65rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f6ebff;
}

.live-room-watcher-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(233, 170, 255, 0.24);
  border-radius: 999px;
  background: rgba(12, 5, 20, 0.72);
  color: #f6ebff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.live-room-watcher-pill.hidden {
  display: none !important;
}

.live-room-mobile-viewer-strip {
  justify-self: start;
  max-width: 100%;
  margin-top: 0.08rem;
}

.live-room-mobile-host-title-row .live-room-mobile-viewer-strip,
.live-room-mobile-host-side .live-room-mobile-viewer-strip {
  margin-top: 0;
  min-height: 1.72rem;
  padding: 0.14rem 0.32rem 0.14rem 0.2rem;
  gap: 0.32rem;
  flex: 0 0 auto;
}

.live-room-mobile-host-title-row .live-room-mobile-viewer-strip .live-room-viewer-strip-avatar,
.live-room-mobile-host-side .live-room-mobile-viewer-strip .live-room-viewer-strip-avatar {
  width: 1.12rem;
  height: 1.12rem;
  margin-left: -0.22rem;
}

.live-room-mobile-host-title-row .live-room-mobile-viewer-strip .live-room-viewer-strip-count,
.live-room-mobile-host-side .live-room-mobile-viewer-strip .live-room-viewer-strip-count {
  min-width: 1rem;
  font-size: 0.68rem;
}

.live-room-mobile-host-side .live-room-mobile-viewer-strip {
  align-self: center;
}

.live-host-publish-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(7, 2, 14, 0.76);
  backdrop-filter: blur(8px);
}

.live-host-publish-modal {
  position: fixed;
  inset: 4vh 4vw;
  z-index: 1410;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.8rem;
  border: 1px solid rgba(233, 170, 255, 0.34);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 10, 49, 0.96), rgba(12, 4, 21, 0.98));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.live-host-publish-backdrop.hidden,
.live-host-publish-modal.hidden {
  display: none;
}

.live-host-go-live-helper-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  right: -100px;
  bottom: -100px;
  opacity: 0.01;
  pointer-events: none;
  border: 0;
  z-index: -1;
}

.live-host-publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.live-host-publish-head h3 {
  margin: 0;
}

.live-host-publish-frame {
  width: 100%;
  height: 100%;
  min-height: 72vh;
  border: 1px solid rgba(233, 170, 255, 0.2);
  border-radius: 16px;
  background: rgba(7, 3, 12, 0.92);
}

.live-room-admin-menu-btn {
  min-width: 6rem;
}

@media (max-width: 760px) {
  .live-room-view-page #liveHomeModal .live-room-admin-menu-btn {
    min-width: 0 !important;
    padding-inline: 0.55rem !important;
    white-space: nowrap !important;
  }
}

.live-viewer-list-modal {
  width: min(420px, calc(100vw - 1rem));
}

.live-viewer-list-body {
  display: grid;
  gap: 0.48rem;
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding-right: 0.14rem;
}

.live-viewer-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(233, 170, 255, 0.16);
  border-radius: 16px;
  background: rgba(20, 7, 33, 0.82);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.live-viewer-list-row:hover,
.live-viewer-list-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(246, 199, 255, 0.34);
  background: rgba(34, 11, 52, 0.92);
  outline: none;
}

.live-viewer-list-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 3, 12, 0.86);
}

.live-viewer-list-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.live-viewer-list-copy strong,
.live-viewer-list-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-viewer-list-copy strong {
  font-size: 0.92rem;
}

.live-viewer-list-copy span {
  font-size: 0.72rem;
  color: rgba(234, 218, 244, 0.74);
}

.live-viewer-list-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.28rem;
}

.live-viewer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(233, 170, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 232, 255, 0.82);
  font-size: 0.66rem;
  font-weight: 700;
}

.live-viewer-badge.is-host {
  border-color: rgba(113, 226, 255, 0.34);
  background: rgba(38, 139, 166, 0.18);
  color: #bff6ff;
}

.live-viewer-badge.is-admin {
  border-color: rgba(255, 208, 124, 0.34);
  background: rgba(188, 113, 17, 0.18);
  color: #ffe8bb;
}

.live-viewer-badge.is-muted {
  border-color: rgba(255, 141, 162, 0.3);
  background: rgba(156, 44, 69, 0.18);
  color: #ffc5d0;
}

.live-viewer-badge.is-virtual {
  border-color: rgba(126, 231, 183, 0.34);
  background: rgba(24, 121, 84, 0.18);
  color: #c7f6dc;
}

.live-room-admin-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 12;
  width: min(820px, calc(100vw - 1rem));
  padding-top: 0.45rem;
}

.live-room-admin-menu.hidden {
  display: none;
}

.live-room-modal-head h2 {
  margin: 0;
  font-size: clamp(1.04rem, 1.7vw, 1.34rem);
}

.live-room-modal-head p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}

.live-room-modal-player-wrap {
  border: 1px solid rgba(244, 180, 255, 0.35);
  border-radius: 14px;
  background: #000;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(108, 228, 255, 0.12);
}

.live-room-modal-video {
  width: 100%;
  max-height: min(56vh, 560px);
  min-height: 220px;
  background: #000;
  object-fit: contain;
}

.live-room-modal-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.7rem;
}

.live-room-modal-extra.live-room-modal-extra-stage {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

/* Keep chat pinned to the right column on desktop/tablet.
   Some global responsive rules set `.live-panel { grid-column: span 12; }` which would
   otherwise force chat to stack below the stage grid. */
.live-room-modal-extra.live-room-modal-extra-stage > .live-panel {
  grid-column: auto;
}

.live-room-stage-panel {
  grid-column: 1;
  grid-row: 1;
}

.live-room-right-rail {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-self: start;
  min-width: 0;
  width: min(100%, 460px);
}

.live-room-right-rail > * {
  min-width: 0;
}

.live-room-modal-extra .live-panel {
  gap: 0.6rem;
  border: 1px solid rgba(232, 168, 255, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(175deg, rgba(50, 13, 84, 0.92), rgba(20, 7, 34, 0.94)),
    radial-gradient(220px 100px at 102% -18%, rgba(255, 161, 247, 0.14), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 0.74rem;
}

.live-room-modal-extra .live-panel h3 {
  margin: 0;
  font-size: 0.94rem;
}

.live-room-stage-panel {
  display: grid;
  gap: 0.52rem;
  padding: 0.12rem;
}

.live-room-stage-status-row {
  display: grid;
  gap: 0.28rem;
  min-height: 0;
}

.live-room-view-page #liveHomeModal .live-room-stage-status-row {
  display: none !important;
}

.live-room-view-page #liveHomeModal,
.live-room-view-page #liveHomeModal .live-room-modal-card,
.live-room-view-page #liveHomeModal .live-room-mobile-hostcard,
.live-room-view-page #liveHomeModal .live-room-stage-panel,
.live-room-view-page #liveHomeModal .live-room-right-rail,
.live-room-view-page #liveHomeModal .live-room-right-rail > *,
.live-room-view-page #liveHomeModal .live-room-chat-panel,
.live-room-view-page #liveHomeModal .live-room-host-media,
.live-room-view-page #liveHomeModal .live-room-host-video,
.live-room-view-page #liveHomeModal .live-room-seat-card,
.live-room-view-page #liveHomeModal .live-room-seat-media,
.live-room-view-page #liveHomeModal .live-room-stage-panel > .actions .btn,
.live-room-view-page #liveHomeModal .live-room-resting-card {
  border-radius: 0 !important;
}

.live-room-playback-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  width: fit-content;
  min-height: 1.75rem;
  padding: 0.22rem 0.72rem;
  border: 1px solid rgba(233, 170, 255, 0.24);
  border-radius: 999px;
  background: rgba(12, 5, 20, 0.56);
  color: rgba(245, 224, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-room-playback-status::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(180, 180, 180, 0.72);
  box-shadow: 0 0 0 rgba(180, 180, 180, 0);
}

.live-room-playback-status.is-connecting::before {
  background: #ffbf47;
  box-shadow: 0 0 0 0 rgba(255, 191, 71, 0.65);
  animation: liveStatusPulse 1.4s ease-out infinite;
}

.live-room-playback-status.is-connected::before {
  background: #49e38d;
  box-shadow: 0 0 0 0 rgba(73, 227, 141, 0.72);
  animation: liveStatusPulse 1.5s ease-out infinite;
}

.live-room-playback-status.is-error::before {
  background: #ff6b7a;
}

.live-room-playback-status.is-idle::before {
  background: rgba(180, 180, 180, 0.72);
}

.live-room-mobile-hud {
  display: none;
}

.live-room-mobile-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
  align-items: center;
  justify-items: stretch;
}

.live-room-mobile-hostcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 18px;
  background: rgba(44, 22, 61, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  width: 100%;
  margin-inline: 0;
}

.live-room-mobile-host-ident {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-width: 0;
  flex: 1 1 auto;
}

.live-room-mobile-host-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.26rem;
  flex-wrap: wrap;
}

.live-room-mobile-host-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.live-room-mobile-host-meta {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  justify-items: start;
}

.live-room-mobile-host-title-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  width: 100%;
}

.live-room-mobile-host-meta strong,
.live-room-mobile-host-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-mobile-host-meta strong {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
}

.live-room-mobile-host-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.58rem;
  padding: 0.12rem 0.52rem;
  border: 1px solid rgba(255, 214, 120, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(110, 74, 12, 0.96), rgba(74, 49, 8, 0.98));
  color: #ffe8a3;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 244, 196, 0.28);
}

.live-room-mobile-host-follow.hidden {
  display: none !important;
}

.live-room-mobile-host-follow.is-following {
  border-color: rgba(255, 226, 150, 0.78);
  background: linear-gradient(180deg, rgba(133, 92, 18, 0.98), rgba(96, 64, 11, 0.98));
  color: #fff3c4;
}

.live-room-mobile-host-follow[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.live-room-mobile-host-meta span {
  font-size: 0.7rem;
  color: rgba(255, 226, 177, 0.92);
}

.live-room-mobile-host-meta span:empty,
.live-room-mobile-host-meta span[hidden] {
  display: none;
}

.live-room-mobile-level,
.live-room-mobile-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.live-room-mobile-level {
  background: rgba(20, 12, 30, 0.78);
  color: #fff0a6;
  border: 1px solid rgba(255, 223, 131, 0.28);
}

.live-room-mobile-actions {
  display: none;
}

.live-room-mobile-host-actions {
  display: none;
  margin-top: 0;
}

.live-room-mobile-status {
  gap: 0.42rem;
  background: rgba(20, 12, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 224, 255, 0.88);
}

.live-room-mobile-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(180, 180, 180, 0.72);
}

.live-room-mobile-status.is-connecting::before {
  background: #ffbf47;
  box-shadow: 0 0 0 0 rgba(255, 191, 71, 0.65);
  animation: liveStatusPulse 1.4s ease-out infinite;
}

.live-room-mobile-status.is-connected::before {
  background: #49e38d;
  box-shadow: 0 0 0 0 rgba(73, 227, 141, 0.72);
  animation: liveStatusPulse 1.5s ease-out infinite;
}

.live-room-mobile-status.is-error::before {
  background: #ff6b7a;
}

.live-room-mobile-exit {
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  border-radius: 999px;
  background: rgba(34, 17, 46, 0.78);
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.live-room-mobile-exit::before {
  content: "\00d7";
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.live-room-mobile-banner {
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(45, 226, 215, 0.94);
  color: rgba(55, 23, 0, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.live-room-mobile-banner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes liveStatusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(73, 227, 141, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(73, 227, 141, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(73, 227, 141, 0);
  }
}

.live-room-stage-viewport {
  border: 1px solid rgba(233, 170, 255, 0.34);
  border-radius: 12px;
  background: rgba(6, 15, 30, 0.56);
  overflow: hidden;
}

.live-room-stage-host {
  padding: 0.56rem;
  display: grid;
  gap: 0.38rem;
}

.live-room-host-media {
  border: 0;
  border-radius: 8px;
  background: rgba(2, 8, 24, 0.84);
  overflow: hidden;
  min-height: 128px;
  position: relative;
}

.live-room-host-video.live-room-modal-video {
  width: 100%;
  min-height: 220px;
  max-height: 360px;
  object-fit: contain;
  background: #000;
}

.live-gift-banner {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  overflow: hidden;
  pointer-events: none;
  z-index: 7;
}

.live-gift-banner.hidden {
  display: none;
}

.live-gift-banner-track {
  position: relative;
  width: 100%;
  min-height: 42px;
}

.live-gift-banner-text {
  position: absolute;
  top: 0;
  left: 100%;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(232, 168, 255, 0.46);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(34, 10, 54, 0.94), rgba(10, 3, 18, 0.96));
  box-shadow: 0 0 20px rgba(194, 92, 255, 0.22);
  color: #fff6ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.live-gift-banner.is-animating .live-gift-banner-text {
  animation: liveGiftBannerScroll 5s linear forwards;
}

@keyframes liveGiftBannerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-180%); }
}

.live-gift-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 60;
  transform: translate(-50%, -50%);
}

.live-gift-overlay.hidden {
  display: none;
}

.live-gift-overlay.is-visible .live-gift-overlay-card {
  animation: liveGiftOverlayFadeIn 420ms ease-out forwards;
}

.live-gift-overlay.is-exiting .live-gift-overlay-card {
  animation: liveGiftOverlayFadeOut 520ms ease-in forwards;
}

.live-gift-overlay-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.live-gift-overlay-image {
  width: min(26vw, 180px);
  height: min(26vw, 180px);
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(210, 110, 255, 0.28));
}

.live-gift-overlay-sparkles {
  display: none;
}

.live-gift-sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 24%, rgba(255, 233, 158, 0.95) 25% 46%, rgba(255, 189, 94, 0.52) 47% 72%, transparent 73%);
  box-shadow:
    0 0 18px rgba(255, 221, 136, 0.8),
    0 0 32px rgba(214, 122, 255, 0.35);
  opacity: 0;
}

@keyframes liveGiftOverlayFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes liveGiftOverlayFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.92);
  }
}

@keyframes liveGiftSparkleFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.7);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sparkle-x, 0), var(--sparkle-y, -48px), 0) scale(1.18);
  }
}

.gift-trace-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.gift-trace-gift-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.gift-trace-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.live-room-stage-seats {
  border-top: 1px solid rgba(233, 170, 255, 0.24);
  padding: 0.5rem;
}

.live-room-stage-seats .live-room-seat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.56rem;
}

.live-room-stage-seats .live-room-seat-card {
  min-width: 0;
}

/* Seats should flow naturally without a permanent spacer gap. */

.live-room-seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.56rem;
}

.live-room-seat-card {
  border: 1px solid rgba(233, 170, 255, 0.34);
  border-radius: 12px;
  background: rgba(6, 15, 30, 0.56);
  padding: 0.56rem;
  display: grid;
  gap: 0.38rem;
  cursor: pointer;
}

.live-room-seat-card:focus-visible {
  outline: 2px solid rgba(228, 142, 255, 0.92);
  outline-offset: 3px;
}

.live-room-seat-card.open {
  border-color: rgba(93, 232, 181, 0.56);
}

.live-room-seat-card.taken {
  border-color: rgba(239, 160, 255, 0.5);
  cursor: default;
}

.live-room-seat-card.mine {
  box-shadow: 0 0 0 1px rgba(117, 214, 255, 0.66), 0 8px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.live-room-seat-number {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.live-room-seat-media {
  border: 1px dashed rgba(141, 198, 255, 0.56);
  border-radius: 8px;
  min-height: 104px;
  background: rgba(2, 8, 24, 0.84);
  color: var(--muted);
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.live-room-seat-media.is-empty {
  padding: 0.35rem;
  text-align: center;
  background: #000 !important;
  color: #dfffe8;
}

.live-room-seat-join-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.58rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 118, 58, 0.98), rgba(15, 86, 41, 0.98));
  border: 1px solid rgba(119, 244, 165, 0.58);
  color: #dfffe8;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(64, 196, 110, 0.18);
}

.live-room-seat-video {
  width: 100%;
  height: 100%;
  min-height: 104px;
  max-height: 170px;
  object-fit: cover;
  background: #000;
}

.live-room-seat-occupant {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.live-room-seat-occupant span {
  font-size: 0.8rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-seat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.live-room-chat-list {
  --live-room-chat-rows-height: 24rem;
  border: 1px solid rgba(236, 174, 255, 0.3);
  border-radius: 12px;
  height: var(--live-room-chat-rows-height);
  min-height: var(--live-room-chat-rows-height);
  max-height: var(--live-room-chat-rows-height);
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.74), rgba(5, 11, 25, 0.82)),
    radial-gradient(240px 120px at 100% -14%, rgba(255, 158, 245, 0.12), transparent 72%);
  padding: 0.42rem;
  display: grid;
  align-content: start;
  gap: 0.34rem;
}

.live-room-chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(var(--live-room-chat-rows-height) - 0.84rem);
  padding: 0.9rem;
  border: 1px dashed rgba(236, 174, 255, 0.18);
  border-radius: 12px;
  color: rgba(234, 218, 244, 0.66);
  font-size: 0.84rem;
  text-align: center;
  background: rgba(8, 14, 28, 0.34);
}

.live-room-chat-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.42rem;
  align-items: start;
  cursor: pointer;
  border-radius: 12px;
}

.live-room-chat-item:hover,
.live-room-chat-item:focus-visible {
  outline: none;
}

.live-room-chat-pill {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.42rem;
  align-items: center;
  min-height: 3rem;
  border: 1px solid rgba(235, 173, 255, 0.24);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.34rem 0.45rem;
}

.live-room-chat-item.is-system {
  display: block;
  cursor: default;
  width: 100%;
  max-width: none;
}

.live-room-chat-system-text {
  margin: 0;
  padding: 0.08rem 0;
  color: rgba(233, 224, 246, 0.78);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-room-chat-item.is-system.is-join .live-room-chat-system-text {
  color: #76e59a;
}

.live-room-chat-item.is-system.is-leave .live-room-chat-system-text {
  color: #ff8f8f;
}

.live-room-chat-item:hover .live-room-chat-pill,
.live-room-chat-item:focus-visible .live-room-chat-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(235, 173, 255, 0.34);
}

.live-room-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(231, 168, 255, 0.35);
}

.live-room-chat-body {
  min-width: 0;
  display: grid;
  gap: 0;
}

.live-chat-user-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 2, 10, 0.68);
  backdrop-filter: blur(8px);
}

.live-chat-user-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1210;
  width: min(92vw, 420px);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(233, 170, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(175deg, rgba(50, 13, 84, 0.96), rgba(20, 7, 34, 0.98)),
    radial-gradient(220px 100px at 102% -18%, rgba(255, 161, 247, 0.14), transparent 72%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
  padding: 1rem;
}

.live-chat-user-menu.hidden,
.live-chat-user-menu-backdrop.hidden {
  display: none;
}

.live-chat-user-menu-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.live-chat-user-menu-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(231, 168, 255, 0.35);
  background: rgba(2, 8, 24, 0.84);
}

.live-chat-user-menu-ident {
  min-width: 0;
}

.live-chat-user-menu-ident h3 {
  margin: 0 0 0.18rem;
  font-size: 1rem;
}

.live-chat-user-menu-ident p {
  margin: 0;
}

.live-chat-user-menu-close {
  min-width: 2.4rem;
  padding-inline: 0.72rem;
}

.live-chat-user-menu-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.live-chat-user-menu-group {
  display: grid;
  gap: 0.5rem;
}

.live-chat-user-menu-group-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 222, 255, 0.76);
}

.live-chat-user-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.live-chat-user-menu-grid .btn {
  width: 100%;
  justify-content: center;
}

.live-room-action-modal .live-chat-user-menu-grid .action-wide {
  grid-column: 1 / -1;
}

.live-room-action-modal {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.live-join-choice-modal {
  width: min(460px, calc(100vw - 1.5rem));
}

.live-host-go-live-form-grid {
  grid-template-columns: 1fr;
}

.live-host-go-live-form-grid .live-field {
  margin: 0;
}

.live-host-go-live-form-grid input,
.live-host-go-live-form-grid select,
#liveHostGoLiveSeatCapacity {
  width: 100%;
}

.live-join-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.live-join-choice-btn {
  width: 100%;
  min-height: 56px;
  justify-content: center;
}

.live-join-choice-btn-wide {
  grid-column: 1 / -1;
}

.live-room-chat-line {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Manrope", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.25;
  color: #f1dcff;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-room-chat-text {
  color: #f1dcff;
  font-family: "Manrope", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.25;
}

.live-room-chat-vip-badge {
  width: 3.82rem;
  height: 1.89rem;
  max-width: none;
  margin: 0 0.18rem 0 0.22rem;
  display: inline-block;
  vertical-align: -0.16em;
  object-fit: contain;
}

.live-room-chat-player-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  height: 1.28rem;
  padding: 0 0.42rem;
  margin: 0 0.2rem 0 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.72);
  background: linear-gradient(180deg, rgba(76, 22, 110, 0.96), rgba(41, 10, 66, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #ffd978;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.live-room-chat-virtual-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.24rem;
  padding: 0 0.44rem;
  margin: 0 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 231, 183, 0.42);
  background: rgba(25, 113, 83, 0.2);
  color: #c8f7dc;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.live-room-inline-emoji {
  width: 2.13em;
  height: 2.13em;
  display: inline-block;
  vertical-align: -0.22em;
  object-fit: contain;
}

.live-room-chat-emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.live-room-chat-emoji-row .btn {
  min-width: 2.2rem;
  padding: 0.34rem 0.5rem;
  border-color: rgba(239, 177, 255, 0.38);
}

.chat-emoji-fallback {
  font-size: 1rem;
  line-height: 1;
}

.live-room-chat-toolbar {
  display: grid;
  gap: 0.35rem;
}

.live-room-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
  margin-top: 0.55rem;
}

.live-room-chat-compose textarea {
  width: 100%;
  border-color: rgba(208, 208, 208, 0.95);
  background: #ffffff;
  color: #111111;
  min-height: 3.5rem;
  resize: vertical;
  border-radius: 0;
  padding: 0.62rem 0.66rem;
  font: inherit;
  font-family: "Manrope", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
}

.live-room-chat-compose-actions {
  display: grid;
  gap: 0.22rem;
  align-self: end;
}

.live-room-chat-compose-actions .btn {
  min-width: 4.2rem;
  padding-inline: 0.62rem;
}

.live-room-icon-action-btn {
  width: fit-content;
  min-width: 0 !important;
  height: auto;
  min-height: 0;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}

.live-room-icon-action-btn:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.live-room-icon-action-img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  display: block;
}

.live-room-view-page #liveHomeModal #liveHomeModalGiftBtn {
  background: transparent !important;
  border: 0 !important;
  color: transparent !important;
  box-shadow: none !important;
}

.live-room-view-page #liveHomeModal #liveHomeModalChatSendBtn {
  background: transparent !important;
  border: 0 !important;
  color: transparent !important;
  box-shadow: none !important;
}

.live-room-chat-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto var(--live-room-chat-rows-height) auto auto;
  align-content: start;
  overflow: hidden;
}

.live-room-gift-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.55rem;
  border: 1px solid rgba(255, 215, 115, 0.7);
  background: linear-gradient(165deg, rgba(44, 22, 6, 0.78), rgba(16, 9, 3, 0.84));
}

.live-room-gift-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.live-room-gift-logo {
  width: 136px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  justify-self: center;
  border: 1px solid rgba(255, 234, 171, 0.7);
}

.live-room-gift-head .btn.active {
  border-color: #ffe4a6;
  color: #fff4db;
  box-shadow: 0 0 14px rgba(255, 202, 111, 0.45);
}

.live-room-gift-view {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0.46rem;
  min-height: 0;
}

.live-room-gift-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.live-room-gift-tab {
  padding: 0.35rem 0.58rem;
  font-size: 0.73rem;
  white-space: nowrap;
}

.live-room-gift-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.live-room-gift-grid {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.live-room-gift-item {
  border: 1px solid rgba(255, 232, 172, 0.55);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 0.38rem;
  display: grid;
  justify-items: center;
  gap: 0.24rem;
  cursor: pointer;
}

.live-room-gift-item-media {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 232, 172, 0.45);
  background: rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.live-room-gift-item-media img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gift-item-fallback {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffd67b;
}

.live-room-gift-item-name {
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}

.live-room-gift-item-price {
  font-size: 0.69rem;
  font-weight: 900;
  color: #ffdc9f;
}

.live-room-gift-qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
}

.live-room-gift-qty-row input {
  width: 70px;
  border: 1px solid rgba(255, 232, 172, 0.55);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  padding: 0.34rem 0.42rem;
}

/* Rebuilt single-room layout hard overrides */
.live-room-view-page #liveRoomPageRoot.live-room-page-shell {
  width: min(1360px, calc(100% - 1rem)) !important;
  margin: 0 auto !important;
  padding-top: 0.4rem !important;
  height: 100vh !important;
}

.live-room-view-page #liveHomeModal.live-room-modal {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

.live-room-view-page #liveHomeModal .live-room-modal-backdrop {
  display: none !important;
}

.live-room-view-page #liveHomeModal .live-room-modal-card {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(100vh - 1rem) !important;
  border-radius: 16px !important;
  padding: 0.7rem !important;
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  gap: 0.58rem !important;
  overflow: auto !important;
}

.live-room-view-page #liveHomeModal .live-room-modal-extra.live-room-modal-extra-stage {
  display: grid !important;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr) !important;
  gap: 0.62rem !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

.live-room-view-page #liveHomeModal .live-room-stage-panel,
.live-room-view-page #liveHomeModal .live-room-right-rail,
.live-room-view-page #liveHomeModal .live-room-right-rail > * {
  min-height: 0 !important;
  align-self: stretch !important;
}

.live-room-view-page #liveHomeModal .live-room-stage-panel,
.live-room-view-page #liveHomeModal .live-room-right-rail {
  height: 100% !important;
}

.live-room-view-page #liveHomeModal .live-room-stage-viewport {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.5rem !important;
}

.live-room-view-page #liveHomeModal .live-room-host-media,
.live-room-view-page #liveHomeModal .live-room-host-video.live-room-modal-video {
  min-height: 320px !important;
  max-height: 62vh !important;
  height: auto !important;
}

.live-room-view-page #liveHomeModal .live-room-seat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 0.45rem !important;
}

.live-room-view-page #liveHomeModal .live-room-seat-card {
  min-height: 148px !important;
}

.live-room-view-page #liveHomeModal .live-room-right-rail {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0.62rem !important;
  min-height: 0 !important;
}

.live-room-view-page #liveHomeModal .live-room-chat-panel {
  height: calc(100% + 2px) !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  margin-top: -2px !important;
}

.live-room-view-page #liveHomeModal .live-room-chat-list {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
}

.live-room-view-page #liveHomeModal .live-room-stage-panel,
.live-room-view-page #liveHomeModal .live-room-stage-viewport,
.live-room-view-page #liveHomeModal .live-room-stage-host,
.live-room-view-page #liveHomeModal .live-room-host-media,
.live-room-view-page #liveHomeModal .live-room-host-video.live-room-modal-video,
.live-room-view-page #liveHomeModal .live-room-stage-seats,
.live-room-view-page #liveHomeModal .live-room-seat-grid,
.live-room-view-page #liveHomeModal .live-room-seat-card,
.live-room-view-page #liveHomeModal .live-room-seat-media,
.live-room-view-page #liveHomeModal .live-room-seat-video,
.live-room-view-page #liveHomeModal .live-room-seat-avatar {
  border-radius: 0 !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-card {
  width: min(940px, calc(100% - 0.5rem)) !important;
  max-width: min(940px, calc(100vw - 1rem)) !important;
  grid-template-rows: auto auto auto !important;
  align-content: start !important;
  margin: 0 auto !important;
  padding: 0.56rem !important;
  gap: 0.46rem !important;
  border-radius: 14px !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-extra.live-room-modal-extra-stage {
  grid-template-columns: minmax(460px, 620px) 280px !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 0.5rem !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel,
.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-panel,
.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-viewport,
.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-host,
.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media,
.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video,
.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-right-rail {
  height: auto !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-right-rail {
  align-self: start !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel {
  width: min(100%, 620px) !important;
  justify-self: center !important;
  padding: 0.08rem !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media,
.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
  width: 100% !important;
  min-height: 0 !important;
  max-height: min(52vh, 420px) !important;
  aspect-ratio: 16 / 9 !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-panel {
  min-width: 280px !important;
  padding: 0.58rem !important;
}

.live-room-view-page #liveHomeModal.is-multi-seat .live-room-modal-card {
  height: auto !important;
  min-height: 0 !important;
  grid-template-rows: auto auto 1fr !important;
  overflow: hidden !important;
}

.live-room-view-page .live-room-chat-panel,
.live-room-view-page .live-room-stage-panel {
  border-radius: 16px;
}

.live-room-view-page #liveHomeModal .live-room-chat-panel.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .live-room-view-page #liveHomeModal .live-room-modal-extra.live-room-modal-extra-stage {
    grid-template-columns: 1fr !important;
  }
  .live-room-view-page #liveHomeModal .live-room-right-rail {
    grid-template-rows: minmax(0, 1fr) !important;
  }
  .live-room-view-page #liveHomeModal .live-room-host-media,
  .live-room-view-page #liveHomeModal .live-room-host-video.live-room-modal-video {
    min-height: 220px !important;
    max-height: 48vh !important;
  }
}

.live-room-admin-details {
  border: 1px solid rgba(232, 168, 255, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(175deg, rgba(50, 13, 84, 0.92), rgba(20, 7, 34, 0.94)),
    radial-gradient(220px 100px at 102% -18%, rgba(255, 161, 247, 0.14), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.6rem;
}

.live-room-admin-details.hidden {
  display: none;
}

.live-room-admin-menu .live-room-admin-details {
  display: block;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.live-room-admin-summary {
  cursor: pointer;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
  user-select: none;
}

.live-room-admin-summary::-webkit-details-marker {
  display: none;
}

.live-room-admin-summary::after {
  content: " \\25be";
  font-size: 0.75rem;
  color: var(--muted);
}

.live-room-admin-details[open] .live-room-admin-summary::after {
  content: " \\25b4";
}

.live-room-admin-panel {
  margin-top: 0.55rem;
}

.live-room-admin-panel {
  grid-column: 1 / -1;
}

.live-room-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.live-room-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.live-room-admin-col {
  border: 1px solid rgba(233, 170, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.78), rgba(5, 11, 24, 0.62));
  padding: 0.7rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.live-room-admin-col-room {
  border-color: rgba(101, 220, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(146, 236, 255, 0.08);
}

.live-room-admin-col-admin {
  border-color: rgba(240, 166, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 206, 250, 0.08);
}

.live-room-admin-section-head {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-room-admin-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9defff;
}

.live-room-admin-col-admin .live-room-admin-eyebrow {
  color: #ffccfb;
}

.live-room-admin-copy {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(228, 232, 244, 0.76);
}

.live-room-admin-block {
  display: grid;
  gap: 0.42rem;
}

.live-room-admin-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f2d9ff;
  text-transform: uppercase;
}

.live-room-admin-list {
  display: grid;
  gap: 0.35rem;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid rgba(234, 171, 255, 0.26);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.38rem;
}

.live-room-admin-member {
  width: 100%;
  border: 1px solid rgba(232, 170, 255, 0.3);
  border-radius: 10px;
  background: rgba(7, 17, 32, 0.75);
  color: var(--text);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
  padding: 0.32rem 0.42rem;
  cursor: pointer;
  text-align: left;
}

.live-room-admin-member img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(236, 173, 255, 0.34);
}

.live-room-admin-member-main {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.live-room-admin-member-main strong {
  font-size: 0.78rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-admin-member-main small {
  font-size: 0.68rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-admin-member-meta {
  grid-column: 2;
  font-size: 0.66rem;
  color: #e7ccff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-admin-member.is-selected {
  border-color: rgba(120, 225, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(120, 225, 255, 0.6);
}

.live-room-admin-member:disabled {
  cursor: default;
  opacity: 0.72;
}

.live-room-admin-actions {
  gap: 0.4rem;
}

.live-room-admin-actions .btn {
  flex: 1 1 calc(50% - 0.2rem);
  min-width: 0;
}

.live-room-admin-form {
  display: grid;
  gap: 0.34rem;
}

.live-room-admin-form label {
  font-size: 0.76rem;
  color: var(--muted);
}

.live-room-admin-form select {
  width: 100%;
  border: 1px solid rgba(236, 173, 255, 0.38);
  border-radius: 10px;
  background: rgba(7, 15, 30, 0.74);
  color: var(--text);
  padding: 0.42rem 0.5rem;
  font-size: 0.78rem;
}

.live-room-admin-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.34rem;
}

.live-room-admin-inline-swap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.live-room-admin-seat-capacity-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.live-room-admin-seat-capacity-row input {
  width: 100%;
  border: 1px solid rgba(236, 173, 255, 0.38);
  border-radius: 10px;
  background: rgba(7, 15, 30, 0.74);
  color: var(--text);
  padding: 0.42rem 0.5rem;
  font-size: 0.78rem;
}

.live-room-view-page .live-room-page-shell {
  width: min(1320px, calc(100% - 1rem));
  gap: 0.5rem;
  height: 100vh;
}

.live-room-page-topbar {
  display: grid;
  gap: 0.38rem;
}

.live-room-page-topbar .live-head-actions {
  justify-content: space-between;
}

.live-room-view-page .live-room-modal {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  padding: 0;
}

.live-room-view-page .live-room-modal-backdrop {
  display: none;
}

.live-room-view-page .live-room-modal-card {
  width: 100%;
  max-height: calc(100vh - 1rem);
  min-height: 0;
  height: calc(100vh - 1rem);
  padding: 0.68rem;
  border-radius: 18px;
  border: 1px solid rgba(224, 132, 255, 0.78);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(160, 58, 255, 0.22), rgba(12, 4, 22, 0.95)),
    linear-gradient(165deg, rgba(30, 10, 50, 0.96), rgba(10, 3, 18, 0.98));
  box-shadow: 0 0 28px rgba(185, 92, 255, 0.34), inset 0 0 22px rgba(106, 34, 168, 0.2);
  backdrop-filter: blur(7px);
  overflow: hidden;
}

.live-room-view-page .live-room-modal-video {
  max-height: min(54vh, 600px);
  min-height: 270px;
  border: 1px solid rgba(214, 126, 255, 0.42);
  box-shadow: 0 0 18px rgba(177, 86, 245, 0.3);
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-modal-video {
  max-height: min(34vh, 320px);
  min-height: 170px;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-modal-extra {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 0.42rem;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-stage-viewport {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.42rem;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-host-video.live-room-modal-video {
  max-height: 360px;
  min-height: 220px;
}

.live-room-view-page .live-room-host-video.live-room-modal-video {
  max-height: 480px;
  min-height: 280px;
}

.live-room-view-page .live-room-host-media,
.live-room-view-page .live-room-host-video.live-room-modal-video {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.live-room-view-page .live-room-modal-video {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-grid {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.28rem;
  align-items: start;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-card {
  grid-template-rows: auto minmax(72px, 1fr) auto;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-card {
  padding: 0.28rem;
  gap: 0.16rem;
  border: 1px solid rgba(211, 116, 255, 0.48);
  background: rgba(10, 4, 18, 0.84);
  box-shadow: inset 0 0 10px rgba(145, 52, 224, 0.18);
  border-radius: 0 !important;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-media {
  min-height: 72px;
  border-radius: 0 !important;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-video {
  min-height: 72px;
  max-height: 112px;
  border-radius: 0 !important;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-number {
  font-size: 0.62rem;
  line-height: 1.1;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-occupant {
  gap: 0.26rem;
  min-width: 0;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-occupant span,
.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-media.is-empty {
  font-size: 0.66rem;
  line-height: 1.2;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-occupant span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-seat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.live-room-view-page .live-room-modal.is-multi-seat .live-room-chat-list {
  max-height: 50vh;
}

.live-room-view-page .live-room-chat-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.live-room-view-page .live-room-stage-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.live-room-view-page .live-room-stage-viewport {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.live-room-view-page .live-room-stage-host {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.live-room-view-page .live-room-host-media {
  min-height: 0;
  height: 100%;
}

.live-room-view-page .live-room-chat-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 0.34rem;
  height: var(--live-room-chat-rows-height);
  min-height: var(--live-room-chat-rows-height);
  max-height: var(--live-room-chat-rows-height);
  overflow-y: auto;
}

.live-room-view-page .live-room-chat-item {
  display: block;
  width: 100%;
}

.live-room-view-page .live-room-chat-pill {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 0.14rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.live-room-view-page .live-room-chat-avatar {
  display: none;
}

.live-room-view-page .live-room-chat-body {
  gap: 0.02rem;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.live-room-view-page .live-room-chat-line {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Manrope", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
  min-width: 0;
}

.live-room-view-page .live-room-chat-name {
  font-size: 0.8rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.live-room-view-page .live-room-chat-colon {
  font-size: 0.8rem;
  font-weight: 900;
  margin-right: 0.18rem;
  flex: 0 0 auto;
}

.live-room-view-page .live-room-chat-text {
  font-size: 0.8rem;
  font-family: "Manrope", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
  line-height: 1.2;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.live-room-view-page .live-room-inline-emoji {
  width: 2.05em;
  height: 2.05em;
  flex: 0 0 auto;
}

.live-room-view-page .live-room-chat-vip-badge {
  width: 3.55rem !important;
  height: 1.72rem !important;
  max-width: none !important;
  flex: 0 0 auto;
  margin: 0 0.16rem 0 0.18rem;
  vertical-align: middle;
}

.live-room-view-page .live-room-chat-player-level {
  min-width: 2.4rem;
  height: 1.22rem;
  padding: 0 0.34rem;
  font-size: 0.7rem;
  flex: 0 0 auto;
  margin-right: 0.16rem;
}

.live-room-view-page .live-room-chat-system-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  padding: 0.04rem 0;
}

.live-room-view-page .live-room-chat-item:hover .live-room-chat-pill,
.live-room-view-page .live-room-chat-item:focus-visible .live-room-chat-pill {
  background: transparent;
  border-color: transparent;
}

.live-room-view-page .live-room-chat-text strong {
  font-weight: 900;
}

.live-room-view-page .live-room-chat-text em {
  font-style: italic;
}

.live-room-view-page .live-room-chat-compose textarea {
  color: #111111;
  -webkit-text-fill-color: #111111;
  font-family: "Manrope", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
}

.live-room-view-page .live-room-chat-compose textarea::placeholder {
  color: rgba(17, 17, 17, 0.55);
}

.live-room-chat-format-row {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  grid-column: 1 / -1;
}

.chat-format-btn {
  min-width: 2.3rem;
  padding: 0.3rem 0.55rem;
}

.chat-emoji-btn {
  padding: 0.2rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-emoji-btn img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  display: block;
}

.live-room-view-page .live-room-chat-compose {
  margin-top: 0.72rem;
}

.live-room-chat-compose-input {
  position: relative;
  min-width: 0;
}

.live-room-chat-emoji-toggle {
  position: absolute;
  right: 0.38rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: fit-content;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  z-index: 2;
  cursor: pointer;
}

.live-room-chat-emoji-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  line-height: 0;
}

.live-room-chat-emoji-toggle-image {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.live-room-chat-emoji-picker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.55rem);
  width: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid rgba(233, 170, 255, 0.3);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(24, 13, 37, 0.98), rgba(13, 7, 22, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  z-index: 4;
}

.live-room-chat-emoji-picker.hidden {
  display: none !important;
}

.live-room-chat-emoji-choice {
  min-width: 0;
  height: auto;
  min-height: 4.5rem;
  padding: 0.55rem 0.35rem;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  gap: 0.28rem;
  justify-items: center;
  align-content: center;
  border-radius: 16px;
}

.live-room-chat-emoji-choice img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.live-room-chat-emoji-label {
  font-size: 0.66rem;
  font-weight: 800;
  color: #f6ebff;
}

.live-room-view-page .live-room-chat-compose-actions {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, 2.35rem);
  gap: 0.22rem;
  justify-content: end;
}

.live-room-view-page .live-room-chat-toolbar {
  padding: 0.1rem 0 0.05rem;
}

.live-room-view-page .live-room-chat-emoji-row {
  gap: 0.45rem;
}

.live-room-view-page .chat-emoji-btn,
.live-room-view-page .chat-format-btn {
  border-radius: 999px;
}

.live-room-view-page .chat-emoji-btn {
  width: 2.35rem;
  height: 2.35rem;
  box-shadow: 0 0 0 1px rgba(255, 216, 126, 0.12);
}

.live-room-view-page .live-room-gift-head {
  padding-bottom: 0.05rem;
}

.live-room-view-page .live-room-gift-logo {
  width: 124px;
  height: 42px;
  opacity: 0.95;
}

.live-room-view-page .live-room-gift-view {
  padding-top: 0.1rem;
}

.live-room-view-page .live-room-gift-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-room-view-page .live-room-gift-item {
  min-height: 90px;
}

.live-room-view-page .live-room-chat-panel,
.live-room-view-page .live-room-admin-details,
.live-room-view-page .live-room-stage-panel {
  border: 1px solid rgba(211, 116, 255, 0.38);
  background: rgba(12, 4, 22, 0.76);
  box-shadow: inset 0 0 15px rgba(120, 41, 195, 0.16);
}

.live-room-view-page .live-room-admin-menu .live-room-admin-details {
  margin-top: 0;
}

.live-room-view-page .live-room-chat-compose input {
  border-color: rgba(211, 116, 255, 0.45);
  background: rgba(6, 2, 11, 0.8);
}

/* The room page is click-to-join for seats; hide the redundant join/leave buttons. */
.live-room-view-page .live-room-stage-panel .actions {
  display: none;
}

.live-room-view-page .header-nav {
  padding-right: 2.9rem;
}

.live-room-view-page .header-nav-corner {
  right: 0.45rem;
}

.policy-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.65rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 18, 29, 0.34);
  padding: 0.72rem;
}

:root[data-theme="light"] .policy-check {
  background: rgba(240, 247, 255, 0.92);
}

.policy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0.08rem 0 0;
}

.policy-check span {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.policy-check input:disabled + span {
  opacity: 0.65;
}

.read-gate-msg {
  color: #f1c6ff;
}

.policy-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}

.policy-consent-modal.hidden {
  display: none;
}

.policy-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.policy-consent-card {
  position: relative;
  width: min(620px, calc(100% - 1.2rem));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 6, 30, 0.97);
  box-shadow: 0 0 28px rgba(146, 44, 224, 0.46);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.policy-consent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.policy-consent-body {
  display: grid;
  gap: 0.7rem;
}

.policy-consent-links,
.policy-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-footer {
  padding: 0.2rem 0 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.site-footer .footer-social {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  flex-wrap: nowrap;
}

.site-footer .social-link {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(210, 94, 255, 0.65);
  background: rgba(0, 0, 0, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(198, 84, 255, 0.36);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-footer .social-link:hover {
  transform: translateY(-2px);
  border-color: #e8a8ff;
  box-shadow: 0 0 16px rgba(223, 125, 255, 0.6);
}

.site-footer .social-link:focus-visible {
  outline: 2px solid #e8a8ff;
  outline-offset: 2px;
}

.site-footer .social-link img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}

.site-footer .footer-brand,
.site-footer-brand {
  margin: 0;
  font-family: "Audiowide", "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ff003c, #ff9e00, #ffee00, #00ff85, #00d9ff, #7a5cff, #ff00d4, #ff003c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  line-height: 1.1;
  animation: terms-footer-rgb-shift 4.2s linear infinite, terms-footer-rgb-glow 1.8s ease-in-out infinite;
}

.site-footer .footer-copy,
.site-footer-copy {
  font-size: 2em;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.terms-footer {
  padding: 0.25rem 0 1rem;
  text-align: center;
}

.terms-footer p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.terms-footer-brand {
  font-family: "Audiowide", "Sora", sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ff003c, #ff9e00, #ffee00, #00ff85, #00d9ff, #7a5cff, #ff00d4, #ff003c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: terms-footer-rgb-shift 4.2s linear infinite, terms-footer-rgb-glow 1.8s ease-in-out infinite;
}

.terms-footer-copy {
  font-size: 2em;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

@keyframes terms-footer-rgb-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

@keyframes terms-footer-rgb-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 70, 220, 0.55));
  }
  50% {
    filter: drop-shadow(0 0 11px rgba(0, 220, 255, 0.72));
  }
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: saturate(0.7);
  transform: none;
  box-shadow: none;
}

.btn:disabled:hover {
  transform: none;
  border-color: rgba(210, 94, 255, 0.78);
  color: #df8cff;
  box-shadow: none;
}

.hidden {
  display: none;
}

@media (max-width: 1024px) {
  .go-live-page::before,
  .go-live-page::after {
    opacity: 0.3;
  }

  .live-host-layout {
    grid-template-columns: 1fr;
  }

  .live-host-side-panel {
    grid-template-columns: 1fr;
  }

  .live-host-status-grid {
    grid-template-columns: 1fr;
  }

  .live-host-source-toggle {
    grid-template-columns: 1fr;
  }

  .live-panel {
    grid-column: span 12;
  }

  .live-stage {
    padding: 0.7rem;
  }

  .live-form-grid,
  .live-room-state-grid {
    grid-template-columns: 1fr;
  }

  .live-saved-room-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .profile-avatar-wrap {
    max-width: 280px;
  }

  .profile-cover-image {
    max-height: 220px;
  }

  .dm-app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100dvh - 180px);
    overflow: visible;
    gap: 0;
    grid-template-rows: auto auto;
    position: relative;
  }

  .dm-page.dm-mobile-drawer-open {
    overflow: hidden;
  }

  .dm-mobile-quickbar {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.7rem 0;
    position: sticky;
    top: 0;
    z-index: 12;
    background: linear-gradient(180deg, rgba(16, 4, 28, 0.98), rgba(16, 4, 28, 0.88));
    backdrop-filter: blur(12px);
  }

  .dm-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 48;
    background: rgba(4, 1, 9, 0.72);
    backdrop-filter: blur(6px);
  }

  .dm-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.82rem 0.82rem 0.68rem;
    border-bottom: 1px solid rgba(210, 94, 255, 0.22);
    background: linear-gradient(180deg, rgba(18, 4, 30, 0.98), rgba(18, 4, 30, 0.9));
    backdrop-filter: blur(12px);
  }

  .dm-mobile-topbar-copy {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
  }

  .dm-mobile-topbar-kicker {
    color: #f5d4ff;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .dm-mobile-topbar h1 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .dm-mobile-topbar-status {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .dm-mobile-topbar-actions {
    display: grid;
    gap: 0.4rem;
    justify-items: end;
  }

  .dm-mobile-topbar-btn {
    min-width: 5.2rem;
    min-height: 2.4rem;
    padding-inline: 0.8rem;
  }

  .dm-mobile-quickbar-link {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(210, 94, 255, 0.34);
    background: rgba(6, 2, 10, 0.82);
    color: #f5d4ff;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
  }

  .dm-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(92vw, 420px);
    max-width: 420px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    max-height: none;
    padding: 4.9rem 0.8rem 0.85rem;
    background: linear-gradient(180deg, rgba(20, 5, 32, 0.99), rgba(12, 4, 22, 0.99));
    box-shadow: 22px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-103%);
    transition: transform 0.22s ease;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-margin-top: 4.5rem;
  }

  .dm-thread-block {
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 0.55rem;
  }

  .dm-side-brand {
    padding: 0.78rem 0.82rem;
  }

  .dm-thread-head {
    align-items: center;
  }

  .dm-mobile-close-threads {
    display: inline-flex;
    min-height: 2.35rem;
    padding-inline: 0.8rem;
  }

  .dm-page.dm-mobile-drawer-open .dm-side {
    transform: translateX(0);
  }

  .dm-thread-section-official {
    display: none;
  }

  .dm-thread-list {
    max-height: none;
    padding-right: 0;
  }

  .dm-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 4.5rem;
  }

  .dm-chat-head {
    position: sticky;
    top: 0;
    z-index: 6;
    background: linear-gradient(180deg, rgba(20, 5, 32, 0.98), rgba(20, 5, 32, 0.94));
    backdrop-filter: blur(10px);
    padding: 0.8rem 0.85rem;
  }

  .dm-chat-user {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.55rem;
  }

  .dm-chat-avatar {
    width: 48px;
    height: 48px;
  }

  .dm-chat-stage {
    flex: 1 1 auto;
    padding: 0.8rem 0.85rem 0.9rem;
    gap: 0.7rem;
  }

  .dm-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .dm-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .dm-messages {
    flex: 1 1 auto;
    min-height: 46vh;
    padding: 0.8rem 0.85rem 1rem;
    scroll-margin-top: 6rem;
    overscroll-behavior: contain;
  }

  .dm-send-form {
    position: sticky;
    bottom: 0;
    z-index: 7;
    background: linear-gradient(180deg, rgba(20, 5, 32, 0.86), rgba(20, 5, 32, 0.98));
    backdrop-filter: blur(10px);
    scroll-margin-top: 6rem;
    padding: 0.75rem 0.85rem calc(env(safe-area-inset-bottom, 0px) + 0.85rem);
    gap: 0.55rem;
  }

  .dm-send-form textarea {
    min-height: 76px;
    border-radius: 14px;
  }

  .dm-send-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dm-send-tools {
    gap: 0.5rem;
  }

  .dm-send-tools .notice {
    margin-left: 0;
  }

  .dm-emoji-toggle,
  .dm-gift-toggle,
  .dm-send-row .btn.secondary {
    width: 100%;
  }

  .dm-emoji-picker {
    position: static;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-3,
  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-wide {
    grid-column: span 1;
  }

  .admin-command-center-head {
    flex-direction: column;
  }

  .admin-quick-links,
  .admin-filter-bar {
    width: 100%;
  }

  .admin-quick-link,
  .admin-filter-btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  .admin-action-state-grid {
    grid-template-columns: 1fr;
  }

  .policy-read-wrap {
    grid-template-columns: 1fr;
  }

  .users-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .live-room-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .live-room-view-page .live-gift-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    transform: none;
    z-index: 2200;
  }

  .live-room-view-page .live-gift-overlay-card {
    width: 100%;
    height: 100%;
    padding: 1.2rem;
  }

  .live-room-view-page .live-gift-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(20, 8, 34, 0.26) 42%, rgba(3, 2, 8, 0.42) 100%);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .live-room-view-page .live-gift-overlay.is-visible::before,
  .live-room-view-page .live-gift-overlay.is-exiting::before {
    opacity: 1;
  }

  .live-room-view-page .live-gift-overlay-image {
    width: min(90vw, 420px);
    height: min(90vw, 420px);
    max-width: 82%;
    max-height: 82%;
    filter:
      drop-shadow(0 0 22px rgba(255, 232, 181, 0.72))
      drop-shadow(0 0 44px rgba(210, 110, 255, 0.36));
  }

  .live-room-view-page .live-gift-overlay-sparkles {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .live-room-view-page .live-gift-overlay.is-visible .live-gift-sparkle,
  .live-room-view-page .live-gift-overlay.is-exiting .live-gift-sparkle {
    animation: liveGiftSparkleFloat 1.6s ease-out infinite;
  }

  .live-room-view-page .live-gift-overlay .sparkle-a { top: 20%; left: 26%; --sparkle-x: -8px; --sparkle-y: -58px; animation-delay: 0s; }
  .live-room-view-page .live-gift-overlay .sparkle-b { top: 26%; right: 24%; --sparkle-x: 10px; --sparkle-y: -64px; animation-delay: 0.18s; }
  .live-room-view-page .live-gift-overlay .sparkle-c { top: 42%; left: 18%; --sparkle-x: -18px; --sparkle-y: -42px; animation-delay: 0.38s; }
  .live-room-view-page .live-gift-overlay .sparkle-d { top: 44%; right: 16%; --sparkle-x: 16px; --sparkle-y: -48px; animation-delay: 0.56s; }
  .live-room-view-page .live-gift-overlay .sparkle-e { bottom: 24%; left: 28%; --sparkle-x: -4px; --sparkle-y: -52px; animation-delay: 0.78s; }
  .live-room-view-page .live-gift-overlay .sparkle-f { bottom: 20%; right: 28%; --sparkle-x: 8px; --sparkle-y: -56px; animation-delay: 1s; }

  .go-live-page::before,
  .go-live-page::after {
    opacity: 0.2;
    filter: blur(28px);
  }

  .live-host-panel-head,
  .live-host-inline-head {
    flex-direction: column;
    align-items: stretch;
  }

  .live-host-desktop-hero {
    padding: 0.82rem;
  }

  .live-host-overview-card,
  .live-host-source-stage,
  .live-host-helper-card {
    padding: 0.78rem;
  }

  .live-host-panel-head-meta,
  .live-host-step-row {
    justify-content: flex-start;
  }

  .live-host-image-row {
    grid-template-columns: 1fr;
  }

  .live-host-action-bar .btn,
  .live-host-saved-room-row .btn,
  .live-host-manual-actions .btn {
    width: 100%;
  }

  .live-head {
    text-align: left;
  }

  .live-stage {
    border-radius: 14px;
    padding: 0.62rem;
  }

  .live-head-actions {
    width: 100%;
  }

  .live-head-actions .btn {
    width: 100%;
  }

  .live-quick-links {
    width: 100%;
  }

  .live-quick-link {
    width: 100%;
    text-align: center;
  }

  .live-stats {
    width: 100%;
  }

  .live-stat-pill {
    width: 100%;
    text-align: center;
  }

  .live-room-modal-card {
    width: calc(100% - 0.2rem);
    border-radius: 12px;
    padding: 0.64rem;
    height: calc(100vh - 0.4rem);
    max-height: calc(100vh - 0.4rem);
  }

  .live-room-card {
    border-radius: 12px;
    padding: 0.58rem;
  }

  .live-room-card-head {
    gap: 0.38rem;
  }

  .live-room-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .live-room-foot .btn {
    width: 100%;
  }

  .live-room-card-avatar {
    width: 40px;
    height: 40px;
  }

  .live-room-modal-extra {
    grid-template-columns: 1fr;
  }

  .live-room-modal-extra.live-room-modal-extra-stage {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
  }

  .live-room-stage-panel,
  .live-room-chat-panel,
  .live-room-admin-details {
    grid-column: auto;
    grid-row: auto;
  }

  .live-room-right-rail {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    min-height: 0;
  }

  .live-room-stage-panel {
    order: 1;
    width: 100%;
    min-height: 0;
    height: 100%;
  }

  .live-room-chat-panel {
    width: 100%;
    min-height: 0;
    height: 100%;
  }

  .live-room-admin-details {
    min-height: 0;
    height: 100%;
  }

  .live-room-view-page #liveHomeModal .live-room-modal-extra.live-room-modal-extra-stage {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 0 !important;
    min-height: 100dvh;
    align-items: stretch;
  }

  body.live-room-view-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .live-room-view-page #liveRoomPageRoot.live-room-page-shell,
  .live-room-view-page #liveRoomPageRoot.shell.page.live-page.live-room-page-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding-top: 0 !important;
  }

  .live-room-view-page #liveHomeModal {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
  }

  .live-room-view-page #liveHomeModal .live-room-modal-card {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.3rem !important;
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-modal-head {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal .live-room-mobile-hud {
    display: grid !important;
    gap: 0 !important;
    position: relative;
    z-index: 8;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
  }

  .live-room-view-page #liveHomeModal .live-room-mobile-hud > * {
    pointer-events: auto;
  }

  .live-room-view-page #liveHomeModal .live-room-mobile-topbar {
    width: 100% !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    margin: 0 !important;
    padding-top: 0.08rem !important;
    padding-bottom: 0.08rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: none !important;
  }

  .live-room-view-page #liveHomeModal .live-room-mobile-topbar > * {
    margin-top: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-mobile-host-actions {
    display: flex !important;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: nowrap;
    width: auto;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-mobile-host-actions.hidden {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-mobile-host-actions .btn {
    min-height: 1.78rem;
    padding: 0.24rem 0.48rem;
    border-radius: 999px;
    background: rgba(34, 22, 46, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-right-rail {
    order: 2;
    grid-row: 3;
    padding: 0;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-panel {
    order: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-height: 0;
    max-height: none;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(12, 6, 22, 0.98), rgba(6, 3, 12, 0.98));
    border: 0;
    overflow: hidden;
    align-self: stretch;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-viewport {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 0;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-host {
    height: auto;
    min-height: 0;
    gap: 0.22rem;
    flex: 0 0 auto;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-host-media {
    height: auto;
    min-height: 16dvh;
    max-height: 24dvh;
    width: 100% !important;
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-host-video.live-room-modal-video {
    min-height: 16dvh;
    max-height: 24dvh;
    height: auto;
    width: 100% !important;
    object-fit: cover !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-seats {
    grid-row: 2;
    display: block;
    margin: 0 0.12rem 0.05rem;
    padding: 0.34rem 0.34rem 0.16rem;
    border-radius: 12px;
    background: rgba(18, 10, 28, 0.86);
    border: 1px solid rgba(236, 174, 255, 0.18);
    position: relative;
    z-index: 2;
    margin-top: 0.22rem;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: unset;
    gap: 0.26rem;
    overflow-x: hidden;
    overflow-y: visible;
    scrollbar-width: none;
    scroll-snap-type: none;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-card {
    min-width: 0;
    padding: 0.2rem;
    gap: 0.12rem;
    border-radius: 10px;
    scroll-snap-align: unset;
    box-shadow: inset 0 0 10px rgba(145, 52, 224, 0.14);
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-number {
    font-size: 0.54rem;
    line-height: 1;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-media {
    min-height: 50px;
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-video {
    min-height: 50px;
    max-height: 64px;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-occupant {
    gap: 0.18rem;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-occupant span {
    font-size: 0.58rem;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-avatar {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.18rem !important;
    min-height: 0 !important;
    padding: 0.34rem 0.34rem calc(env(safe-area-inset-bottom, 0px) + 0.28rem) !important;
    border-radius: 14px 14px 0 0 !important;
    background: linear-gradient(180deg, rgba(22, 10, 34, 0.96), rgba(8, 5, 16, 0.98)) !important;
    border: 1px solid rgba(211, 116, 255, 0.2) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-list {
    max-height: 12rem !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-panel h3 {
    margin: 0 0 0.08rem !important;
    font-size: 0.76rem !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-toolbar {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-compose {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 0.22rem !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-compose textarea {
    min-height: 2.15rem !important;
    max-height: 3.6rem !important;
    padding: 0.48rem 2.6rem 0.48rem 0.72rem !important;
    font-size: 0.78rem !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-compose-input {
    min-width: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-emoji-toggle {
    right: 0.24rem !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: fit-content !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    box-shadow: none !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-emoji-picker {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-compose-actions {
    display: flex;
    align-items: center;
    gap: 0.16rem;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-compose-actions .btn {
    min-width: 2.7rem;
    height: 2.15rem;
    padding: 0 0.56rem;
    border-radius: 999px;
    background: rgba(34, 22, 46, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    font-size: 0.78rem;
  }

  .live-room-host-video.live-room-modal-video {
    min-height: 0;
    max-height: none;
  }

  .live-room-stage-seats .live-room-seat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-room-seat-grid-stage .live-room-seat-card:nth-child(1),
  .live-room-seat-grid-stage .live-room-seat-card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .live-room-seat-grid-stage::before {
    display: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-card {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #09060f;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-head {
    display: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-extra.live-room-modal-extra-stage {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(48dvh, 56dvh) auto;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    position: relative;
    gap: 0 !important;
    overflow: visible;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel {
    position: relative;
    grid-row: 1;
    grid-column: 1;
    display: grid;
    gap: 0.35rem;
    height: auto !important;
    min-height: 60dvh !important;
    max-height: 64dvh !important;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-viewport,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-host,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-viewport {
    min-height: 56dvh !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
    min-height: 56dvh !important;
    max-height: 58dvh !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media {
    border-radius: 0;
    box-shadow: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
    object-fit: contain;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-seats,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) #liveHomeModalSeatMeta,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-seat-number,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-status-row,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel > .actions {
    display: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-hud {
    display: grid;
    gap: 0.22rem;
    position: relative;
    z-index: 8;
    padding: calc(env(safe-area-inset-top, 0px) + 0.28rem) 0.45rem 0 0.45rem;
    pointer-events: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-hud > * {
    pointer-events: auto;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-host-actions {
    display: flex !important;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: nowrap;
    width: auto;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-host-actions.hidden {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-host-actions .btn {
    min-height: 1.78rem;
    padding: 0.24rem 0.48rem;
    border-radius: 999px;
    background: rgba(34, 22, 46, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-right-rail {
    grid-row: 2;
    grid-column: 1;
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border: 1px solid rgba(211, 116, 255, 0.2);
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(22, 10, 34, 0.96), rgba(8, 5, 16, 0.98));
    box-shadow: none;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.34rem 0.34rem calc(env(safe-area-inset-bottom, 0px) + 0.28rem);
    gap: 0.18rem;
    pointer-events: auto;
    min-height: 0;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-panel h3 {
    display: block;
    margin: 0 0 0.08rem;
    font-size: 0.76rem;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-list {
    display: grid;
    align-content: start;
    gap: 0.28rem;
    padding: 0.22rem;
    min-height: 0;
    height: auto;
    max-height: 12rem;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: none;
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.72), rgba(5, 11, 25, 0.82));
    border: 1px solid rgba(236, 174, 255, 0.22);
    border-radius: 14px;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-list::-webkit-scrollbar {
    display: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-item {
    width: 100%;
    max-width: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-pill {
    display: inline-grid;
    min-height: 0;
    padding: 0.14rem 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-toolbar {
    display: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-row {
    display: flex;
    gap: 0.32rem;
    overflow-x: auto;
    padding-bottom: 0.08rem;
    scrollbar-width: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-row::-webkit-scrollbar {
    display: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-row .btn,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-format-row .btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.3rem 0.52rem;
    border-radius: 999px;
    background: rgba(34, 22, 46, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-format-row {
    margin-left: auto;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.32rem;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose-input {
    min-width: 0;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose textarea {
    min-height: 2.5rem;
    max-height: 4.2rem;
    border-radius: 24px;
    padding: 0.6rem 3rem 0.6rem 0.82rem;
    font-size: 0.82rem;
    background: #ffffff;
    color: #111111;
    -webkit-text-fill-color: #111111;
    border: 1px solid #d0d0d0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-toggle {
    right: 0.32rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: fit-content;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    box-shadow: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-picker {
    left: 0;
    right: 0;
    width: auto;
  }

  .live-room-action-modal {
    top: max(0.9rem, env(safe-area-inset-top));
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 1.2rem), 420px);
    max-height: none;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-viewer-strip.hidden {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-viewer-strip .live-room-viewer-strip-avatar {
    width: 1.46rem;
    height: 1.46rem;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-mobile-viewer-strip .live-room-viewer-strip-count {
    min-width: 1.45rem;
    font-size: 0.74rem;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose-actions {
    display: flex;
    align-items: center;
    gap: 0.16rem;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose-actions .btn {
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    font-size: 0;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    background: linear-gradient(180deg, rgba(7, 4, 12, 0) 0%, rgba(7, 4, 12, 0.42) 72%, rgba(7, 4, 12, 0.75) 100%);
    pointer-events: none;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) #liveHomeModalGiftBtn {
    min-width: 0;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    background: linear-gradient(180deg, rgba(7, 4, 12, 0) 0%, rgba(7, 4, 12, 0.42) 72%, rgba(7, 4, 12, 0.75) 100%);
    pointer-events: none;
  }

  .live-room-chat-compose {
    grid-template-columns: 1fr;
  }

  .live-room-admin-actions .btn {
    flex-basis: 100%;
  }

  .live-room-admin-inline {
    grid-template-columns: 1fr;
  }

  .live-room-admin-inline-swap {
    grid-template-columns: 1fr;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-card {
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #09060f !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-head {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-extra.live-room-modal-extra-stage {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 40dvh !important;
    max-height: 40dvh !important;
    position: relative !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #05030a !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-viewport,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-host,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
    object-fit: contain !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-seats,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) #liveHomeModalSeatMeta,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-seat-number,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-status-row,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel > .actions {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-right-rail {
    order: 2 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    position: relative !important;
    inset: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    pointer-events: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-panel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    pointer-events: auto !important;
    min-height: 100% !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-panel {
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-panel h3 {
    display: block !important;
    margin: 0 0 0.22rem !important;
    font-size: 0.84rem !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-list {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 17.25rem !important;
    overflow-y: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.3rem 0.3rem 0.26rem !important;
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.72), rgba(5, 11, 25, 0.82)) !important;
    border: 1px solid rgba(236, 174, 255, 0.22) !important;
    border-radius: 0 !important;
    scrollbar-width: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose {
    padding: 0 !important;
    margin-top: auto !important;
    align-self: stretch !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-list::-webkit-scrollbar {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-toolbar {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-row {
    display: flex !important;
    gap: 0.32rem !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-row::-webkit-scrollbar {
    display: none !important;
  }

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 0.22rem !important;
  margin-top: auto !important;
  justify-items: stretch !important;
  width: 100% !important;
}

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose-input {
    min-width: 0 !important;
  }

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose textarea {
  min-height: 2.15rem !important;
  max-height: 3.6rem !important;
  padding: 0.48rem 2.6rem 0.48rem 0.72rem !important;
  font-size: 0.78rem !important;
  border-radius: 0 !important;
  border: 1px solid #d0d0d0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  box-shadow: none !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-compose textarea::placeholder {
  color: rgba(17, 17, 17, 0.55) !important;
}

.live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-toggle {
  right: 0.24rem !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: fit-content !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
  box-shadow: none !important;
}

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-emoji-picker {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }

  .shell {
    width: calc(100% - 1rem);
  }

  .profile-hero-card {
    border-radius: 14px;
    padding: 0.72rem;
  }

  .profile-cover-card {
    border-radius: 14px;
    padding: 0.62rem;
  }

  .profile-edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-wall-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-comment-item.is-reply {
    margin-left: 0.35rem;
  }

  .profile-comment-submit-row {
    justify-content: stretch;
  }

  .profile-comment-submit-row .btn {
    width: 100%;
  }

  .dm-app {
    border-radius: 14px;
    height: calc(100vh - 195px);
    min-height: calc(100vh - 195px);
  }

  .dm-mobile-topbar {
    padding-inline: 0.72rem;
  }

  .dm-side {
    width: min(88vw, 400px);
    max-width: 400px;
    padding-top: 4.7rem;
  }

  .dm-page.dm-mobile-drawer-open .dm-side {
    transform: translateX(0) !important;
  }

  .dm-main,
  .dm-chat-head,
  .dm-messages,
  .dm-send-form {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .dm-chat-head {
    padding-top: 0.76rem;
    padding-bottom: 0.76rem;
  }

  .dm-thread-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .dm-thread-time {
    grid-column: 2;
    justify-self: end;
  }

  .dm-send-form {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.8rem);
  }

  .dm-emoji-picker {
    position: static;
    width: 100%;
  }

  .support-ticket-line strong {
    max-width: 180px;
  }

  .support-reply-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header .header-inner {
    border-radius: 14px;
    padding: 10px;
  }

  .site-header .header-inner.nav-center-only {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
  }

  .site-header .header-inner.nav-center-only .header-nav {
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
  }

  .site-header .brand-media {
    width: 48px;
    height: 48px;
  }

  .site-header .header-nav-link {
    font-size: 12px;
    padding: 5px 7px;
  }

  .site-header .header-nav-link-with-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-width: 0;
    height: 76px;
    min-height: 76px;
    width: 100%;
    padding: 2px 1px 3px;
    border-radius: 18px;
    background: transparent;
    position: relative;
    box-shadow: none;
  }

  .site-header .header-nav-mobile-icon {
    display: block;
    width: 50px;
    height: 50px;
  }

  .site-header .header-nav-mobile-label {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    min-height: 22px;
    color: #f7d8ff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
    opacity: 1;
    visibility: visible;
  }

  .site-header .header-chat-link,
  .site-header .header-vip-link {
    gap: 3px;
  }

  .site-header .header-nav-icon-badge-wrap .dm-unread-badge {
    position: absolute;
    top: -8px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .site-header .header-nav-settings-badge {
    position: absolute;
    top: -8px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 9px;
  }

  .site-header .header-inner.nav-center-only .header-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px 2px;
    align-items: start;
  }

  .site-header .header-profile-pill {
    width: 51px;
    height: 51px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-profile-avatar {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header .header-nav-gear {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .site-header .header-nav-settings-icon-wrap {
    width: 50px;
    height: 50px;
  }

  .site-header .header-nav-icon-badge-wrap {
    width: 50px;
    height: 50px;
  }

  .site-header .header-inner.nav-center-only .logout-link {
    position: static;
    transform: none;
  }

  .site-header .header-inner.nav-center-only .header-nav-settings .header-nav-menu {
    left: 0;
    right: auto;
    transform: none;
  }

  .site-header .header-inner.nav-center-only .header-nav-corner .header-nav-settings .header-nav-menu {
    left: auto;
    right: 0;
  }

  .site-header .header-inner.nav-center-only .header-nav-corner {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    justify-self: stretch;
    display: contents;
    width: auto;
    flex: 0 0 auto;
    gap: 0;
  }

  .site-header .header-nav-corner-item {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-width: 0;
    height: 76px;
    min-height: 76px;
    width: 100%;
  }

  .site-header .header-nav-corner-label {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    min-height: 22px;
    color: #f7d8ff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
  }

  .site-header .header-actions .logout-link {
    font-size: 12px;
    padding: 5px 8px;
  }

  .primary-nav {
    padding: 0.5rem;
    border-radius: 12px;
  }

  .settings-status-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .users-directory {
    border-radius: 14px;
    padding: 0.72rem;
  }

  .users-cards-grid {
    grid-template-columns: 1fr;
  }

  .user-card {
    border-radius: 12px;
    padding: 0.58rem;
  }

  .user-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-card-actions {
    flex-direction: column;
  }

  .user-card-top {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .user-card-role {
    justify-self: start;
  }

  .hero,
  .panel {
    border-radius: 14px;
  }
}

/* Shop */
.shop-balance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.shop-balance-pill {
  border: 1px solid rgba(210, 94, 255, 0.62);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #f4cdff;
  padding: 0.3rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.shop-redeem-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.shop-redeem-form input {
  flex: 1 1 220px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 0.9rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.shop-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.shop-pack {
  border: 1px solid rgba(210, 94, 255, 0.35);
  border-radius: 16px;
  background: rgba(12, 3, 20, 0.78);
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: var(--shadow);
}

.shop-pack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.shop-pack-diamonds {
  color: rgba(244, 205, 255, 0.96);
  font-weight: 900;
}

.shop-pack-note {
  font-size: 0.85rem;
}

/* VIP */
.vip-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.5rem;
}

.vip-pill {
  --vip-color: rgba(210, 94, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--vip-color);
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  letter-spacing: 0.2px;
}

.vip-xp {
  border: 1px solid rgba(210, 94, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.78rem;
  color: rgba(255, 255, 255, 0.86);
}

.vip-perks {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

/* VIP Page */
.vip-page {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.vip-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(210, 94, 255, 0.18), rgba(26, 7, 42, 0.92));
  display: grid;
  gap: 0.75rem;
}

.vip-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vip-title {
  margin: 0.25rem 0 0;
  font-size: 1.6rem;
  line-height: 1.15;
}

.vip-subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.vip-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.35rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .vip-summary-row {
    grid-template-columns: 1fr;
  }
}

.vip-summary-box {
  border: 1px solid rgba(210, 94, 255, 0.35);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: var(--shadow);
}

.vip-progress {
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(210, 94, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
}

.vip-progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(210, 94, 255, 0.35);
}

.vip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (max-width: 980px) {
  .vip-stats {
    grid-template-columns: 1fr;
  }
}

.vip-stat {
  border: 1px solid rgba(210, 94, 255, 0.25);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.15rem;
}

.vip-stat-label {
  color: rgba(240, 198, 255, 0.92);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.vip-stat-value {
  font-weight: 900;
  font-size: 1.08rem;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 94, 255, 0.45);
  background: rgba(0, 0, 0, 0.55);
  font-weight: 900;
}

.vip-badge .icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(210, 94, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-badge .icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.vip-tasks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}

@media (max-width: 1120px) {
  .vip-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .vip-tasks {
    grid-template-columns: 1fr;
  }
}

.vip-task {
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: var(--shadow);
}

.vip-task h3 {
  margin: 0;
  font-size: 1rem;
}

.vip-task-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.vip-task-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(210, 94, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

.vip-task-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s ease;
}

.vip-task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.vip-task-done {
  border: 1px solid rgba(147, 255, 210, 0.24);
  background: rgba(147, 255, 210, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-weight: 900;
}

.vip-perks-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .vip-perks-grid {
    grid-template-columns: 1fr;
  }
}

.vip-perk {
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: var(--shadow);
}

.vip-perk h3 {
  margin: 0;
  font-size: 1rem;
}

.vip-tier-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.vip-tier-card {
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: var(--shadow);
}

.vip-tier-card .name {
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.vip-tier-card .badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(210, 94, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-tier-card .badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.vip-tier-grid .tier {
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: var(--shadow);
}

.vip-tier-grid .tier .name {
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.vip-tier-grid .tier .badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(210, 94, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-tier-grid .tier .badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Raffle */
.raffle-page {
  padding-top: 1rem;
}

.raffle-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 176, 87, 0.18), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(123, 132, 255, 0.16), transparent 24%),
    linear-gradient(160deg, rgba(30, 11, 54, 0.98), rgba(8, 9, 18, 0.97));
}

.raffle-hero::before,
.raffle-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.75;
}

.raffle-hero::before {
  inset: auto auto -120px -80px;
  width: 260px;
  height: 260px;
  background: rgba(255, 126, 229, 0.18);
}

.raffle-hero::after {
  inset: -100px -60px auto auto;
  width: 220px;
  height: 220px;
  background: rgba(97, 217, 255, 0.14);
}

.raffle-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.raffle-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.raffle-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
}

.raffle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.raffle-badge,
.raffle-hero-card,
.raffle-cost-pill,
.raffle-panel-count,
.raffle-live-pill {
  border: 1px solid rgba(210, 94, 255, 0.38);
  background: rgba(5, 6, 14, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.raffle-badge {
  min-width: 138px;
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.raffle-badge strong {
  font-size: 1.05rem;
}

.raffle-hero-card {
  border-radius: 24px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  background:
    linear-gradient(180deg, rgba(16, 16, 33, 0.72), rgba(6, 5, 14, 0.86)),
    radial-gradient(circle at top, rgba(210, 94, 255, 0.16), transparent 55%);
}

.raffle-hero-card-top,
.raffle-panel-heading,
.raffle-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.raffle-live-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
}

.raffle-hero-chip,
.raffle-panel-count,
.raffle-cost-pill {
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.raffle-diamond-count {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.raffle-hero-note {
  margin: 0;
  line-height: 1.4;
}

.raffle-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding-top: 0.25rem;
}

.raffle-hero-meta div {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.raffle-notice {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
}

.raffle-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.raffle-panel {
  display: grid;
  gap: 1rem;
}

.raffle-entry-panel {
  grid-column: span 5;
}

.raffle-tickets-panel {
  grid-column: span 7;
}

.raffle-prizes-panel {
  grid-column: 1 / -1;
}

.raffle-panel-heading {
  align-items: flex-start;
}

.raffle-panel-heading h2 {
  margin-bottom: 0;
}

.raffle-cost-pill {
  display: grid;
  gap: 0.1rem;
  text-align: right;
}

.raffle-enter-form {
  display: grid;
  gap: 1rem;
}

.raffle-qty-row {
  display: grid;
  gap: 0.45rem;
}

.raffle-qty-input-wrap {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 0.5rem;
}

.raffle-step-btn {
  border: 1px solid rgba(210, 94, 255, 0.35);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.46);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
}

.raffle-step-btn:disabled,
.raffle-quick-pick:disabled,
.raffle-enter-form input:disabled,
.raffle-buy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.raffle-enter-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  background: rgba(4, 15, 24, 0.56);
  color: var(--text);
  font-size: 1rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-align: center;
}

.raffle-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.raffle-quick-pick {
  min-width: 46px;
  border: 1px solid rgba(210, 94, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.75rem;
  font-weight: 900;
}

.raffle-quick-pick.is-active {
  border-color: rgba(255, 205, 112, 0.7);
  background: linear-gradient(135deg, rgba(255, 171, 64, 0.24), rgba(210, 94, 255, 0.18));
  color: #fff;
}

.raffle-summary-row {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.raffle-buy-btn {
  width: 100%;
  min-height: 48px;
}

.raffle-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 3rem;
}

.raffle-ticket {
  border: 1px solid rgba(210, 94, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.3rem 0.72rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
}

.raffle-empty-state {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(210, 94, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.raffle-prizes {
  display: grid;
  gap: 0.75rem;
}

.raffle-prize {
  position: relative;
  border: 1px solid rgba(210, 94, 255, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 8, 31, 0.92), rgba(10, 4, 18, 0.84));
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.4rem;
}

.raffle-prize.is-featured {
  border-color: rgba(255, 194, 98, 0.55);
  background:
    linear-gradient(180deg, rgba(43, 18, 19, 0.95), rgba(10, 4, 18, 0.88));
}

.raffle-prize-ribbon {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 194, 98, 0.18);
  color: rgba(255, 234, 186, 0.96);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.raffle-prize-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.raffle-prize-slot {
  color: rgba(240, 198, 255, 0.9);
  font-weight: 900;
}

@media (max-width: 940px) {
  .raffle-hero-grid,
  .raffle-layout {
    grid-template-columns: 1fr;
  }

  .raffle-entry-panel,
  .raffle-tickets-panel {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .raffle-hero-meta {
    grid-template-columns: 1fr;
  }

  .raffle-hero-card-top,
  .raffle-panel-heading,
  .raffle-summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .raffle-cost-pill {
    text-align: left;
  }

  .raffle-qty-input-wrap {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
}
.live-room-resting-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 18, 0.68);
  backdrop-filter: blur(6px);
  z-index: 4;
}

.live-room-resting-overlay.hidden {
  display: none;
}

.live-room-resting-card {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(28, 18, 46, 0.9);
  border: 1px solid rgba(208, 116, 255, 0.35);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.live-room-resting-image {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(159, 83, 255, 0.28));
}

.live-room-seat-media[data-seat-camera-disabled="1"] {
  background: rgba(19, 15, 30, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.live-room-ended-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #000;
}

.live-room-ended-overlay.hidden {
  display: none;
}

.live-room-ended-card {
  width: min(100%, 30rem);
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
  color: #fff;
}

.live-room-ended-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 214, 116, 0.92);
}

.live-room-ended-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.05;
}

.live-room-ended-copy {
  margin: 0;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.live-room-ended-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.live-room-ended-actions .btn {
  min-width: 9rem;
}

.live-room-ended-follow {
  background: linear-gradient(135deg, #f7d36b, #d99a18);
  color: #160b00;
  border: 1px solid rgba(255, 226, 139, 0.88);
  box-shadow: 0 14px 32px rgba(217, 154, 24, 0.28);
}

.live-room-ended-friend {
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 760px) {
  html,
  body.live-room-view-page {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .live-room-view-page #liveHomeModal {
    align-items: stretch;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal .live-room-modal-card {
    width: 100% !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .live-room-view-page #liveHomeModal .live-room-modal-extra.live-room-modal-extra-stage {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .live-room-view-page #liveHomeModal .live-room-stage-panel {
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 58dvh !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
  }

  .live-room-view-page #liveHomeModal .live-room-stage-viewport {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 0.35rem !important;
  }

  .live-room-view-page #liveHomeModal .live-room-stage-host {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .live-room-view-page #liveHomeModal .live-room-host-media,
  .live-room-view-page #liveHomeModal .live-room-host-video.live-room-modal-video {
    width: 100% !important;
    height: auto !important;
    min-height: 18dvh !important;
    max-height: 30dvh !important;
  }

  .live-room-view-page #liveHomeModal .live-room-stage-seats {
    order: 2 !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0.22rem !important;
  }

  .live-room-view-page #liveHomeModal .live-room-right-rail {
    order: 3 !important;
    width: 100% !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  .live-room-view-page #liveHomeModal .live-room-chat-panel {
    min-height: 0 !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  .live-room-view-page #liveHomeModal .live-room-chat-list {
    max-height: 17.25rem !important;
    min-height: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-panel {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-viewport {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    gap: 0.12rem !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-seats {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    overflow: hidden !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    margin-top: 0 !important;
    margin: 0 0.12rem 0 !important;
    padding: var(--mobile-seat-wrap-padding, 0.12rem) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid {
    grid-template-columns: repeat(var(--mobile-seat-columns, 2), minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    justify-content: stretch !important;
    align-content: stretch !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
    gap: var(--mobile-seat-gap, 0.12rem) !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-card {
    min-height: 0 !important;
    height: auto !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: var(--mobile-seat-padding, 0.05rem) !important;
    gap: 0.02rem !important;
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-media,
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-video {
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-avatar {
    width: 16px !important;
    height: 16px !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-number {
    font-size: var(--mobile-seat-font-size, 0.46rem) !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-occupant span,
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-media.is-empty {
    font-size: 0.54rem !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-occupant {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-host {
    padding: 0 !important;
    gap: 0.12rem !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-host-media,
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-host-video.live-room-modal-video {
    min-height: var(--mobile-host-media-height, 22dvh) !important;
    height: var(--mobile-host-media-height, 22dvh) !important;
    max-height: var(--mobile-host-media-height, 22dvh) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-right-rail {
    display: flex !important;
    flex: 1 1 auto !important;
    height: calc((100dvh - var(--mobile-seat-stage-height, 58dvh)) + 20px) !important;
    min-height: calc(var(--mobile-chat-panel-height, 18dvh) + 20px) !important;
    max-height: none !important;
    overflow: hidden !important;
    gap: 0 !important;
    margin-top: 0 !important;
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 0.08rem) 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-panel {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 100% !important;
    margin-top: 0 !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-list {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-chat-panel h3 {
    display: none !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-stage-panel {
    max-height: var(--mobile-seat-stage-height, 43dvh) !important;
    min-height: var(--mobile-seat-stage-height, 43dvh) !important;
    height: var(--mobile-seat-stage-height, 43dvh) !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-stage-viewport {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
    width: 96% !important;
    aspect-ratio: 1 / 1 !important;
    gap: 0.18rem !important;
    padding: 0.18rem !important;
    margin: 0 auto !important;
    overflow: visible !important;
    background: linear-gradient(180deg, rgba(14, 9, 24, 0.96), rgba(6, 4, 12, 0.98)) !important;
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-stage-host {
    display: block !important;
    grid-column: 1 / span 4 !important;
    grid-row: 1 / span 4 !important;
    width: calc(75% + 50px) !important;
    top: 0 !important;
    bottom: calc(20% - 10px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    z-index: 1 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-host-media,
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-host-video.live-room-modal-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-stage-seats {
    grid-column: 1 / -1 !important;
    grid-row: 1 / -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    z-index: 2 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: 100% !important;
    gap: 0.18rem !important;
    overflow: visible !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0.08rem !important;
    border-radius: 0 !important;
    background: rgba(18, 11, 31, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(1) { grid-column: 5; grid-row: 1; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(2) { grid-column: 5; grid-row: 2; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(3) { grid-column: 5; grid-row: 3; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(4) { grid-column: 5; grid-row: 4; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(5) { grid-column: 1; grid-row: 5; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(6) { grid-column: 2; grid-row: 5; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(7) { grid-column: 3; grid-row: 5; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(8) { grid-column: 4; grid-row: 5; }
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-card:nth-child(9) { grid-column: 5; grid-row: 5; }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-number {
    font-size: 0.5rem !important;
    line-height: 1 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-media,
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-seat-media.is-empty {
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
    font-size: 0.56rem !important;
    padding: 0.15rem !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"][data-mobile-seat-layout="host-guest-mobile"] .live-room-right-rail {
    flex: 1 1 auto !important;
    height: calc(100dvh - var(--mobile-seat-stage-height, 43dvh)) !important;
    min-height: calc(var(--mobile-chat-panel-height, 31dvh) + 20px) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-stage-panel {
    padding-bottom: 0.18rem !important;
    max-height: var(--mobile-seat-stage-height, 58dvh) !important;
    min-height: var(--mobile-seat-stage-height, 58dvh) !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid {
    grid-auto-flow: row !important;
    grid-template-columns: repeat(var(--mobile-seat-columns, 2), minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    grid-auto-columns: unset !important;
    justify-content: stretch !important;
    align-content: stretch !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
    gap: var(--mobile-seat-gap, 0.12rem) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    justify-content: start !important;
    justify-items: stretch !important;
    align-content: start !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(4) { grid-column: 4; grid-row: 1; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(5) { grid-column: 1; grid-row: 2; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(6) { grid-column: 2; grid-row: 2; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(7) { grid-column: 3; grid-row: 2; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(8) { grid-column: 4; grid-row: 2; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(9) { grid-column: 5; grid-row: 1; }
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-grid[data-seat-count="10"] .live-room-seat-card:nth-child(10) { grid-column: 5; grid-row: 2; }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-card {
    min-height: 0 !important;
    height: auto !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: var(--mobile-seat-padding, 0.05rem) !important;
    gap: 0.02rem !important;
    border-radius: 7px !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-media,
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-video {
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 7px !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-avatar {
    width: 16px !important;
    height: 16px !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-number {
    font-size: var(--mobile-seat-font-size, 0.46rem) !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-occupant span,
  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-media.is-empty {
    font-size: 0.54rem !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat .live-room-seat-occupant {
    display: none !important;
  }
}

@media (min-width: 761px) {
  .live-room-view-page .live-room-page-shell,
  .live-room-view-page #liveRoomPageRoot.live-room-page-shell,
  .live-room-view-page #liveRoomPageRoot.shell.page.live-page.live-room-page-shell {
    height: auto !important;
    min-height: 0 !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-stage-host {
    align-content: start !important;
    align-items: start !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-stage-panel {
    flex: 0 0 calc(100% - 340px) !important;
    height: calc(100% - 340px) !important;
    min-height: calc(100% - 340px) !important;
    max-height: calc(100% - 340px) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-host-media,
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-host-video.live-room-modal-video {
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    height: calc(100% - 27.5px) !important;
    min-height: 0 !important;
    max-width: calc(100% - 32px) !important;
    max-height: calc(100% - 27.5px) !important;
    align-self: start !important;
    justify-self: start !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-host-media {
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-seat-card:nth-child(2) {
    transform: translateY(10px) !important;
  }

  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-seat-card:nth-child(3),
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-seat-card:nth-child(4),
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-seat-card:nth-child(5),
  .live-room-view-page #liveHomeModal.is-multi-seat[data-room-mode="multi_seat_single"] .live-room-seat-card:nth-child(6) {
    transform: translateY(4px) !important;
  }

  .live-room-view-page #liveHomeModal.live-room-modal:not(.is-multi-seat),
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-card {
    height: fit-content !important;
    min-height: fit-content !important;
    max-height: none !important;
    overflow: visible !important;
    display: inline-grid !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-extra.live-room-modal-extra-stage,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-chat-panel,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-right-rail {
    height: fit-content !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: start !important;
  }
}

@media (max-width: 760px) {
  html,
  body:not(.live-room-view-page) {
    min-height: 100dvh;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html,
  body.live-room-view-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .live-room-view-page .live-room-page-shell,
  .live-room-view-page #liveRoomPageRoot.live-room-page-shell,
  .live-room-view-page #liveRoomPageRoot.shell.page.live-page.live-room-page-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .live-room-view-page #liveHomeModal.live-room-modal,
  .live-room-view-page #liveHomeModal {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: 0 !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-card {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    background: #09060f !important;
    overflow: hidden !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-modal-extra.live-room-modal-extra-stage {
    width: 100% !important;
    min-height: 100dvh !important;
    gap: 0 !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-panel {
    width: 100% !important;
    min-height: 54dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-viewport,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-stage-host,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-media,
  .live-room-view-page #liveHomeModal:not(.is-multi-seat) .live-room-host-video.live-room-modal-video {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Great Wall 2026 refresh */
.great-wall-page {
  width: min(1040px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.great-wall-head {
  width: 100%;
  padding: 1.1rem 1.1rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 1rem 1.2rem;
  align-items: start;
  text-align: left;
  background:
    radial-gradient(circle at top left, rgba(38, 194, 255, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 79, 145, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(8, 17, 36, 0.96), rgba(18, 25, 48, 0.94));
  border: 1px solid rgba(108, 180, 255, 0.24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.great-wall-hero-copy {
  display: grid;
  gap: 0.45rem;
}

.great-wall-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.great-wall-head-actions {
  display: flex;
  justify-content: flex-end;
  align-items: start;
}

.great-wall-head-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.great-wall-stat-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 24, 0.52);
}

.great-wall-stat-value {
  font: 800 clamp(1.35rem, 2vw, 2rem)/1 "Sora", sans-serif;
  color: #f6fbff;
}

.great-wall-stat-label {
  color: rgba(232, 239, 255, 0.72);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.great-wall-main {
  display: grid;
  gap: 1rem;
}

.great-wall-viewer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(121, 201, 255, 0.32);
}

.great-wall-composer-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 158, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(62, 203, 255, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(13, 20, 39, 0.98), rgba(9, 11, 27, 0.97));
  border: 1px solid rgba(118, 197, 255, 0.18);
}

.great-wall-composer-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.great-wall-composer-head h2 {
  margin: 0.16rem 0 0;
}

.great-wall-composer-profile {
  display: inline-grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.great-wall-composer-form {
  display: grid;
  gap: 0.95rem;
}

.great-wall-target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 0.8rem;
}

.great-wall-field {
  display: grid;
  gap: 0.42rem;
}

.great-wall-field > span {
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(221, 232, 255, 0.82);
}

.great-wall-field input,
.great-wall-field textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(124, 184, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f9ff;
  padding: 0.88rem 0.95rem;
  font: inherit;
}

.great-wall-field textarea {
  resize: vertical;
  min-height: 126px;
}

.great-wall-field input:focus,
.great-wall-field textarea:focus {
  outline: none;
  border-color: rgba(124, 214, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(80, 179, 255, 0.14);
}

.great-wall-target-preview {
  display: grid;
  gap: 0.22rem;
  align-content: center;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 24, 0.72);
}

.great-wall-target-kicker {
  font-size: 0.76rem;
  color: rgba(185, 204, 236, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.great-wall-composer-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.great-wall-upload-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px dashed rgba(120, 194, 255, 0.36);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.great-wall-upload-pill input[type="file"] {
  display: none;
}

.great-wall-image-preview {
  display: inline-grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: min(100%, 260px);
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.great-wall-image-preview.hidden {
  display: none;
}

.great-wall-image-preview img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.great-wall-feed {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.great-wall-post {
  display: grid;
  gap: 0.85rem;
  justify-items: stretch;
  padding: 1rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 19, 37, 0.98), rgba(8, 10, 24, 0.98));
  border: 1px solid rgba(114, 183, 255, 0.14);
}

.great-wall-post-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  text-align: left;
}

.great-wall-post-author {
  display: inline-grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}

.great-wall-post-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(113, 199, 255, 0.3);
  object-fit: cover;
}

.great-wall-post-meta-wrap {
  min-width: 0;
}

.great-wall-post-meta,
.great-wall-post-time {
  margin: 0;
  text-align: left;
}

.great-wall-post-time,
.great-wall-comment-time {
  color: rgba(196, 209, 232, 0.72);
  font-size: 0.78rem;
}

.great-wall-post-message {
  margin: 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.62;
  color: #f4f7ff;
}

.great-wall-post-image {
  width: 100%;
  max-width: none;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  max-height: 580px;
  object-fit: cover;
}

.great-wall-reactions-block {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.great-wall-reaction-buttons,
.great-wall-reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.great-wall-react-btn {
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.56rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 31, 0.9);
  color: #edf3ff;
}

.great-wall-react-btn:hover,
.great-wall-react-btn.active {
  border-color: rgba(112, 212, 255, 0.5);
  background: rgba(40, 95, 148, 0.28);
}

.great-wall-emoji {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.great-wall-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.great-wall-comments-inline {
  display: grid;
  gap: 0.75rem;
}

.great-wall-comments-preview {
  display: grid;
  gap: 0.55rem;
}

.great-wall-comment-preview,
.great-wall-comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.great-wall-comment-preview p,
.great-wall-comment-message {
  margin: 0;
  line-height: 1.5;
}

.great-wall-comment-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.great-wall-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.great-wall-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
}

.great-wall-comments-open {
  justify-self: start;
}

.great-wall-comments-list {
  display: grid;
  gap: 0.9rem;
}

.great-wall-comment-item {
  grid-template-columns: 1fr;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.great-wall-comment-actions {
  display: flex;
  justify-content: flex-end;
}

.great-wall-comment-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.great-wall-comment-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(123, 184, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #f6f8ff;
  padding: 0.85rem 0.95rem;
}

.great-wall-comment-input:focus {
  outline: none;
  border-color: rgba(126, 204, 255, 0.48);
}

.great-wall-comment-submit-row {
  display: flex;
  justify-content: flex-end;
}

.great-wall-inline-emoji {
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
}

.great-wall-modal-card {
  width: min(860px, calc(100vw - 1.25rem));
  background:
    linear-gradient(180deg, rgba(14, 19, 37, 0.98), rgba(8, 10, 24, 0.98));
  border: 1px solid rgba(108, 183, 255, 0.16);
}

@media (max-width: 1080px) {
  .great-wall-target-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .great-wall-page {
    width: min(100%, calc(100% - 0.8rem));
    gap: 0.75rem;
  }

  .great-wall-head {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.9rem 0.85rem;
    gap: 0.75rem;
  }

  .great-wall-head-actions {
    justify-content: stretch;
  }

  .great-wall-head-actions .btn {
    width: 100%;
  }

  .great-wall-head-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .great-wall-stat-card {
    padding: 0.75rem;
    border-radius: 16px;
  }

  .great-wall-main {
    gap: 0.75rem;
  }

  .great-wall-composer-panel,
  .great-wall-post {
    padding: 0.85rem;
    border-radius: 22px;
  }

  .great-wall-composer-head {
    display: grid;
    justify-content: stretch;
  }

  .great-wall-composer-profile {
    width: 100%;
  }

  .great-wall-composer-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .great-wall-upload-pill,
  .great-wall-image-preview,
  .great-wall-composer-actions .btn {
    width: 100%;
  }

  .great-wall-post-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .great-wall-post-meta-wrap {
    display: grid;
    gap: 0.12rem;
  }

  .great-wall-post .great-wall-post-delete {
    justify-self: start;
  }

  .great-wall-react-btn {
    min-width: 0;
    flex: 1 1 calc(25% - 0.55rem);
  }

  .great-wall-comments-open {
    width: 100%;
    justify-self: stretch;
  }

  .great-wall-modal-card {
    width: min(100vw - 0.65rem, 100%);
  }
}

/* Great Wall polish v2 */
.great-wall-page {
  width: min(1100px, calc(100% - 1.25rem));
  gap: 1.1rem;
}

.great-wall-main {
  gap: 1.1rem;
}

.great-wall-composer-panel {
  padding: 1rem;
  border-radius: 24px;
  gap: 0.85rem;
  background: linear-gradient(180deg, rgba(14, 20, 39, 0.98), rgba(8, 12, 25, 0.98));
  border-color: rgba(122, 186, 255, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.great-wall-composer-form {
  gap: 0.8rem;
}

.great-wall-field input,
.great-wall-field textarea {
  border-radius: 20px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.045);
}

.great-wall-field textarea {
  min-height: 120px;
}

.great-wall-field > span {
  display: none;
}

.great-wall-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.great-wall-toolbar h1 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.great-wall-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(119, 208, 156, 0.28);
  background: rgba(53, 165, 110, 0.12);
  color: #b8f3d3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.great-wall-live-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #59d889;
  box-shadow: 0 0 12px rgba(89, 216, 137, 0.8);
}

.great-wall-toolbar .btn,
.great-wall-live-pill {
  flex: 0 0 auto;
}

.great-wall-composer-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  color: rgba(198, 212, 238, 0.74);
  font-size: 0.8rem;
}

.great-wall-composer-count {
  font-weight: 800;
  color: rgba(228, 237, 255, 0.82);
}

.great-wall-composer-count.is-near-limit {
  color: #ffb7cb;
}

.great-wall-composer-actions {
  justify-content: flex-start;
  align-items: stretch;
}

.great-wall-upload-pill {
  min-height: 48px;
  font-weight: 800;
  padding-inline: 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.great-wall-image-preview {
  flex: 1 1 250px;
}

.great-wall-composer-actions .btn {
  min-height: 48px;
  min-width: 110px;
}

.great-wall-feed-shell {
  display: grid;
  gap: 0.65rem;
}

.great-wall-feed-head {
  padding: 0;
}

.great-wall-feed-head h2 {
  font-size: 1.1rem;
}

.great-wall-feed {
  gap: 1rem;
}

.great-wall-post {
  padding: 1.05rem;
  border-radius: 26px;
  gap: 0.9rem;
  background:
    linear-gradient(180deg, rgba(14, 20, 36, 0.99), rgba(9, 12, 24, 0.99));
  border-color: rgba(121, 184, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.great-wall-post-head {
  gap: 0.8rem;
  padding-bottom: 0.05rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  justify-items: stretch;
  text-align: left;
}

.great-wall-post-author {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

.great-wall-post-author-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.great-wall-post-author-copy strong {
  font-size: 0.95rem;
  line-height: 1.15;
}

.great-wall-post-author-copy small {
  color: rgba(188, 203, 229, 0.72);
  font-size: 0.76rem;
  line-height: 1;
}

.great-wall-post-meta {
  font-size: 0.82rem;
  color: rgba(212, 225, 247, 0.86);
}

.great-wall-post-meta-wrap {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  align-items: start;
  justify-self: end;
  text-align: right;
}

.great-wall-post-time {
  font-size: 0.76rem;
  text-align: right;
  white-space: nowrap;
}

.great-wall-post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.great-wall-post-stats span {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(209, 223, 246, 0.76);
  font-size: 0.76rem;
  font-weight: 700;
}

.great-wall-post-message {
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.great-wall-post-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.great-wall-post-image {
  display: block;
  border-radius: 24px;
}

.great-wall-reactions-block {
  padding: 0.95rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}

.great-wall-react-btn {
  min-width: 78px;
  min-height: 42px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.great-wall-react-btn span {
  font-size: 0.82rem;
}

.great-wall-react-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.great-wall-comments-preview {
  padding: 0.2rem 0;
}

.great-wall-comment-preview {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.great-wall-comment-preview:last-child {
  border-bottom: 0;
}

.great-wall-comments-open {
  min-height: 44px;
  width: fit-content;
}

.great-wall-modal-card {
  border-radius: 26px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .great-wall-page {
    width: min(100%, calc(100% - 0.85rem));
    gap: 0.8rem;
  }

  .great-wall-composer-panel {
    padding: 0.85rem;
    border-radius: 20px;
  }

  .great-wall-composer-meta {
    display: grid;
    gap: 0.3rem;
  }

  .great-wall-toolbar {
    display: grid;
    align-items: stretch;
  }

  .great-wall-live-pill {
    justify-content: center;
  }

  .great-wall-post {
    padding: 0.9rem;
    border-radius: 22px;
  }

  .great-wall-post-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .great-wall-post-meta-wrap {
    gap: 0.3rem 0.55rem;
  }

  .great-wall-post-stats {
    gap: 0.42rem;
  }

  .great-wall-post-stats span {
    font-size: 0.72rem;
  }

  .great-wall-react-btn {
    flex: 1 1 calc(50% - 0.55rem);
  }

  .great-wall-comments-open {
    width: 100%;
  }
}

/* Great Wall compact thread refresh */
.great-wall-page.shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

.great-wall-toolbar {
  justify-content: flex-start;
}

.great-wall-field textarea {
  min-height: 92px;
  border-radius: 18px;
}

.great-wall-post-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
}

.great-wall-post-head-main {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.great-wall-post-meta-wrap {
  margin-left: 0;
}

.great-wall-post-message {
  font-size: 0.98rem;
  line-height: 1.65;
}

.great-wall-thread-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.great-wall-thread-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(209, 223, 246, 0.8);
  font-size: 0.76rem;
  font-weight: 800;
}

.great-wall-reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.great-wall-reaction-chip {
  min-height: 2rem;
  padding: 0.34rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
}

.great-wall-reactions-empty {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: rgba(196, 209, 232, 0.68);
  font-size: 0.76rem;
}

.great-wall-post-actions,
.great-wall-comment-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.great-wall-comment-input:focus {
  outline: none;
  border-color: rgba(126, 204, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(80, 179, 255, 0.14);
}

.great-wall-react-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.great-wall-comments-open,
.great-wall-comment-reply,
.great-wall-reply-cancel {
  min-height: 44px;
}

.great-wall-comments-preview {
  padding-top: 0;
}

.great-wall-comment-preview {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
}

.great-wall-comment-preview-body {
  display: grid;
  gap: 0.28rem;
}

.great-wall-comment-item {
  gap: 0.7rem;
}

.great-wall-comment-item.is-reply {
  margin-left: 2rem;
  border: 1px solid rgba(117, 187, 255, 0.1);
}

.great-wall-comment-replying {
  color: rgba(126, 204, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
}

.great-wall-comment-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.great-wall-comment-toolbar {
  justify-content: flex-start;
}

.great-wall-reply-banner {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: rgba(79, 149, 255, 0.12);
  border: 1px solid rgba(112, 184, 255, 0.18);
  color: #dceeff;
  font-size: 0.82rem;
  font-weight: 700;
}

.great-wall-comment-form {
  margin-top: 1rem;
}

.great-wall-modal-post {
  gap: 0.8rem;
}

.great-wall-post,
.great-wall-modal-post {
  justify-items: stretch;
  text-align: left;
  width: 100%;
}

.great-wall-post > *,
.great-wall-modal-post > *,
.great-wall-comments-inline,
.great-wall-comments-preview,
.great-wall-post-actions {
  width: 100%;
}

.great-wall-post-head {
  justify-items: stretch;
  text-align: left;
}

.great-wall-post-message,
.great-wall-modal-post-message {
  max-width: none;
  width: 100%;
  text-align: left;
}

.great-wall-thread-stats,
.great-wall-reaction-summary,
.great-wall-comments-inline {
  justify-content: flex-start;
}

.great-wall-comments-inline {
  justify-items: stretch;
}

.great-wall-comments-preview {
  text-align: left;
}

@media (max-width: 760px) {
  .employment-head,
  .employment-public-hero {
    display: grid;
  }

  .employment-sender-pill {
    width: fit-content;
    white-space: normal;
  }

  .employment-kpis,
  .employment-identity-grid,
  .employment-documents,
  .employment-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .agency-hero,
  .agency-controls-hero {
    display: grid;
  }

  .agency-card-grid,
  .agency-form-grid,
  .agency-upload-grid,
  .agency-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .employment-identity-grid .span-identity {
    grid-column: auto;
  }

  .employment-public-hero img {
    justify-self: start;
    width: 128px;
  }

  .employment-doc-reader {
    min-height: 240px;
  }

  .great-wall-page.shell {
    width: 100%;
    padding-inline: 0;
  }

  .great-wall-post-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
    justify-items: stretch;
    width: 100%;
    text-align: left;
  }

  .great-wall-post-author {
    justify-self: start;
    width: auto;
    max-width: 100%;
    text-align: left;
  }

  .great-wall-post-author-copy {
    text-align: left;
  }

  .great-wall-post-meta-wrap {
    margin-left: 0;
    justify-self: end;
    justify-items: end;
    text-align: right;
  }

  .great-wall-post-time {
    text-align: right;
    white-space: nowrap;
  }

  .great-wall-post,
  .great-wall-modal-post,
  .great-wall-post-message,
  .great-wall-modal-post-message,
  .great-wall-comments-preview,
  .great-wall-comment-preview,
  .great-wall-comment-preview-body {
    text-align: left;
  }

  .great-wall-post,
  .great-wall-modal-post,
  .great-wall-post > *,
  .great-wall-modal-post > *,
  .great-wall-comments-inline,
  .great-wall-comments-preview,
  .great-wall-post-actions,
  .great-wall-thread-stats {
    width: 100%;
    justify-items: stretch;
  }

  .great-wall-thread-stats,
  .great-wall-reaction-summary,
  .great-wall-comments-inline {
    justify-content: flex-start;
  }

  .great-wall-post-actions,
  .great-wall-comment-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .great-wall-react-row {
    width: 100%;
    gap: 0.42rem;
  }

  .great-wall-react-row .great-wall-react-btn {
    flex: 1 1 calc(25% - 0.42rem);
    min-width: 0;
  }

  .great-wall-comments-open,
  .great-wall-comment-reply,
  .great-wall-reply-cancel {
    width: 100%;
  }

  .great-wall-comment-item.is-reply {
    margin-left: 0.8rem;
  }

  .great-wall-reply-banner {
    display: grid;
  }
}

@media (max-width: 1080px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-support-panel .staff-tool-grid,
  .staff-tool-grid,
  .staff-training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-detail-grid,
  .staff-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-chat-panel {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .staff-page {
    gap: 0.7rem;
  }

  .staff-topbar,
  .staff-panel {
    border-radius: 14px;
    padding: 0.75rem;
  }

  .staff-topbar {
    display: grid;
  }

  .staff-topbar-actions,
  .staff-chat-actions {
    align-items: stretch;
  }

  .staff-topbar-actions .btn,
  .staff-chat-actions .btn {
    width: 100%;
  }

  .staff-chat-panel {
    min-height: calc(100vh - 220px);
  }

  .staff-chat-log {
    min-height: 310px;
    max-height: 54vh;
    padding: 0.6rem;
  }

  .staff-chat-message {
    max-width: 100%;
  }

  .staff-chat-message.mine {
    margin-left: 0;
  }

  .staff-person {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .staff-avatar {
    width: 38px;
    height: 38px;
  }

  .staff-role-pill {
    grid-column: 2;
    justify-self: start;
  }

  .staff-tool-grid,
  .staff-training-grid {
    grid-template-columns: 1fr;
  }

  .staff-tool-modal {
    padding: 0.55rem;
  }

  .staff-tool-modal-card {
    width: calc(100vw - 0.7rem);
    height: calc(100dvh - 0.7rem);
    max-height: calc(100dvh - 0.7rem);
    min-height: 0;
    border-radius: 14px;
  }

  .staff-tool-modal-head {
    display: grid;
    padding: 0.75rem;
  }

  .staff-tool-modal-head .btn {
    width: 100%;
  }

  .staff-tool-modal-body {
    padding: 0.75rem;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .staff-toolbar,
  .staff-tool-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .staff-toolbar .btn,
  .staff-tool-actions .btn,
  .staff-toolbar .admin-search-input,
  .staff-tool-actions .admin-search-input {
    width: 100%;
  }

  .staff-detail-grid,
  .staff-rule-grid {
    grid-template-columns: 1fr;
  }
}

/* Staff Hub refresh */
.staff-page {
  gap: 1rem;
  --staff-surface: linear-gradient(180deg, rgba(28, 12, 44, 0.94), rgba(11, 5, 22, 0.96));
  --staff-surface-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  --staff-outline: rgba(210, 94, 255, 0.28);
  --staff-outline-strong: rgba(236, 156, 255, 0.54);
  --staff-chip-bg: rgba(8, 2, 14, 0.78);
  --staff-chip-border: rgba(210, 94, 255, 0.28);
  --staff-elevated-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.staff-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.26fr) minmax(340px, 0.74fr);
}

.staff-stack {
  display: grid;
  gap: 0.9rem;
  align-self: start;
}

.staff-panel,
.staff-topbar {
  overflow: hidden;
  border-radius: 22px;
  background: var(--staff-surface);
}

.staff-topbar {
  align-items: center;
  padding: 1.1rem 1.15rem;
}

.staff-topbar-actions {
  justify-content: flex-end;
}

.staff-topbar-support-btn {
  gap: 0.42rem;
}

.staff-topbar-support-badge {
  flex: 0 0 auto;
}

.staff-chat-panel {
  align-self: start;
  min-height: 640px;
  padding: 1rem;
  gap: 0.85rem;
}

.staff-chat-panel .staff-panel-body {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.85rem;
}

.staff-side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 640px;
}

.staff-side-panel .staff-panel-body {
  min-height: 0;
  overflow-y: auto;
}

.staff-panel-body {
  display: grid;
  min-height: 0;
}

.staff-panel.is-collapsed {
  min-height: auto;
}

.staff-panel.is-collapsed .staff-panel-body {
  display: none;
}

.staff-chat-log {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-height: 430px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--staff-outline);
  background: var(--staff-surface-soft);
}

.staff-chat-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: end;
  gap: 0.58rem;
}

.staff-chat-row.mine {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.staff-chat-row.mine .staff-chat-avatar {
  order: 2;
}

.staff-chat-row.mine .staff-chat-message {
  order: 1;
}

.staff-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(88, 215, 255, 0.28);
  background: linear-gradient(180deg, rgba(15, 29, 48, 0.96), rgba(6, 14, 25, 0.98));
  color: #d2f7ff;
  font-size: 0.9rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.staff-chat-message {
  display: grid;
  gap: 0.48rem;
  min-height: 4.6rem;
  max-width: min(780px, 96%);
  border: 1px solid var(--staff-outline);
  border-radius: 16px;
  padding: 0.78rem 0.86rem;
  background: var(--staff-surface);
  box-shadow: var(--staff-elevated-shadow);
}

.staff-chat-message.mine {
  border-color: rgba(88, 215, 255, 0.36);
  background: linear-gradient(180deg, rgba(8, 24, 38, 0.96), rgba(4, 13, 22, 0.94));
}

.staff-chat-message.from-discord {
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.12);
}

.staff-mention {
  color: #ffd86f;
  font-weight: 800;
}

.staff-chat-meta {
  display: grid;
  gap: 0.34rem;
}

.staff-chat-meta strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.staff-chat-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.staff-chat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.58rem;
  padding: 0.16rem 0.52rem;
  border: 1px solid var(--staff-chip-border);
  border-radius: 999px;
  background: var(--staff-chip-bg);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.staff-chat-pill-role {
  color: #f3d0ff;
}

.staff-chat-pill-handle {
  color: #b9f5ff;
  border-color: rgba(88, 215, 255, 0.3);
}

.staff-chat-pill-time {
  color: #dec3f4;
}

.staff-chat-copy {
  margin: 0;
  color: var(--text);
  line-height: 1.52;
  white-space: normal;
  overflow-wrap: anywhere;
}

.staff-chat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.staff-chat-tools select {
  min-height: 2.45rem;
  padding: 0.45rem 0.76rem;
  border: 1px solid var(--staff-outline-strong);
  border-radius: 999px;
  background: rgba(8, 2, 14, 0.9);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staff-chat-form {
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--staff-outline);
  border-radius: 18px;
  background: var(--staff-surface-soft);
}

.staff-chat-form textarea {
  min-height: 98px;
  border-radius: 16px;
  background: rgba(6, 2, 12, 0.86);
}

.staff-chat-actions {
  align-items: center;
  gap: 0.65rem;
}

.staff-emoji-btn {
  min-width: 2.45rem;
  padding-inline: 0.58rem;
}

.staff-alert-btn {
  position: relative;
}

.staff-alert-badge {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 1.3rem;
  margin-left: 0.42rem;
  padding: 0.22rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: #ff3b5f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.staff-alert-badge.hidden {
  display: none;
}

.staff-directory-grid,
.staff-bot-grid,
.staff-quick-grid {
  margin-top: 0.8rem;
}

.staff-directory-grid,
.staff-bot-grid {
  gap: 0.55rem;
}

.staff-directory-grid {
  min-height: 0;
  overflow: auto;
  padding-right: 0.12rem;
  align-content: start;
}

.staff-team-card,
.staff-bot-card {
  border: 1px solid var(--staff-outline);
  border-radius: 16px;
  background: var(--staff-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--staff-elevated-shadow);
}

.staff-team-card {
  display: grid;
  gap: 0.48rem;
  padding: 0.58rem;
}

.staff-team-top,
.staff-bot-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.staff-team-copy,
.staff-bot-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.staff-team-copy strong,
.staff-bot-copy strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.staff-team-copy span,
.staff-bot-copy span {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-avatar-large {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1rem;
}

.staff-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.staff-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.staff-info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.72rem;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--staff-chip-border);
  background: var(--staff-chip-bg);
  color: #efd6ff;
  font-size: 0.68rem;
  font-weight: 800;
}

.staff-info-pill.is-linked {
  border-color: rgba(88, 215, 255, 0.34);
  color: #c8f5ff;
}

.staff-info-pill-link-discord {
  cursor: pointer;
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.12);
  color: #b8bcff;
}

.staff-info-pill-link-discord:hover,
.staff-info-pill-link-discord:focus {
  border-color: rgba(88, 101, 242, 0.9);
  background: rgba(88, 101, 242, 0.25);
  color: #dfe0ff;
  outline: none;
}

.staff-team-foot {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.staff-bot-grid {
  grid-template-columns: 1fr;
}

.staff-bot-card {
  overflow: hidden;
  display: grid;
}

.staff-bot-cover {
  height: 72px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(59, 130, 246, 0.18));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(210, 94, 255, 0.22);
}

.staff-bot-cover-empty {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-bot-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.72rem;
}

.staff-bot-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.staff-bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.staff-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.staff-tool,
.staff-training-item {
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--staff-outline);
  border-radius: 18px;
  padding: 0.82rem;
  background: var(--staff-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--staff-elevated-shadow);
}

.staff-tool-section {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.staff-tool-section:first-child {
  margin-top: 0;
}

.staff-tool-section h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.staff-tool-list {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.staff-tool-pill {
  min-width: 0;
  min-height: 0;
  padding: 0.52rem 0.62rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.48rem;
}

.staff-tool-pill-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.staff-tool-pill-copy strong {
  line-height: 1.1;
  font-size: 0.86rem;
}

.staff-tool-pill-copy span {
  max-width: 100%;
  white-space: normal;
  font-size: 0.7rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.staff-tool-pill-arrow {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(223, 140, 255, 0.12);
  color: #ffd7ff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.staff-tool:hover,
.staff-training-item:hover,
.staff-training-item:focus-visible {
  transform: translateY(-2px);
}

.staff-tutorial-guide {
  display: grid;
  gap: 0.8rem;
}

.staff-tutorial-section {
  padding: 0.82rem;
  border: 1px solid var(--staff-outline);
  border-radius: 16px;
  background: var(--staff-surface-soft);
}

.staff-tutorial-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}

.staff-tutorial-section ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
  line-height: 1.45;
}

.staff-alert-list {
  display: grid;
  gap: 0.65rem;
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.staff-alert-item {
  display: grid;
  gap: 0.32rem;
  padding: 0.8rem;
  border: 1px solid var(--staff-outline);
  border-radius: 16px;
  background: var(--staff-surface-soft);
  color: var(--text);
}

.staff-toolbar,
.staff-tool-actions,
.staff-tool-detail {
  padding: 0.82rem;
  border: 1px solid var(--staff-outline);
  border-radius: 16px;
  background: var(--staff-surface-soft);
}

.staff-toolbar .admin-search-input,
.staff-tool-actions .admin-search-input,
.staff-tool-actions select.admin-search-input,
.staff-toolbar select.admin-search-input {
  min-height: 2.7rem;
  border-radius: 14px;
  border-color: var(--staff-outline-strong);
  background: rgba(6, 2, 12, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staff-tool-table-wrap {
  border: 1px solid var(--staff-outline);
  border-radius: 16px;
  background: rgba(6, 2, 12, 0.62);
}

.admin-search-input[readonly] {
  opacity: 0.92;
  cursor: not-allowed;
  background: rgba(10, 6, 18, 0.88);
  border-style: dashed;
}

.staff-alert-item.is-new {
  border-color: rgba(255, 59, 95, 0.68);
  box-shadow: 0 0 0 1px rgba(255, 59, 95, 0.18);
}

.staff-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.owner-check-row,
.employment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--text);
}

.owner-check-row {
  justify-content: flex-start;
  padding: 0.24rem 0;
}

.employment-sender-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.42rem 0.7rem;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-quick-grid,
  .staff-tool-grid,
  .staff-training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .staff-page {
    gap: 0.85rem;
  }

  .staff-topbar {
    display: grid;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1rem;
  }

  .staff-topbar-actions,
  .staff-chat-actions {
    display: grid;
    align-items: stretch;
    gap: 0.55rem;
  }

  .staff-topbar-actions .btn,
  .staff-chat-actions .btn {
    width: 100%;
  }

  /* Mobile uses the full-screen overlay; keep inline panel desktop-only */
  .staff-chat-panel {
    display: none !important;
  }

  .staff-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .staff-panel-toggle[aria-expanded="true"] .staff-panel-toggle-arrow {
    transform: rotate(180deg);
  }

  .staff-chat-panel.is-collapsed,
  .staff-side-panel.is-collapsed {
    min-height: auto;
    height: auto;
    align-self: start;
  }

  .staff-chat-panel.is-collapsed {
    padding-bottom: 0.75rem;
  }

  .staff-chat-log {
    min-height: 0;
    max-height: 360px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.82rem 0.7rem;
    gap: 0.72rem;
    border-radius: 20px;
  }

  .staff-chat-form {
    padding: 0.72rem;
    gap: 0.62rem;
    border-radius: 20px;
  }

  .staff-chat-form textarea {
    min-height: 112px;
    padding: 0.78rem;
  }

  .staff-chat-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.46rem;
    align-items: end;
  }

  .staff-chat-row.mine {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .staff-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .staff-chat-message {
    max-width: 100%;
    min-height: 0;
    padding: 0.74rem 0.76rem 0.82rem;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  }

  .staff-chat-meta-pills {
    gap: 0.12rem;
  }

  .staff-chat-pill {
    min-height: 1.5rem;
    font-size: 0.64rem;
  }

  .staff-chat-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .staff-chat-tools select,
  .staff-chat-tools .btn {
    width: 100%;
  }

  .staff-chat-tools select {
    grid-column: 1 / -1;
    border-radius: 12px;
  }

  .staff-support-panel .staff-tool-grid,
  .staff-tool-grid,
  .staff-training-grid {
    grid-template-columns: 1fr;
  }

  .sc-grid {
    grid-template-columns: 1fr;
  }

  .staff-team-top,
  .staff-bot-top {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .staff-team-top .staff-role-pill,
  .staff-bot-top .staff-role-pill {
    grid-column: 2;
    justify-self: start;
  }

  .staff-profile-grid {
    grid-template-columns: 1fr;
  }

  .staff-profile-card-top {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .staff-profile-card-top .staff-role-pill {
    grid-column: 2;
    justify-self: start;
  }

  .staff-tool,
  .staff-training-item,
  .staff-team-card,
  .staff-bot-card,
  .staff-toolbar,
  .staff-tool-actions,
  .staff-tool-detail {
    border-radius: 15px;
  }

  .employment-head {
    align-items: flex-start;
    display: grid;
  }

  .employment-sender-pill {
    white-space: normal;
  }

  html {
    font-size: 112%;
  }

  body {
    -webkit-text-size-adjust: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  p,
  li,
  span,
  small,
  label,
  .muted,
  .notice,
  .eyebrow,
  .staff-team-foot,
  .staff-person-copy span,
  .staff-team-copy span,
  .staff-bot-copy span {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .site-header .header-nav-mobile-icon,
  .site-header .header-nav-gear-icon {
    width: 50px;
    height: 50px;
  }

  .site-header .header-nav-link-with-icon {
    padding: 2px 1px 3px;
  }

  .site-header .header-nav-mobile-label,
  .site-header .header-nav-corner-label {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
  }

  .btn,
  .tab-btn,
  .theme-btn {
    font-size: 0.92rem;
    padding: 0.68rem 0.92rem;
    min-height: 2.6rem;
  }

  img,
  .staff-avatar,
  .staff-avatar-large,
  .profile-avatar,
  .profile-cover-image,
  .user-card-avatar,
  .avatar,
  .brand-icon {
    max-width: 100%;
    height: auto;
  }

  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .shell.staff-page,
  .staff-page {
    width: 100%;
    min-width: 0;
  }

  .staff-page {
    padding-inline: 0.55rem;
    gap: 0.65rem;
  }

  .staff-grid,
  .staff-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    min-width: 0;
  }

  .staff-topbar {
    padding: 0.85rem 0.8rem;
  }

  .staff-topbar h1 {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.04;
  }

  .staff-topbar-actions {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-topbar-actions .btn {
    min-width: 0;
  }

  .staff-panel {
    min-width: 0;
  }

  .staff-panel-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: start;
  }

  .staff-panel-head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .staff-panel-head-actions .btn,
  .staff-panel-toggle {
    width: 100%;
    min-width: 0;
  }

  .staff-panel-body {
    min-width: 0;
  }

  .staff-directory-grid,
  .staff-tool-grid,
  .staff-tool-list,
  .staff-training-grid,
  .staff-bot-grid,
  .staff-quick-grid {
    grid-template-columns: 1fr;
  }

  .staff-directory-grid {
    overflow: visible;
    padding-right: 0;
  }

  .staff-tool,
  .staff-training-item,
  .staff-team-card,
  .staff-bot-card,
  .staff-toolbar,
  .staff-tool-actions,
  .staff-tool-detail {
    border-radius: 16px;
    min-width: 0;
  }

  .staff-tool-grid {
    gap: 0.55rem;
  }

  .staff-tool-featured {
    min-height: 0;
  }

  .staff-team-top,
  .staff-bot-top,
  .staff-profile-card-top {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.5rem;
  }

  .staff-team-top .staff-role-pill,
  .staff-bot-top .staff-role-pill,
  .staff-profile-card-top .staff-role-pill {
    grid-column: 2;
    justify-self: start;
  }

  .staff-avatar-large {
    width: 42px;
    height: 42px;
  }

  .staff-card-pills {
    gap: 0.3rem;
  }

  .staff-info-pill,
  .staff-chat-pill {
    font-size: 0.66rem;
  }

  .staff-detail-grid,
  .staff-rule-grid {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .staff-detail-grid div,
  .staff-rule-grid label {
    padding: 0.6rem;
  }

  .staff-toolbar,
  .staff-tool-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .staff-toolbar .admin-search-input,
  .staff-tool-actions .admin-search-input,
  .staff-toolbar select.admin-search-input,
  .staff-tool-actions select.admin-search-input,
  .admin-search-input {
    min-width: 0;
    width: 100%;
  }

  .staff-tool-pill-row,
  .staff-tool-pill-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: flex-start;
  }

  .staff-tool-pill-group {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0 !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.35rem;
  }

  .staff-tool-pill-group .staff-tool-pill,
  .staff-tool-pill-group .btn.secondary {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
  }

  .staff-tool-pill-group .staff-tool-pill-remove {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .staff-tool-table-wrap {
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 14px;
  }

  .staff-tool-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .staff-tool-table thead {
    display: none;
  }

  .staff-tool-table,
  .staff-tool-table tbody {
    display: block;
  }

  .staff-tool-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.35rem;
    padding: 0.75rem;
    border-top: 1px solid var(--staff-outline);
    background: rgba(6, 2, 12, 0.26);
  }

  .staff-tool-table tbody tr:first-child {
    border-top: 0;
  }

  .staff-tool-table td,
  .staff-tool-table th {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .staff-tool-table td > div {
    min-width: 0 !important;
  }

  .staff-tool-table td .btn {
    width: 100%;
  }

  .staff-tool-table td.staff-ban-cell-id,
  .staff-tool-table td.staff-ban-cell-email,
  .staff-tool-table td.staff-ban-cell-until,
  .staff-tool-table td.staff-ban-cell-reason {
    display: none !important;
  }

  .staff-tool-table td.staff-ban-cell-username,
  .staff-tool-table td.staff-ban-cell-type {
    width: fit-content !important;
    max-width: 100%;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0.34rem 0.6rem;
    border: 1px solid var(--staff-outline-strong);
    border-radius: 999px;
    background: rgba(6, 2, 12, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .staff-tool-table td.staff-ban-cell-username {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: normal;
    word-break: break-word;
  }

  .staff-tool-table td.staff-ban-cell-type {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .staff-tool-table td.staff-ban-cell-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
  }

  .staff-tool-table td.staff-ban-cell-actions .btn {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 5rem;
  }

  .staff-tool-table td[style*="display:flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }

  .staff-tool-table td[style*="display:flex"] .btn {
    width: 100%;
  }

  .staff-tool-table td img,
  .staff-tool-table td video {
    max-width: 72px;
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
  }

  .staff-tool-table td strong {
    overflow-wrap: anywhere;
  }

  .staff-tool-modal {
    padding: 0.35rem;
  }

  .staff-tool-modal-card {
    width: calc(100vw - 0.45rem);
    height: calc(100dvh - 0.45rem);
    max-height: calc(100dvh - 0.45rem);
    min-height: 0;
    border-radius: 18px;
  }

  .staff-tool-modal-head {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem 0.8rem;
  }

  .staff-tool-modal-head .btn {
    width: 100%;
  }

  .staff-tool-modal-body {
    padding: 0.75rem 0.8rem 0.8rem;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}



/* ── Agency Setup Task Checklist ─────────────────────────────────────────── */

.agency-task-list {
  display: grid;
  gap: 0.6rem;
}

.agency-task-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s ease;
}

.agency-task-row.agency-task-completed {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.04);
  opacity: 0.78;
}

.agency-task-row.agency-task-inprogress {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.04);
}

.agency-task-row.agency-task-pending {
  border-color: var(--line);
}

.agency-task-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  border: 2px solid var(--line);
  color: var(--muted);
  margin-top: 0.05rem;
}

.agency-task-completed .agency-task-icon {
  border-color: rgba(52, 211, 153, 0.6);
  color: #34d399;
}

.agency-task-inprogress .agency-task-icon {
  border-color: rgba(96, 165, 250, 0.6);
  color: #60a5fa;
}

.agency-task-info {
  flex: 1;
  min-width: 0;
}

.agency-task-info strong {
  font-size: 0.9rem;
  display: block;
  line-height: 1.3;
}

.agency-task-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* notice info variant */
.notice-info {
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.06);
  color: rgba(214, 232, 255, 0.88);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AGENCY FILES PAGE — document tree, toolbar, file viewer modal
   ═══════════════════════════════════════════════════════════════════════════ */

.agency-files-page {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
  display: grid;
  gap: 0.9rem;
}

.agency-files-hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 24, 39, 0.94), rgba(95, 20, 140, 0.86));
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.agency-files-toolbar-panel {
  display: grid;
  gap: 0.5rem;
}

.agency-files-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.agency-files-toolbar .admin-search-input {
  flex: 1 1 220px;
  min-width: 0;
}

.agency-files-tree-panel {
  min-height: 280px;
}

/* Tree nodes */
.agency-files-tree {
  display: grid;
  gap: 0.45rem;
}

.agency-files-loading {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 1rem 0;
}

.agency-files-applicant {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.agency-files-applicant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.72rem 0.9rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.15s;
}

.agency-files-applicant-head:hover {
  background: rgba(255, 255, 255, 0.04);
}

.agency-files-applicant.is-open .agency-files-applicant-head {
  border-bottom-color: var(--line);
}

.agency-files-applicant-name {
  font-weight: 800;
  font-size: 0.92rem;
}

.agency-files-applicant-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.agency-files-applicant-toggle {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.agency-files-applicant-body {
  display: none;
  padding: 0.6rem 0.9rem 0.8rem;
}

.agency-files-applicant.is-open .agency-files-applicant-body {
  display: grid;
  gap: 0.55rem;
}

/* Application block within an applicant */
.agency-files-app {
  border: 1px solid rgba(210, 94, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.agency-files-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.15s;
}

.agency-files-app-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

.agency-files-app.is-open .agency-files-app-head {
  border-bottom-color: rgba(210, 94, 255, 0.2);
}

.agency-files-app-id {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.agency-files-app-status {
  flex: 0 0 auto;
}

.agency-files-app-body {
  display: none;
  padding: 0.55rem 0.8rem 0.7rem;
}

.agency-files-app.is-open .agency-files-app-body {
  display: grid;
  gap: 0.45rem;
}

/* Document row */
.agency-files-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s, border-color 0.15s;
}

.agency-files-doc-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(210, 94, 255, 0.45);
}

.agency-files-doc-info {
  min-width: 0;
  flex: 1 1 160px;
  display: grid;
  gap: 0.14rem;
}

.agency-files-doc-name {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-files-doc-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.agency-files-doc-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.agency-files-view-btn {
  font-size: 0.74rem;
  padding: 0.26rem 0.6rem;
}

/* Empty / no-files */
.agency-files-empty {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.4rem 0;
}

/* ── Agency Files Modal ── */
.agency-files-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 0.75rem;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.agency-files-modal.hidden {
  display: none;
}

.agency-files-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.agency-files-modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  border: 1px solid rgba(210, 94, 255, 0.65);
  border-radius: 18px;
  background: rgba(14, 4, 24, 0.98);
  box-shadow: 0 24px 60px rgba(120, 20, 200, 0.46);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 90vh;
  overflow: hidden;
}

.agency-files-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem 0.8rem;
  border-bottom: 1px solid rgba(210, 94, 255, 0.24);
}

.agency-files-modal-close {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(210, 94, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.agency-files-modal-close:hover {
  border-color: #e9a0ff;
  color: #f7d8ff;
}

.agency-files-modal-body {
  overflow: auto;
  padding: 0.9rem 1.1rem;
  min-height: 200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.agency-files-modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.agency-files-modal-body iframe {
  width: 100%;
  height: 65vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}

.agency-files-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid rgba(210, 94, 255, 0.24);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Agency pages (all) + Profile page
   Breakpoints used by this project: 760px (tablet), 560px (large phone),
   480px (standard phone), 400px (small phone)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 760px — tablet & below ── */
@media (max-width: 760px) {

  /* ---- Profile page ---- */
  .profile-page {
    padding-top: 0.6rem;
    padding-bottom: 1.2rem;
  }

  .profile-shell {
    gap: 0.7rem;
    /* remove max-width cap so it fills the mobile shell */
    max-width: none;
  }

  .profile-cover-card {
    border-radius: 16px;
  }

  .profile-cover-image {
    height: 160px;
  }

  .profile-hero-card {
    border-radius: 16px;
    padding: 0.9rem;
    gap: 0.9rem;
  }

  .profile-wall-panel {
    border-radius: 16px;
    padding: 0.9rem;
  }

  .profile-wall-head {
    padding-bottom: 0.6rem;
    margin-bottom: 0.65rem;
  }

  .profile-wall-form {
    padding: 0.75rem;
    margin-bottom: 0.8rem;
  }

  .profile-wall-item {
    padding: 0.7rem;
    border-radius: 14px;
  }

  .profile-comment-item.is-reply {
    margin-left: 1rem;
  }

  /* Edit modal full-screen on mobile */
  .profile-edit-modal {
    padding: 0;
    align-items: flex-end;
  }

  .profile-edit-modal-card {
    width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.1rem 1rem 1.4rem;
  }

  /* ---- Agency shared ---- */
  .agency-page,
  .agency-controls-page,
  .agency-files-page {
    padding-top: 0.6rem;
    padding-bottom: 1.2rem;
    gap: 0.7rem;
  }

  .agency-hero,
  .agency-controls-hero,
  .agency-files-hero {
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    gap: 0.6rem;
  }

  .agency-hero h1,
  .agency-controls-hero h1,
  .agency-files-hero h1 {
    font-size: clamp(1rem, 5vw, 1.4rem);
  }

  /* Grid — force single column */
  .agency-controls-grid .panel,
  .agency-dash-grid .panel {
    padding: 0.8rem;
    border-radius: 14px;
  }

  .agency-dash-section-head {
    gap: 0.45rem;
  }

  .agency-dash-section-head h2 {
    font-size: 0.96rem;
  }

  /* Stat grids — 2 cols on tablet */
  .agency-dash-stat-grid,
  .agency-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Table wrap — horizontal scroll with visual hint */
  .agency-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -0.1rem;
    padding-inline: 0.1rem;
  }

  /* Referral link row */
  .settings-actions {
    flex-wrap: wrap;
  }

  #agencyReferralLinkInput {
    min-width: 0;
    width: 100%;
  }

  /* Modal cards — bottom-sheet style on mobile */
  .admin-modal {
    align-items: flex-end;
    padding: 0;
  }

  .admin-modal-card,
  .agency-dash-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Setup task rows */
  .agency-task-row {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .agency-task-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .agency-task-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Application form grid */
  .agency-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Agency form — comfortable tap targets */
  .agency-form input,
  .agency-form textarea,
  .agency-form select,
  .agency-dash-modal select.admin-search-input {
    font-size: 1rem; /* prevents iOS zoom */
    padding: 0.62rem 0.72rem;
  }

  .agency-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  /* Files page */
  .agency-files-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .agency-files-toolbar .admin-search-input {
    width: 100%;
  }

  .agency-files-modal {
    padding: 0;
    align-items: flex-end;
  }

  .agency-files-modal-card {
    width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 95vh;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .agency-files-modal-body iframe {
    height: 55vh;
  }

  /* Doc rows — stack vertically */
  .agency-files-doc-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .agency-files-doc-actions {
    width: 100%;
  }

  .agency-files-view-btn {
    flex: 1;
    text-align: center;
  }

  /* Card actions in dashboard */
  .agency-action-cell {
    white-space: normal;
  }

  /* Decision banners */
  .agency-decision-banner {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Notice info */
  .notice-info {
    font-size: 0.82rem;
  }
}

/* ── 560px — large phone ── */
@media (max-width: 560px) {

  /* Profile */
  .profile-cover-image {
    height: 130px;
  }

  .profile-avatar-wrap {
    width: 96px;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
  }

  .profile-hero-card {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .profile-wall-panel {
    padding: 0.8rem;
  }

  /* Agency stat grids — 2 col still fine */
  .agency-dash-stat-grid,
  .agency-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .agency-card-grid > div,
  .agency-stat-card {
    padding: 0.4rem;
  }

  /* Dashboard panel headings */
  .agency-controls-grid .panel,
  .agency-dash-grid .panel {
    padding: 0.7rem;
  }

  /* Contracts page step indicator — make it scrollable */
  .contract-step-indicator {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Application cards */
  .agency-card {
    padding: 0.6rem;
    border-radius: 14px;
  }

  .agency-card-head {
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
  }

  /* Files tree */
  .agency-files-applicant-head {
    padding: 0.6rem 0.75rem;
  }

  .agency-files-app-head {
    padding: 0.5rem 0.7rem;
  }

  .agency-files-doc-row {
    padding: 0.45rem 0.6rem;
  }
}

/* ── 480px — standard phone ── */
@media (max-width: 480px) {

  /* Profile */
  .profile-cover-image {
    height: 110px;
  }

  .profile-edit-modal-card {
    padding: 0.9rem 0.85rem 1.2rem;
  }

  .profile-edit-fieldset {
    padding: 0.65rem 0.7rem;
  }

  .profile-stat-chip {
    font-size: 0.72rem;
    padding: 0.2rem 0.56rem;
  }

  .profile-wall-form {
    padding: 0.65rem;
  }

  /* Agency form labels — slightly smaller on tiny screens */
  .agency-form label > span,
  .agency-upload-grid label > span {
    font-size: 0.68rem;
  }

  /* Stat grids — go 1-col on very small screens */
  .agency-dash-stat-grid,
  .agency-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Agency hero */
  .agency-hero,
  .agency-controls-hero,
  .agency-files-hero {
    padding: 0.75rem;
  }

  .agency-hero h1,
  .agency-controls-hero h1,
  .agency-files-hero h1 {
    font-size: 1rem;
    line-height: 1.3;
  }

  /* Task row */
  .agency-task-row {
    padding: 0.65rem;
  }

  .agency-task-info strong {
    font-size: 0.84rem;
  }

  /* Modal card padding */
  .admin-modal-card,
  .agency-dash-modal {
    padding: 1rem 0.9rem 1.2rem;
  }

  .agency-files-modal-card {
    border-radius: 18px 18px 0 0;
  }

  .agency-files-modal-head,
  .agency-files-modal-foot {
    padding: 0.75rem 0.9rem;
  }

  .agency-files-modal-body {
    padding: 0.7rem 0.9rem;
  }

  .agency-files-modal-body iframe {
    height: 48vh;
  }
}

/* ── 400px — small phones ── */
@media (max-width: 400px) {

  /* Profile */
  .profile-cover-image {
    height: 90px;
  }

  .profile-avatar {
    width: 84px;
    height: 84px;
  }

  .profile-avatar-wrap {
    width: 84px;
  }

  .profile-name {
    font-size: 1.1rem;
  }

  .profile-handle {
    font-size: 0.82rem;
  }

  /* Agency stat grid — 1 col for very narrow */
  .agency-dash-stat-grid,
  .agency-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .agency-files-modal-body iframe {
    height: 44vh;
  }
}

/* ── Wallet page ─────────────────────────────────────────────────────────── */

/* Balance cards */
.wallet-balance-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.wallet-balance-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.wallet-coin-icon {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  user-select: none;
}

.wallet-bz-card .wallet-balance-icon {
  background: rgba(80, 30, 140, 0.55);
  border-color: rgba(172, 90, 255, 0.55);
}

.wallet-bz-card .wallet-coin-icon--bz {
  color: #d07aff;
}

.wallet-diamond-card .wallet-balance-icon {
  background: rgba(20, 60, 120, 0.55);
  border-color: rgba(80, 160, 255, 0.55);
}

.wallet-coin-icon--diamond {
  color: #7ec8ff;
  font-size: 1.3rem;
}

.wallet-promo-card .wallet-balance-icon {
  background: rgba(30, 100, 60, 0.55);
  border-color: rgba(60, 200, 120, 0.55);
}

.wallet-coin-icon--promo {
  color: #72ffb8;
}

.wallet-balance-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.wallet-balance-label {
  font-size: 0.82rem;
  margin: 0;
}

.wallet-balance-value {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  word-break: break-all;
}

.wallet-bz-card .wallet-balance-value {
  color: #d07aff;
}

.wallet-diamond-card .wallet-balance-value {
  color: #7ec8ff;
}

.wallet-promo-card .wallet-balance-value {
  color: #72ffb8;
}

.wallet-balance-sub {
  font-size: 0.78rem;
  margin: 0;
}

.wallet-balance-actions {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  padding-top: 0.4rem;
}

/* Conversion form */
.wallet-rate-highlight {
  color: var(--accent);
}

.wallet-convert-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.wallet-convert-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.wallet-convert-field {
  display: grid;
  gap: 0.35rem;
  min-width: 160px;
}

.wallet-convert-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.wallet-convert-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.58rem 0.72rem;
  background: rgba(5, 15, 24, 0.7);
  color: var(--text);
  font-size: 1rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  max-width: 220px;
}

.wallet-convert-input:focus {
  outline: none;
  border-color: var(--accent);
}

.wallet-convert-arrow {
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1;
  padding-bottom: 0.35rem;
  flex-shrink: 0;
}

.wallet-convert-output {
  display: block;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.58rem 0.72rem;
  background: rgba(5, 15, 24, 0.35);
  color: #7ec8ff;
  font-size: 1rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
  min-width: 130px;
}

.wallet-convert-actions {
  display: flex;
  gap: 0.6rem;
}

.wallet-convert-notice {
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.wallet-convert-notice.notice--error {
  color: var(--warn);
}

/* Transaction history */
.wallet-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.wallet-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.wallet-filter-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
}

.wallet-filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(209, 115, 255, 0.45);
}

.wallet-history-list {
  display: grid;
  gap: 0.5rem;
  /* Show ~5 rows then scroll — each row is ~64px + 8px gap = ~72px, × 5 = 360px */
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding-right: 4px; /* room for scrollbar */
}

/* Custom scrollbar — subtle, on-brand */
.wallet-history-list::-webkit-scrollbar {
  width: 5px;
}

.wallet-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.wallet-history-list::-webkit-scrollbar-thumb {
  background: rgba(210, 94, 255, 0.35);
  border-radius: 999px;
}

.wallet-history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(210, 94, 255, 0.65);
}

.wallet-history-empty {
  font-size: 0.88rem;
  padding: 0.75rem 0;
}

/* Individual transaction row */
.wallet-tx-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 18, 29, 0.38);
  padding: 0.7rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
}

:root[data-theme="light"] .wallet-tx-row {
  background: rgba(240, 247, 255, 0.88);
}

.wallet-tx-kind {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.wallet-tx-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 94, 255, 0.5);
  color: #d07aff;
  background: rgba(80, 10, 120, 0.28);
  white-space: nowrap;
  width: fit-content;
}

.wallet-tx-badge--gift-sent {
  border-color: rgba(255, 120, 80, 0.5);
  color: #ffa07a;
  background: rgba(120, 30, 0, 0.28);
}

.wallet-tx-badge--purchase {
  border-color: rgba(60, 200, 120, 0.55);
  color: #72ffb8;
  background: rgba(0, 60, 30, 0.28);
}

.wallet-tx-badge--convert-bz-to-diamonds {
  border-color: rgba(100, 180, 255, 0.55);
  color: #7ec8ff;
  background: rgba(0, 30, 70, 0.28);
}

.wallet-tx-note {
  font-size: 0.8rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-tx-deltas {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.wallet-tx-delta {
  font-size: 0.82rem;
  font-weight: 800;
  font-family: "Sora", "Segoe UI", sans-serif;
  white-space: nowrap;
}

.wallet-tx-delta--positive {
  color: #72ffb8;
}

.wallet-tx-delta--negative {
  color: var(--warn);
}

.wallet-tx-delta--bz {
  color: #d07aff;
}

.wallet-tx-delta--bz.wallet-tx-delta--positive {
  color: #d07aff;
}

.wallet-tx-delta--bz.wallet-tx-delta--negative {
  color: #ff9afc;
  opacity: 0.8;
}

.wallet-tx-delta--diamond {
  color: #7ec8ff;
}

.wallet-tx-delta--diamond.wallet-tx-delta--positive {
  color: #7ec8ff;
}

.wallet-tx-delta--diamond.wallet-tx-delta--negative {
  color: #ffb86a;
}

.wallet-tx-date {
  font-size: 0.74rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Responsive wallet ─────────────────────────────────────────────────── */
@media (max-width: 760px) {

  .wallet-balance-card {
    flex-direction: column;
    gap: 0.65rem;
  }

  .wallet-balance-icon {
    width: 44px;
    height: 44px;
  }

  .wallet-balance-value {
    font-size: 1.25rem;
  }

  .wallet-convert-row {
    gap: 0.65rem;
  }

  .wallet-convert-input,
  .wallet-convert-output {
    max-width: 100%;
  }

  .wallet-tx-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .wallet-tx-date {
    grid-column: 1 / -1;
    text-align: right;
  }

  .wallet-convert-arrow {
    display: none;
  }
}

/* ─── Live Room Mini Header ──────────────────────────────────────────────── */

.live-room-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
  padding: 0.42rem 0.34rem 0.3rem;
  min-height: 3.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  overflow: visible;
}

.live-room-mini-header-nav {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  width: 100%;
}

.live-room-mini-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
  width: fit-content;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(210, 185, 255, 0.7);
  font-family: inherit;
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s, color 0.14s, opacity 0.14s;
}

.live-room-mini-header-btn:hover {
  background: transparent;
  color: rgba(240, 215, 255, 0.92);
  transform: translateY(-1px);
}

.live-room-mini-header-btn.is-active {
  background: transparent;
  border: 0;
  color: #f0d6ff;
}

.live-room-mini-header-icon {
  width: 2.05rem;
  height: 2.05rem;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.live-room-mini-header-icon-wrap {
  width: auto;
  height: auto;
  position: relative;
}

.live-room-mini-header-icon-wrap .dm-unread-badge {
  position: absolute;
  top: -0.12rem;
  right: -0.22rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.18rem;
  font-size: 0.58rem;
}

@media (max-width: 720px) {
  .live-room-mini-header {
    gap: 0.28rem;
    padding: 0.24rem 0.24rem 0.18rem;
    min-height: 2.95rem;
  }

  .live-room-view-page #liveHomeModalEmojiBtn {
    display: none !important;
  }

  .live-room-mini-header-nav {
    gap: 0.16rem;
  }

  .live-room-mini-header-btn {
    width: fit-content;
    height: auto;
  }

  .live-room-mini-header-icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .live-room-mini-header-icon-wrap {
    width: auto;
    height: auto;
  }

  .live-room-mini-header-icon-wrap .dm-unread-badge {
    top: -0.14rem;
    right: -0.2rem;
    min-width: 0.96rem;
    height: 0.96rem;
    padding: 0 0.14rem;
    font-size: 0.54rem;
  }
}

/* Support center DM theme override */
main.support-page {
  padding: 0;
  overflow-x: clip;
  background: transparent;
}

main.support-page .support-shell {
  display: grid;
  gap: 0;
  min-height: 100%;
  height: 100%;
  border-radius: 0;
  overflow: clip;
}

main.support-page .support-hero {
  display: none;
}

main.support-page .support-app {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

main.support-page .support-side {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border-right: 0;
  background: transparent;
  backdrop-filter: none;
}

main.support-page .support-side-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  height: 100%;
}

main.support-page .support-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

main.support-page .support-panel-accent,
main.support-page .support-panel-muted {
  background: var(--dm-panel);
}

main.support-page .support-panel-head h2,
main.support-page .support-chat-meta h2,
main.support-page .support-panel-kicker,
main.support-page .support-reply-label {
  font-family: "Sora", "Segoe UI", sans-serif;
}

main.support-page .support-panel-kicker,
main.support-page .support-reply-label {
  color: var(--dm-brand);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

main.support-page .support-panel-head {
  gap: 0.75rem;
}

main.support-page .support-panel-head h2 {
  margin: 0;
  color: var(--dm-text);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

main.support-page .support-panel-note,
main.support-page .support-list-msg,
main.support-page .support-hero-text,
main.support-page .support-ticket-sub,
main.support-page .support-ticket-time,
main.support-page .support-chat-meta p,
main.support-page .support-empty-state,
main.support-page .support-ban-hint {
  color: var(--dm-muted);
}

main.support-page .support-create-form,
main.support-page .support-ban-form,
main.support-page .support-reply-form {
  display: grid;
  gap: 0.55rem;
}

main.support-page .support-create-form input,
main.support-page .support-create-form select,
main.support-page .support-create-form textarea,
main.support-page .support-filters input,
main.support-page .support-filters select,
main.support-page .support-reply-form input,
main.support-page .support-reply-form textarea,
main.support-page .support-admin-controls select,
main.support-page .support-ban-form input,
main.support-page .support-ban-form select,
main.support-page .support-ban-form textarea {
  width: 100%;
  border: 1px solid var(--dm-line);
  border-radius: 18px;
  padding: 0.72rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dm-text);
  font: inherit;
}

main.support-page .support-create-form input:focus,
main.support-page .support-create-form select:focus,
main.support-page .support-create-form textarea:focus,
main.support-page .support-filters input:focus,
main.support-page .support-filters select:focus,
main.support-page .support-reply-form input:focus,
main.support-page .support-reply-form textarea:focus,
main.support-page .support-admin-controls select:focus,
main.support-page .support-ban-form input:focus,
main.support-page .support-ban-form select:focus,
main.support-page .support-ban-form textarea:focus {
  outline: none;
  border-color: rgba(223, 140, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(140, 54, 255, 0.16);
}

main.support-page .support-status-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

main.support-page .support-status-pill {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dm-muted);
}

main.support-page .support-status-pill.active {
  background: linear-gradient(135deg, #8c36ff, #d173ff);
  color: #fff5ff;
}

main.support-page .support-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

main.support-page .support-list-count {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dm-text);
}

main.support-page .support-panel-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

main.support-page .support-ticket-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  gap: 10px;
  padding-right: 4px;
}

main.support-page .support-ticket-item {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 14px 15px 13px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(10, 5, 18, 0.52);
  color: var(--dm-text);
  text-align: left;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

main.support-page .support-ticket-item:hover,
main.support-page .support-ticket-item.active {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(16, 7, 29, 0.7);
  border-color: rgba(223, 140, 255, 0.24);
}

main.support-page .support-ticket-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

main.support-page .support-ticket-card__titlewrap {
  display: grid;
  gap: 4px;
  min-width: 0;
}

main.support-page .support-ticket-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main.support-page .support-ticket-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

main.support-page .support-ticket-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--dm-muted);
  font-size: 0.84rem;
}

main.support-page .support-ticket-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

main.support-page .support-ticket-pill,
main.support-page .support-ticket-type-pill,
main.support-page .support-ticket-type-pill-inline,
main.support-page .support-chip,
main.support-page .support-message-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

main.support-page .support-ticket-pill-status,
main.support-page .support-ticket-status {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dm-text);
}

main.support-page .support-ticket-pill-status--open {
  border-color: rgba(88, 214, 141, 0.28);
  background: rgba(88, 214, 141, 0.12);
  color: #c8ffd8;
}

main.support-page .support-ticket-pill-status--pending {
  border-color: rgba(255, 183, 77, 0.3);
  background: rgba(255, 183, 77, 0.13);
  color: #ffe1b0;
}

main.support-page .support-ticket-pill-status--resolved {
  border-color: rgba(255, 122, 122, 0.3);
  background: rgba(255, 122, 122, 0.12);
  color: #ffd0d0;
}

main.support-page .support-ticket-pill-type,
main.support-page .support-ticket-type-pill,
main.support-page .support-ticket-type-pill-inline {
  border: 1px solid rgba(223, 140, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #f4d9ff;
}

main.support-page .support-ticket-pill-type--support,
main.support-page .support-ticket-pill-type--ticket {
  border-color: rgba(166, 171, 189, 0.24);
  background: rgba(166, 171, 189, 0.09);
  color: #e5e8f2;
}

main.support-page .support-ticket-pill-type--upload_moderation {
  border-color: rgba(85, 181, 255, 0.32);
  background: rgba(85, 181, 255, 0.14);
  color: #d7efff;
}

main.support-page .support-ticket-pill-type--dm_report {
  border-color: rgba(145, 124, 255, 0.32);
  background: rgba(145, 124, 255, 0.14);
  color: #e2dbff;
}

main.support-page .support-ticket-pill-type--staff_report {
  border-color: rgba(255, 126, 180, 0.32);
  background: rgba(255, 126, 180, 0.14);
  color: #ffd7ea;
}

main.support-page .support-ticket-pill-type--ban_appeal {
  border-color: rgba(255, 188, 102, 0.32);
  background: rgba(255, 188, 102, 0.14);
  color: #ffe5bf;
}

main.support-page .support-ticket-pill-type--agency_application {
  border-color: rgba(105, 224, 203, 0.32);
  background: rgba(105, 224, 203, 0.14);
  color: #d1fff6;
}

main.support-page .support-ticket-pill-quiet,
main.support-page .support-chip-status,
main.support-page .support-chip-quiet,
main.support-page .support-chip-warm {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dm-text);
}

main.support-page .support-ticket-pill-priority--low {
  border-color: rgba(111, 215, 163, 0.24);
  background: rgba(111, 215, 163, 0.12);
  color: #d8ffe7;
}

main.support-page .support-ticket-pill-priority--normal {
  border-color: rgba(148, 165, 184, 0.24);
  background: rgba(148, 165, 184, 0.12);
  color: #e4ebf5;
}

main.support-page .support-ticket-pill-priority--high {
  border-color: rgba(255, 177, 98, 0.28);
  background: rgba(255, 177, 98, 0.14);
  color: #ffe2bf;
}

main.support-page .support-ticket-pill-priority--urgent {
  border-color: rgba(255, 112, 112, 0.3);
  background: rgba(255, 112, 112, 0.14);
  color: #ffd3d3;
}

main.support-page .support-ticket-pill-warm {
  border: 1px solid rgba(223, 140, 255, 0.22);
  background: rgba(209, 115, 255, 0.1);
  color: #f7d8ff;
}

main.support-page .support-conversation-modal {
  position: fixed;
  inset: 0;
  z-index: 1985;
  display: grid;
  place-items: center;
  padding: 12px;
    background: rgba(2, 7, 13, 0.16);
    backdrop-filter: blur(10px);
  }

main.support-page .support-conversation-modal-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

@media (min-width: 721px) {
  main.support-page .support-conversation-modal.hidden {
    display: none !important;
  }
}

main.support-page .support-conversation-card {
  width: 100%;
  height: min(92dvh, 960px);
  max-height: none;
  width: min(1240px, calc(100vw - 24px));
  min-height: 0;
  border-radius: 28px;
  border: 1px solid rgba(226, 162, 255, 0.18);
  background:
    radial-gradient(1100px 320px at 12% 0%, rgba(255, 194, 98, 0.08), transparent 42%),
    radial-gradient(900px 340px at 100% 0%, rgba(210, 94, 255, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(20, 8, 34, 0.99), rgba(9, 4, 16, 0.99));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

main.support-page .support-chat-head {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(226, 162, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(22, 8, 36, 0.98), rgba(16, 6, 27, 0.94));
  backdrop-filter: blur(16px);
  align-items: center;
}

main.support-page .support-chat-meta {
  gap: 4px;
}

main.support-page .support-chat-meta h2 {
  font-size: 1.5rem;
}

main.support-page .support-chat-actions {
  gap: 0.45rem;
}

main.support-page .support-thread-close-btn {
  width: auto;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(223, 140, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5ddff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
}

main.support-page .support-thread-close-btn-inline {
  margin-top: 2px;
}

main.support-page .support-thread-close-btn-floating {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.15rem;
}

main.support-page .support-thread-close-btn-rail {
  width: 100%;
  margin-top: 2px;
}

main.support-page .support-thread-close-btn:hover,
main.support-page .support-thread-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(223, 140, 255, 0.42);
  outline: none;
}

main.support-page .support-conversation-grid {
  min-height: 0;
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: stretch;
}

main.support-page .support-conversation-main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

main.support-page .support-thread-rail {
  min-height: 0;
  display: grid;
  gap: 12px;
}

main.support-page .support-thread-rail-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(10, 5, 18, 0.48);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

main.support-page .support-thread-rail-card-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    rgba(10, 5, 18, 0.34);
}

main.support-page .support-thread-rail-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

main.support-page .support-thread-rail .support-ticket-pills {
  gap: 0.5rem;
  align-items: flex-start;
}

main.support-page .support-thread-rail .support-ticket-pills .support-chip,
main.support-page .support-thread-rail .support-ticket-pills .support-ticket-pill {
  justify-content: center;
}

main.support-page .support-thread-rail-card p {
  margin: 0;
}

main.support-page .support-thread-rail-card .muted {
  color: var(--dm-muted);
  line-height: 1.55;
}

main.support-page .support-thread-surface {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--dm-shadow);
}

main.support-page .support-conversation-card .support-messages {
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 10px 10px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

main.support-page .support-message,
main.support-page .support-empty-state {
  border: 0;
  background: transparent;
  box-shadow: none;
}

main.support-page .support-message {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
}

main.support-page .support-message.mine {
  justify-content: flex-end;
}

main.support-page .support-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

main.support-page .support-message-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

main.support-page .support-message-body {
  max-width: min(640px, 82%);
  padding: 14px 16px 12px;
  border-radius: 20px 20px 20px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dm-line);
}

main.support-page .support-message.mine .support-message-body {
  border-radius: 20px 20px 8px 20px;
  background: linear-gradient(145deg, rgba(209, 115, 255, 0.28), rgba(140, 54, 255, 0.18));
  border-color: rgba(223, 140, 255, 0.32);
}

main.support-page .support-message-body p {
  margin: 0;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
}

main.support-page .support-reply-form {
  margin: 10px 0 0;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid var(--dm-line);
  background: var(--dm-panel);
  box-shadow: var(--dm-shadow);
}

main.support-page .support-reply-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

main.support-page .support-reply-actions-panel {
  display: grid;
  gap: 8px;
}

main.support-page .support-reply-attachments-panel {
  display: contents;
}

main.support-page .support-reply-attachments-panel label {
  margin: 0;
}

main.support-page .support-reply-submit-row {
  justify-content: space-between;
  align-items: center;
}

main.support-page .support-reply-form textarea {
  min-height: 6rem;
}

main.support-page .support-reply-row,
main.support-page .support-chat-actions,
main.support-page .support-admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

main.support-page .support-create-modal,
main.support-page .support-request-choice-modal,
main.support-page .support-staff-report-modal,
main.support-page .support-attachments-modal,
main.support-page .support-attachment-modal {
  background: rgba(2, 7, 13, 0.68);
  backdrop-filter: blur(10px);
}

main.support-page .support-create-modal-card,
main.support-page .support-request-choice-panel,
main.support-page .support-attachments-modal-card,
main.support-page .support-attachment-modal-card {
  border: 1px solid var(--dm-line);
  border-radius: 28px;
  background: var(--dm-panel-strong);
  box-shadow: var(--dm-shadow);
}

html.support-standalone main.support-page {
  padding: 0;
}

@media (min-width: 721px) {
  html.support-standalone main.support-page .support-hero {
    display: none;
  }

  html.support-standalone main.support-page .support-app {
    min-height: 0;
    flex: 0 0 auto;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    display: grid;
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overscroll-behavior: none;
  }

  html.support-standalone main.support-page .support-side {
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border-right: 0;
    display: block;
  }

  html.support-standalone main.support-page .support-side-stack {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  html.support-standalone main.support-page .support-conversation-modal {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    overscroll-behavior: none;
  }

  html.support-standalone main.support-page .support-conversation-modal.hidden {
    display: block !important;
  }

  html.support-standalone main.support-page .support-conversation-modal-backdrop {
    display: none;
  }

  html.support-standalone main.support-page .support-conversation-card {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    border-radius: 24px;
    border: 1px solid rgba(226, 162, 255, 0.18);
  }

  html.support-standalone main.support-page .support-conversation-grid {
    height: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    padding: 0.75rem 0.9rem 0.9rem;
    gap: 0.7rem;
  }
}

@media (max-width: 680px) {
  main.support-page {
    padding: 0.5rem;
  }

  main.support-page .support-app {
    grid-template-columns: 1fr;
  }

  main.support-page .support-side {
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--dm-line);
  }

  main.support-page .support-conversation-card {
    border-radius: 20px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }

  main.support-page .support-chat-head,
  main.support-page .support-conversation-grid,
  main.support-page .support-reply-form {
    padding-left: 12px;
    padding-right: 12px;
  }

  main.support-page .support-conversation-grid {
    grid-template-columns: 1fr;
  }

  main.support-page .support-thread-rail {
    order: -1;
  }

  main.support-page .support-reply-composer-grid {
    grid-template-columns: 1fr;
  }

  main.support-page .support-message-body {
    max-width: 100%;
  }
}

@media (min-width: 721px) {
  html.support-standalone main.support-page {
    padding: 0;
    overflow: hidden;
  }

  html.support-standalone main.support-page .support-shell {
    height: 100%;
  }

  html.support-standalone main.support-page .support-app {
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  }

  html.support-standalone main.support-page .support-conversation-modal {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  html.support-standalone main.support-page .support-conversation-modal.hidden {
    display: block !important;
  }

  html.support-standalone main.support-page .support-conversation-modal-backdrop {
    display: none;
  }

  html.support-standalone main.support-page .support-conversation-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(1100px 320px at 12% 0%, rgba(255, 194, 98, 0.08), transparent 42%),
      radial-gradient(900px 340px at 100% 0%, rgba(210, 94, 255, 0.16), transparent 45%),
      linear-gradient(180deg, rgba(20, 8, 34, 0.99), rgba(9, 4, 16, 0.99));
    box-shadow: none;
  }

  html.support-standalone main.support-page .support-thread-close-btn-floating {
    display: none;
  }

  html.support-standalone main.support-page .support-chat-head {
    padding: 18px 18px 14px;
  }

  html.support-standalone main.support-page .support-conversation-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    padding: 14px 16px 16px;
    gap: 12px;
  }
}

.support-desktop-sidebar-intro,
.support-thread-head-pills {
  display: none;
}

@media (min-width: 721px) {
  html.support-standalone,
  html.support-standalone body {
    background:
      radial-gradient(1400px 700px at 10% 0%, rgba(176, 97, 255, 0.22), transparent 58%),
      radial-gradient(1200px 820px at 100% 100%, rgba(74, 31, 144, 0.32), transparent 62%),
      linear-gradient(180deg, #05030a 0%, #0b0614 100%);
  }

  html.support-standalone body.support-embed {
    overflow: hidden;
  }

  html.support-standalone main.support-page {
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: transparent;
  }

  html.support-standalone main.support-page .support-shell {
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 100%;
  }

  html.support-standalone main.support-page .support-hero {
    display: block;
    padding: 22px 26px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(18, 10, 29, 0.96), rgba(12, 7, 21, 0.9));
    backdrop-filter: blur(22px);
  }

  html.support-standalone main.support-page .support-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px 28px;
  }

  html.support-standalone main.support-page .support-hero-copy h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.04em;
    color: #fff8ff;
  }

  html.support-standalone main.support-page .support-hero-text {
    max-width: 760px;
    margin: 6px 0 0;
    color: rgba(230, 223, 244, 0.76);
    font-size: 0.96rem;
  }

  html.support-standalone main.support-page .support-hero-actions {
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  html.support-standalone main.support-page .support-app {
    display: grid;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    width: 100%;
    min-width: 0;
    height: 100%;
    max-height: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  html.support-standalone main.support-page .support-side {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
  }

  html.support-standalone main.support-page .support-side-stack {
    gap: 0;
    min-height: 0;
    height: 100%;
  }

  html.support-standalone main.support-page .support-desktop-sidebar-intro,
  html.support-standalone main.support-page .support-panel-list,
  html.support-standalone main.support-page .support-panel-accent {
    border: 1px solid rgba(230, 201, 255, 0.12);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
      rgba(14, 8, 24, 0.86);
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  html.support-standalone main.support-page .support-desktop-sidebar-intro {
    display: none !important;
  }

  html.support-standalone main.support-page .support-panel-list,
  html.support-standalone main.support-page .support-panel-accent {
    padding: 18px;
  }

  html.support-standalone main.support-page #supportQueuePanel,
  html.support-standalone main.support-page #supportUserThreadsPanel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  html.support-standalone main.support-page .support-panel-head {
    margin-bottom: 12px;
  }

  html.support-standalone main.support-page .support-filters {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
  }

  html.support-standalone main.support-page .support-ticket-list {
    padding-right: 2px;
  }

  html.support-standalone main.support-page .support-ticket-item {
    padding: 16px 16px 15px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028)),
      rgba(12, 6, 21, 0.78);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  }

  html.support-standalone main.support-page .support-ticket-item.active {
    border-color: rgba(225, 156, 255, 0.28);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(225, 156, 255, 0.1);
  }

  html.support-standalone main.support-page .support-conversation-modal,
  html.support-standalone main.support-page .support-conversation-modal.hidden {
    display: block !important;
    position: relative;
    inset: auto;
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  html.support-standalone main.support-page .support-conversation-modal-backdrop,
  html.support-standalone main.support-page .support-thread-close-btn-floating,
  html.support-standalone main.support-page .support-thread-close-btn-inline,
  html.support-standalone main.support-page .support-thread-close-btn-rail,
  html.support-standalone main.support-page .support-desktop-list-host {
    display: none !important;
  }

  html.support-standalone main.support-page .support-conversation-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    margin: 0;
    border: 1px solid rgba(230, 201, 255, 0.12);
    border-radius: 32px;
    background:
      radial-gradient(960px 360px at 0% 0%, rgba(255, 189, 105, 0.08), transparent 46%),
      radial-gradient(880px 420px at 100% 0%, rgba(186, 110, 255, 0.12), transparent 48%),
      linear-gradient(180deg, rgba(16, 8, 26, 0.98), rgba(8, 5, 15, 0.98));
    box-shadow:
      0 34px 80px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
  }

  html.support-standalone main.support-page .support-chat-head {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(21, 11, 34, 0.96), rgba(15, 8, 25, 0.9));
  }

  html.support-standalone main.support-page .support-chat-meta-primary {
    gap: 8px;
  }

  html.support-standalone main.support-page .support-chat-meta-primary h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.18;
    color: #fff9ff;
    letter-spacing: -0.04em;
  }

  html.support-standalone main.support-page .support-chat-meta-primary p {
    margin: 0;
  }

  html.support-standalone main.support-page .support-thread-head-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }

  html.support-standalone main.support-page .support-thread-head-pills .support-ticket-pill {
    min-height: 32px;
  }

  html.support-standalone main.support-page .support-chat-actions,
  html.support-standalone main.support-page .support-admin-controls {
    justify-content: flex-end;
  }

  html.support-standalone main.support-page .support-conversation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 18px 24px 24px;
    align-items: stretch;
  }

  html.support-standalone main.support-page .support-conversation-main {
    gap: 14px;
  }

  html.support-standalone main.support-page .support-thread-surface,
  html.support-standalone main.support-page .support-reply-form,
  html.support-standalone main.support-page .support-thread-rail-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
      rgba(11, 6, 19, 0.82);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  }

  html.support-standalone main.support-page .support-thread-surface {
    border-radius: 28px;
  }

  html.support-standalone main.support-page .support-conversation-card .support-messages {
    padding: 18px;
    gap: 0;
  }

  html.support-standalone main.support-page .support-message {
    margin-bottom: 18px;
  }

  html.support-standalone main.support-page .support-message-head {
    margin-bottom: 6px;
  }

  html.support-standalone main.support-page .support-message-body {
    max-width: min(720px, 88%);
    padding: 15px 17px 13px;
    border-radius: 22px 22px 22px 10px;
    background: rgba(255, 255, 255, 0.05);
  }

  html.support-standalone main.support-page .support-message.mine .support-message-body {
    border-radius: 22px 22px 10px 22px;
  }

  html.support-standalone main.support-page .support-empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
  }

  html.support-standalone main.support-page .support-reply-form {
    margin: 0;
    padding: 20px 20px 22px;
    border-radius: 28px;
    max-height: none;
  }

  html.support-standalone main.support-page .support-reply-composer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
  }

  html.support-standalone main.support-page .support-reply-actions-panel {
    display: grid;
    gap: 10px;
  }

  html.support-standalone main.support-page .support-reply-attachments-panel {
    display: contents;
  }

  html.support-standalone main.support-page .support-reply-attachments-panel label {
    margin: 0;
  }

  html.support-standalone main.support-page .support-reply-submit-row {
    margin-top: 0;
    justify-content: space-between;
    align-items: center;
  }

  html.support-standalone main.support-page .support-reply-form textarea {
    min-height: 6rem;
  }

  html.support-standalone main.support-page .support-thread-rail {
    display: none !important;
  }

  html.support-standalone main.support-page .support-create-modal-card,
  html.support-standalone main.support-page .support-request-choice-panel,
  html.support-standalone main.support-page .support-attachments-modal-card,
  html.support-standalone main.support-page .support-attachment-modal-card {
    border-radius: 30px;
  }
}
