:root {
  --bg: #08090b;
  --bg-elevated: #0d1014;
  --surface: #12161d;
  --surface-strong: #171d26;
  --surface-soft: #0f1319;
  --ink: #eef4f8;
  --ink-strong: #ffffff;
  --muted: #8b98a8;
  --muted-strong: #b8c2ce;
  --line: #26303b;
  --line-strong: #334150;
  --primary: #23d18b;
  --primary-dark: #15a66d;
  --primary-soft: rgba(35, 209, 139, 0.13);
  --danger: #ff5c57;
  --danger-soft: rgba(255, 92, 87, 0.13);
  --ok: #23d18b;
  --ok-soft: rgba(35, 209, 139, 0.13);
  --warn: #ffb020;
  --warn-soft: rgba(255, 176, 32, 0.14);
  --accent: #ff3d71;
  --accent-soft: rgba(255, 61, 113, 0.12);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --focus: 0 0 0 3px rgba(35, 209, 139, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 104px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: var(--primary-soft);
  color: var(--ink-strong);
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-self: start;
  min-height: 100vh;
  padding: 24px 16px;
  color: var(--ink);
  background: rgba(12, 15, 20, 0.94);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 28px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.brand strong {
  display: block;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.1;
}

.brandLogo,
.loginLogo,
.heroLogo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #0b0d11;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.loginLogo,
.heroLogo {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.brandInline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand span,
.topbar p,
.panelHead span,
.eyebrow,
small {
  color: var(--muted);
}

.sidebar nav {
  display: grid;
  gap: 18px;
}

.navGroup {
  display: grid;
  gap: 6px;
}

.navGroup.collapsed a {
  display: none;
}

.navGroup.collapsed .navSubheading {
  display: none;
}

.navHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 32px;
  padding: 2px 12px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  font-family: inherit;
  text-transform: uppercase;
}

.navHeadingContent,
.navSubheadingContent {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.navHeadingIcon,
.navSubheadingIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
}

.navHeadingIcon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.navSubheadingIcon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.navHeadingIcon svg,
.navSubheadingIcon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navSubheadingIcon svg {
  width: 13px;
  height: 13px;
}

.navHeading::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.navGroup.collapsed .navHeading::after {
  transform: rotate(-45deg);
}

.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #dbe4ec;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.navIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.navIcon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--ink-strong);
  background: var(--surface-strong);
  border-color: var(--line-strong);
}

.sidebar nav a.active .navIcon {
  color: #8dffd0;
  background: var(--primary-soft);
  border-color: rgba(35, 209, 139, 0.35);
  box-shadow: 0 0 16px rgba(35, 209, 139, 0.78);
}

.sidebar nav a:hover {
  transform: translateX(2px);
}

.navSubheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 46px);
  margin: 6px 12px 2px 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.navSubheading::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.navSubheading.collapsed::after {
  transform: rotate(-45deg);
}

.sidebar nav a.policeSectionCollapsed,
.sidebar nav a.policeSectionHidden {
  display: none;
}

.siteFooterMetrics {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 264px;
  z-index: 40;
  display: grid;
  padding: 9px clamp(18px, 2vw, 30px);
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 13, 0.98);
  box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.siteFooterMetrics[hidden] {
  display: none;
}

.sidebarMetricGroup {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 20px;
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  background: transparent;
}

.sidebarMetricFooter {
  padding: 0;
}

.sidebarMetricTitle {
  display: none;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.sidebarMetricRow {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: flex-start;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 124px;
  padding-top: 0;
  border-top: 0;
}

.sidebarMetricRow span {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebarMetricRow strong {
  flex: 0 0 auto;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 900;
}

.sidebarMetricDetailButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.sidebarMetricDetailButton:hover {
  color: #8dffd0;
  border-color: rgba(35, 209, 139, 0.36);
  background: var(--primary-soft);
}

.workspace {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 26px clamp(24px, 2vw, 42px);
}

.playerPage,
.publicPage {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 26px;
}

body[data-page="player"] .playerPage {
  display: flex;
  width: min(1760px, 100%);
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  padding: 28px clamp(24px, 3vw, 56px) 48px;
}

body[data-page="player"] {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

body[data-page="player"] .portalTopbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  flex: 0 0 auto;
}

body[data-page="player"][data-portal-mode="loading"] .portalTopbar,
body[data-page="player"][data-portal-mode="loading"] #portalModules,
body[data-page="player"][data-portal-mode="whitelist"] #portalModules,
body[data-page="player"][data-portal-mode="loading"] #characterPanel,
body[data-page="player"][data-portal-mode="whitelist"] #characterPanel,
body[data-page="player"][data-portal-mode="loading"] #reportPanel,
body[data-page="player"][data-portal-mode="whitelist"] #reportPanel,
body[data-page="player"][data-portal-mode="loading"] #teamPanel,
body[data-page="player"][data-portal-mode="whitelist"] #teamPanel {
  display: none !important;
}

body[data-page="player"][data-portal-mode="whitelist"] main {
  position: relative;
  z-index: 2;
  width: min(1780px, calc(100% - 24px));
  padding: clamp(10px, 1.7vh, 18px) clamp(12px, 1.5vw, 26px) 20px;
}

body[data-page="player"][data-portal-mode="whitelist"] #whitelistPanel {
  width: 100%;
  margin: 0 auto;
  border-color: rgba(105, 125, 151, 0.34);
  background: rgba(9, 14, 20, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.portalBrandWhitelist {
  display: none;
}

body[data-page="player"][data-portal-mode="whitelist"] {
  isolation: isolate;
  background: #06080c;
}

body[data-page="player"][data-portal-mode="whitelist"]::before,
body[data-page="player"][data-portal-mode="whitelist"]::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body[data-page="player"][data-portal-mode="whitelist"]::before {
  background: url("/assets/login-city-bg.png") center / cover no-repeat;
  filter: brightness(1.52) saturate(1.14) contrast(1.04);
  opacity: 0.98;
}

body[data-page="player"][data-portal-mode="whitelist"]::after {
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.48), rgba(3, 6, 9, 0.16) 48%, rgba(3, 5, 8, 0.52)),
    linear-gradient(180deg, rgba(3, 5, 8, 0.18), rgba(3, 5, 8, 0.36) 66%, rgba(3, 5, 8, 0.72)),
    radial-gradient(circle at 50% 38%, rgba(35, 209, 139, 0.07), transparent 31%);
  background-size: auto;
  background-position: center;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.32));
}

.whitelistFxCanvas {
  display: none;
}

body[data-page="player"][data-portal-mode="whitelist"] .whitelistFxCanvas {
  display: block;
  z-index: 1;
  opacity: 0.7;
}

body[data-page="player"][data-portal-mode="whitelist"] .portalTopbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  position: relative;
  z-index: 3;
  min-height: 68px;
  margin-bottom: 14px;
  padding: 9px 14px;
  border-color: rgba(105, 125, 151, 0.34);
  background: rgba(9, 14, 20, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

body[data-page="player"][data-portal-mode="whitelist"] .portalTopbar .profileMenu {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

body[data-page="player"][data-portal-mode="whitelist"] .portalBrandDefault {
  display: none;
}

body[data-page="player"][data-portal-mode="whitelist"] .portalBrandWhitelist {
  display: block;
}

body[data-page="player"][data-portal-mode="whitelist"] .portalBrand .brandLogo {
  width: 42px;
  height: 42px;
}

body[data-page="player"][data-portal-mode="whitelist"] .portalBrand h1 {
  font-size: 21px;
}

body[data-page="player"][data-portal-mode="whitelist"] .portalBrand p {
  margin-top: 2px;
  font-size: 11px;
}

body[data-page="player"][data-portal-mode="whitelist"] .portalPageTitle {
  display: none !important;
}

body[data-page="player"] .portalTopbar .portalBrand {
  grid-column: 1;
  justify-self: start;
}

body[data-page="player"] .portalTopbar .profileMenu {
  grid-column: 3;
  justify-self: end;
}

.portalPageTitle {
  grid-column: 2;
  max-width: min(42vw, 520px);
  overflow: hidden;
  font-size: clamp(15px, 1.4vw, 21px);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="player"] #characterPanel:not([hidden]) {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

body[data-page="player"] #whitelistPanel:not([hidden]) {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  margin-bottom: 0;
}

body[data-page="player"] #whitelistPanel > .panelHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  flex: 0 0 auto;
  padding: 10px 16px;
}

.whitelistHeaderPrimary,
.whitelistTimelineMount {
  min-width: 0;
}

.whitelistHeaderTitle {
  font-size: 15px;
}

.whitelistInterviewState {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 4px;
}

.whitelistHeaderTimer {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.topbar,
.statusHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar {
  min-height: 72px;
  padding: 12px 0;
}

.portalTopbar {
  min-height: 82px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(18, 22, 29, 0.72);
  box-shadow: var(--shadow);
}

.portalBrand {
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.portalBrand .brandLogo {
  width: 46px;
  height: 46px;
}

.portalBrand h1 {
  font-size: 24px;
}

.portalBrand p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.portalNotice {
  margin: -10px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 92, 87, 0.38);
  border-radius: var(--radius);
  color: #ffd7d5;
  background: rgba(255, 92, 87, 0.1);
}

.profileMenu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.profileUserName {
  max-width: 220px;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profileButton {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-strong);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.profileButton:hover,
.profileButton[aria-expanded="true"] {
  border-color: rgba(35, 209, 139, 0.55);
  box-shadow:
    0 0 0 4px rgba(35, 209, 139, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.32);
}

.profileButton:hover {
  transform: translateY(-1px);
}

.profileButton img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profileFallback {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8dffd0;
  background: linear-gradient(
    135deg,
    rgba(35, 209, 139, 0.22),
    rgba(255, 61, 113, 0.16)
  );
  font-size: 14px;
  font-weight: 900;
}

.profileFallback[hidden],
.profileButton img[hidden] {
  display: none;
}

.profileDropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 132px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(18, 22, 29, 0.98);
  box-shadow: var(--shadow);
}

.profileDropdown[hidden] {
  display: none;
}

.profileLogout {
  gap: 8px;
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 92, 87, 0.48);
  color: #ffd7d5;
  background: rgba(255, 92, 87, 0.14);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.profileLogout svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

#sessionState[hidden] {
  display: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--ink-strong);
  font-size: 28px;
  line-height: 1.12;
}

h2 {
  color: var(--ink-strong);
  font-size: 17px;
  line-height: 1.2;
}

.panel {
  overflow: hidden;
  background: rgba(18, 22, 29, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pager {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tableControls {
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.42);
}

.tableControls .pager {
  justify-content: center;
}

body[data-admin-page="resources"] .tableControls {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.resourceRefreshButton {
  min-width: 112px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.statusToolbar {
  flex-wrap: nowrap;
}

.statusToolbar select {
  width: 132px;
}

.statusSnapshotTime {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.toolbar input[type="search"] {
  width: min(300px, 100%);
}

body[data-admin-page^="police-"] .panelHead {
  align-items: flex-start;
}

body[data-admin-page^="police-"] .toolbar {
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

body[data-admin-page^="police-"] .toolbar input[type="search"] {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 360px;
}

body[data-admin-page^="police-"] .toolbar select {
  flex: 0 0 154px;
  width: 154px;
}

body[data-admin-page^="police-"] .toolbar #policeStatus {
  flex-basis: 146px;
  width: 146px;
}

.otomatToolbar {
  flex: 1;
  justify-content: space-between;
}

.otomatToolbar #openOtomatTypes {
  order: -1;
  margin-right: auto;
}

.otomatToolbar #otomatsSearch {
  width: min(300px, 38vw);
}

.otomatToolbar #otomatsCustomFilter {
  width: 132px;
}

.otomatToolbar #addOtomat {
  margin-left: 2px;
}

.listModalActions {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.pager select {
  width: 88px;
}

.pageJump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pageJump input {
  width: 74px;
  min-height: 38px;
  padding: 0 9px;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #161b23;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:hover {
  color: var(--ink-strong);
  border-color: rgba(35, 209, 139, 0.42);
  background: #1a222b;
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
  border-color: var(--primary);
}

.button.primary {
  border-color: rgba(35, 209, 139, 0.72);
  background: var(--primary);
  color: #07100c;
}

.button.primary:hover {
  background: #39e59d;
  border-color: #39e59d;
}

.button.danger {
  border-color: rgba(255, 92, 87, 0.4);
  color: #ffd5d3;
  background: var(--danger-soft);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.buttonGroup {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tableWrap {
  position: relative;
  overflow-x: auto;
}

.pageLoadingBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgba(35, 209, 139, 0.12);
  box-shadow: 0 0 18px rgba(35, 209, 139, 0.25);
}

.pageLoadingBar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  min-width: 120px;
  background: linear-gradient(
    90deg,
    transparent,
    #8dffd0 35%,
    #58a6ff 70%,
    transparent
  );
  animation: tableLoadingSweep 800ms ease-in-out infinite;
}

.tableWrap.isLoading tbody {
  opacity: 0.55;
  transition: opacity 160ms ease;
}

body.list-loading .pageLoadingBar {
  display: block;
}

@keyframes tableLoadingSweep {
  from {
    transform: translateX(-105%);
  }

  to {
    transform: translateX(265%);
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #10151c;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  opacity: 0.42;
  transform: translateY(1px);
}

th.sortable:hover,
th.sortAsc,
th.sortDesc {
  color: var(--ink-strong);
}

th.sortAsc::after {
  border-top: 0;
  border-bottom: 5px solid var(--primary);
  opacity: 1;
}

th.sortDesc::after {
  border-top-color: var(--primary);
  opacity: 1;
}

td {
  color: #d9e2ea;
}

.mutedText {
  color: var(--muted);
}

.identityCell {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 240px;
}

.identityAvatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #0c1118;
  color: #8dffd0;
  font-size: 11px;
  font-weight: 900;
}

.identityAvatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identityText {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.identityText strong,
.identityText a,
.identityText small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identityText strong,
.identityLink {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.identityLink {
  text-decoration: none;
  transition:
    color 140ms ease,
    text-shadow 140ms ease;
}

.identityLink:hover,
.identityLink:focus-visible {
  color: #8dffd0;
  text-shadow: 0 0 12px rgba(35, 209, 139, 0.35);
  outline: 0;
}

.identityText small {
  color: var(--muted);
  font-size: 11px;
}

body[data-admin-page="players"] table {
  min-width: 1320px;
}

body[data-admin-page="logs"] table {
  min-width: 1380px;
}

body[data-admin-page="vehicles"] table {
  min-width: 980px;
}

body[data-admin-page="shops"] table {
  min-width: 1120px;
}

.mapLayout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mapSidePanel {
  overflow: hidden;
}

.mapFilters {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.mapStats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mapStats strong {
  color: var(--ink-strong);
}

.mapPlayerList {
  display: grid;
  max-height: calc(100vh - 310px);
  overflow: auto;
}

.mapPlayerRow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mapPlayerRow:hover,
.mapPlayerRow:focus-visible {
  background: rgba(35, 209, 139, 0.07);
  outline: 0;
}

.mapPlayerId {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(35, 209, 139, 0.28);
  border-radius: 8px;
  background: rgba(35, 209, 139, 0.08);
  color: #8dffd0;
  font-weight: 900;
}

.mapPlayerInfo {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mapPlayerInfo strong,
.mapPlayerInfo small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapPlayerInfo small {
  color: var(--muted);
  font-size: 12px;
}

.mapHealth {
  color: #8dffd0;
  font-weight: 900;
  text-align: right;
}

.mapPanel {
  overflow: hidden;
}

.mapPanelTools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mapViewport {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  border-radius: var(--radius);
  background: #05080d;
  cursor: crosshair;
}

.mapCanvas {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.mapImage {
  display: block;
  width: 100%;
  height: auto;
  min-height: 720px;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.76) contrast(1.08) brightness(0.62);
  user-select: none;
  -webkit-user-drag: none;
}

.mapMarkers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.mapMarker {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #26f0a0;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  filter: drop-shadow(0 0 12px rgba(35, 209, 139, 0.6));
}

.mapMarkerDot,
.mapMarkerRing {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.mapMarkerDot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(7, 16, 12, 0.9);
  background: currentColor;
  color: #04130b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.mapMarkerRing {
  inset: -3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.mapMarkerLabel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 5px 9px;
  border: 1px solid rgba(77, 94, 121, 0.7);
  border-radius: 999px;
  background: rgba(6, 10, 16, 0.94);
  color: #eef6ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}

.mapMarker.vehicle {
  color: #58a6ff;
  filter: drop-shadow(0 0 12px rgba(88, 166, 255, 0.65));
}

.mapMarker.dead {
  color: #ff5c57;
  filter: drop-shadow(0 0 12px rgba(255, 92, 87, 0.65));
}

.mapMarker:hover,
.mapMarker:focus-visible {
  color: #fff;
  outline: 0;
  transform: translate(-50%, -50%);
}

.mapMarker:hover .mapMarkerLabel,
.mapMarker:focus-visible .mapMarkerLabel {
  opacity: 1;
}

.mapCoords {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.82);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.mapZoomLevel {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.82);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

tbody tr {
  background: transparent;
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

tbody tr.clickableRow {
  cursor: pointer;
}

tbody tr.clickableRow:focus-visible {
  outline: 0;
  box-shadow: inset var(--focus);
}

tbody tr.customVehicleRow {
  background: linear-gradient(
    90deg,
    rgba(255, 210, 92, 0.12),
    rgba(255, 255, 255, 0.018) 38%,
    transparent
  );
  box-shadow: inset 3px 0 0 rgba(255, 210, 92, 0.82);
}

tbody tr.customVehicleRow:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 210, 92, 0.18),
    rgba(255, 255, 255, 0.04) 42%,
    transparent
  );
}

body[data-admin-page="resources"] .tableWrap {
  overflow-x: hidden;
}

body[data-admin-page="resources"] table {
  table-layout: fixed;
}

body[data-admin-page="resources"] th,
body[data-admin-page="resources"] td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
  vertical-align: top;
}

body[data-admin-page="resources"] th:nth-child(1),
body[data-admin-page="resources"] td:nth-child(1) {
  width: 18%;
}

body[data-admin-page="resources"] th:nth-child(2),
body[data-admin-page="resources"] td:nth-child(2) {
  width: 92px;
}

body[data-admin-page="resources"] th:nth-child(3),
body[data-admin-page="resources"] td:nth-child(3) {
  width: 18%;
}

body[data-admin-page="resources"] th:nth-child(4),
body[data-admin-page="resources"] td:nth-child(4) {
  width: 92px;
}

body[data-admin-page="resources"] th:nth-child(6),
body[data-admin-page="resources"] td:nth-child(6) {
  width: 190px;
}

body[data-admin-page="resources"] td:nth-child(6) .buttonGroup,
body[data-admin-page="resources"] td:nth-child(6) {
  align-items: flex-start;
}

.resourceActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.resourceActionButton {
  border-radius: 8px;
}

.resourceActionButton svg,
.button.iconButton svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.resourceActionButton.start svg,
.resourceActionButton.stop svg {
  fill: currentColor;
}

.resourceActionButton.start {
  color: #8dffd0;
  border-color: rgba(35, 209, 139, 0.42);
  background: rgba(35, 209, 139, 0.09);
}

.resourceActionButton.stop {
  color: #ff8f8b;
  border-color: rgba(255, 92, 87, 0.42);
  background: rgba(255, 92, 87, 0.1);
}

.resourceActionButton.restart {
  color: #8bbcff;
  border-color: rgba(88, 166, 255, 0.42);
  background: rgba(88, 166, 255, 0.1);
}

.filterRow th {
  padding: 8px;
  background: #0c1118;
}

.filterRow input,
.filterRow select {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
}

.dateRange {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #151b22;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
}

.badge.ok {
  border-color: rgba(35, 209, 139, 0.32);
  background: var(--ok-soft);
  color: #82ffc4;
}

.badge.warn {
  border-color: rgba(255, 176, 32, 0.34);
  background: var(--warn-soft);
  color: #ffd48a;
}

.badge.danger {
  border-color: rgba(255, 92, 87, 0.34);
  background: var(--danger-soft);
  color: #ffaaa7;
}

.itemThumb,
.thumbPlaceholder,
.vehicleThumbFrame {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
}

.itemThumb {
  object-fit: contain;
  padding: 4px;
  background: #0b0f14;
  border: 1px solid var(--line);
}

.thumbPlaceholder {
  border: 1px dashed var(--line-strong);
  background: #0b0f14;
}

.vehicleThumbFrame {
  position: relative;
  width: 82px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0f14;
}

.vehicleThumbFrame.isCustom,
.vehicleModalPreview.isCustom {
  border-color: rgba(255, 210, 92, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 92, 0.16),
    0 0 18px rgba(255, 210, 92, 0.13);
}

.vehicleThumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.vehicleThumbFrame.isMissing {
  border-style: dashed;
}

.vehicleThumbFrame.isMissing .vehicleThumb {
  display: none;
}

.vehicleModalPreview {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(100% - 32px);
  min-width: 0;
  aspect-ratio: 16 / 7;
  min-height: 0;
  max-height: 220px;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.04),
    rgba(11, 15, 20, 0.96) 64%
  );
}

.vehicleModalPreview img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  padding: 10px;
}

.vehicleModalPreview.isMissing {
  min-height: 110px;
  border-style: dashed;
  background: #0b0f14;
}

.vehicleModalPreview.isMissing img {
  display: none;
}

.itemModalPreview {
  display: grid;
  place-items: center;
  width: calc(100% - 32px);
  min-width: 0;
  min-height: 120px;
  max-height: 160px;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.045),
    rgba(11, 15, 20, 0.96) 68%
  );
}

.itemModalPreview img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 100%;
  max-height: 140px;
  object-fit: contain;
  padding: 12px;
}

.itemModalPreview.isMissing {
  min-height: 96px;
  border-style: dashed;
  background: #0b0f14;
}

.itemModalPreview.isMissing img {
  display: none;
}

.formGrid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(140px, 180px) 1fr;
  gap: 14px;
  padding: 16px;
}

.modalForm {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px 16px;
}

.modalActions.splitActions {
  justify-content: flex-start;
}

.grow {
  flex: 1;
}

.formGrid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--ink);
  background: #0c1117;
  font: inherit;
}

select {
  color: var(--ink);
}

textarea {
  min-height: 132px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

input::placeholder,
textarea::placeholder {
  color: #697789;
}

.inlineForm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.inlineForm input,
.inlineForm select {
  width: min(240px, 100%);
}

.inlineForm select[multiple] {
  min-height: 108px;
}

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 320px;
}

.list {
  border-right: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.014);
}

.list button {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.list button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.list button small {
  color: var(--muted);
}

.list button.locked small {
  color: var(--warn);
}

#groupsList .groupListButton {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 3px;
  min-height: 50px;
  padding: 8px 12px;
  text-align: left;
}

#groupsList .groupListButton.active {
  color: var(--ink-strong);
  border-color: rgba(35, 209, 139, 0.48);
  background: rgba(35, 209, 139, 0.08);
}

.groupListName,
.groupListMeta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groupListName {
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 900;
}

.groupListMeta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.groupEditor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.permissionGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
}

.permissionGrid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 10px 0 0;
}

.checkRow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f141b;
  color: var(--ink);
}

.checkRow input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.checkRow.compact {
  min-height: 54px;
}

.permissionSummary {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 20, 27, 0.96);
  backdrop-filter: blur(12px);
}

.permissionSummary div {
  display: grid;
  gap: 3px;
}

.permissionSummaryActions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.permissionActionButton {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
}

.permissionActionButton[data-permission-action="save"] {
  border-color: rgba(35, 209, 139, 0.72);
  color: #07100c;
  background: var(--primary);
}

.permissionActionButton[data-permission-action="save"]:hover {
  background: #39e59d;
  border-color: #39e59d;
}

.permissionActionButton[data-permission-action="clear-all"] {
  color: #ffd5d3;
  border-color: rgba(255, 92, 87, 0.4);
  background: var(--danger-soft);
}

.permissionActionButton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.permissionSummary strong {
  color: var(--ink-strong);
}

.permissionSummary span,
.permissionSection small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.permissionSections {
  display: grid;
  gap: 12px;
}

.permissionSection {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 20, 27, 0.7);
}

.permissionSection summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

.permissionSection summary::-webkit-details-marker {
  display: none;
}

.permissionSection summary span:first-child {
  display: grid;
  gap: 2px;
}

.permissionSection summary strong {
  color: var(--ink-strong);
}

.permissionSectionCount {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(35, 209, 139, 0.28);
  border-radius: 999px;
  background: var(--primary-soft);
  color: #8dffd0;
  font-size: 12px;
  font-weight: 900;
}

.permissionSectionTools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.permissionSectionTools .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.permissionCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.permissionCard {
  align-items: flex-start;
  min-height: 92px;
}

.permissionCard.isSelected {
  border-color: rgba(35, 209, 139, 0.48);
  background: rgba(35, 209, 139, 0.08);
}

.permissionText {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.permissionText strong,
.permissionText small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.permissionText strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.permissionText small {
  color: var(--muted-strong);
  line-height: 1.35;
  white-space: normal;
}

.permissionMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permissionMeta em {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.riskBadge.risk-read,
.riskBadge.risk-low {
  border-color: rgba(35, 209, 139, 0.28);
  color: #8dffd0;
}

.riskBadge.risk-medium {
  border-color: rgba(88, 166, 255, 0.32);
  color: #9ac8ff;
}

.riskBadge.risk-high,
.riskBadge.risk-critical {
  border-color: rgba(255, 176, 32, 0.38);
  color: #ffd083;
}

.publicPage {
  padding-top: 34px;
}

.loginBody {
  min-height: 100vh;
  padding-bottom: 0;
  background: #07080b;
}

.loginBody::before,
.loginBody::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.loginBody::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 8, 0.68), rgba(4, 5, 8, 0.3) 50%, rgba(4, 5, 8, 0.68)),
    linear-gradient(180deg, rgba(5, 6, 9, 0.28), rgba(5, 6, 9, 0.42) 56%, #06070a 100%),
    url("/assets/login-city-bg.png") center / cover no-repeat;
  opacity: 0.88;
}

.loginBody::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(88, 101, 242, 0.15), transparent 26%),
    radial-gradient(circle at 22% 75%, rgba(198, 30, 37, 0.13), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

.loginPage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
}

.loginFxCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.loginScene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.loginScene::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(4, 5, 8, 0.92));
  content: "";
}

.loginCharacter {
  position: absolute;
  bottom: -7vh;
  z-index: 0;
  height: min(79vh, 820px);
  max-height: 900px;
  object-fit: contain;
  opacity: 0.86;
  filter:
    saturate(0.82)
    brightness(0.72)
    drop-shadow(0 30px 48px rgba(0, 0, 0, 0.7));
  pointer-events: auto;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 420ms ease, opacity 420ms ease;
  user-select: none;
}

.loginCharacterFemale {
  left: -1.5vw;
  transform: rotate(-1deg);
  transform-origin: bottom center;
}

.loginCharacterMale {
  right: -1.5vw;
  transform: rotate(1deg);
  transform-origin: bottom center;
}

.loginCharacterFemale:hover {
  opacity: 1;
  filter:
    saturate(0.94)
    brightness(0.82)
    drop-shadow(0 38px 58px rgba(0, 0, 0, 0.78));
  transform: rotate(-1deg) scale(1.045);
}

.loginCharacterMale:hover {
  opacity: 1;
  filter:
    saturate(0.94)
    brightness(0.82)
    drop-shadow(0 38px 58px rgba(0, 0, 0, 0.78));
  transform: rotate(1deg) scale(1.045);
}

.loginAiMark {
  position: fixed;
  top: clamp(22px, 5vh, 54px);
  left: 50%;
  z-index: 3;
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  border: 1px solid rgba(204, 18, 25, 0.28);
  border-radius: 50%;
  color: rgba(242, 63, 69, 0.9);
  background: radial-gradient(circle, rgba(29, 8, 11, 0.9), rgba(7, 8, 11, 0.36) 65%, transparent 68%);
  box-shadow: 0 0 42px rgba(195, 10, 17, 0.16), inset 0 0 24px rgba(198, 13, 20, 0.08);
  transform: translateX(-50%);
}

.loginAiMark svg {
  width: 84px;
  height: 84px;
  overflow: visible;
  fill: rgba(206, 15, 22, 0.18);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  filter: drop-shadow(0 0 8px rgba(230, 31, 38, 0.48));
  transition: transform 260ms ease, filter 260ms ease;
}

.loginAiMark:hover svg {
  filter: drop-shadow(0 0 14px rgba(255, 52, 59, 0.78));
  transform: scale(1.08);
}

.loginAiMessage {
  position: absolute;
  top: calc(100% + 25px);
  left: 50%;
  width: min(510px, 82vw);
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid rgba(225, 27, 34, 0.3);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, rgba(28, 9, 12, 0.91), rgba(9, 11, 15, 0.9));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42), 0 0 30px rgba(205, 13, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -7px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.loginAiMessage::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(225, 27, 34, 0.3);
  border-left: 1px solid rgba(225, 27, 34, 0.3);
  background: rgba(20, 9, 12, 0.92);
  content: "";
  transform: translate(-50%, 5px) rotate(45deg);
}

.loginAiMessage::after {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: #f02a31;
  box-shadow: 0 0 7px rgba(240, 42, 49, 0.7);
  content: "";
  animation: loginTypingCursor 760ms steps(1) infinite;
}

.loginAiMark.isSpeaking .loginAiMessage {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.loginAiOrbit {
  position: absolute;
  border: 1px solid rgba(221, 28, 35, 0.22);
  border-radius: 50%;
}

.loginAiOrbit::after {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e31b23;
  box-shadow: 0 0 10px #e31b23;
  content: "";
}

.loginAiOrbitOuter {
  inset: -18px;
  animation: loginOrbit 11s linear infinite;
}

.loginAiOrbitInner {
  inset: 10px;
  border-style: dashed;
  animation: loginOrbit 8s linear infinite reverse;
}

.loginPanel {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 35%),
    rgba(13, 16, 22, 0.92);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
}

.loginPanel::before {
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 28, 35, 0.72), rgba(158, 167, 255, 0.78), transparent);
  content: "";
}

.loginBrand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.loginLogoFrame {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(3, 4, 7, 0.8));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.loginLogoFrame .loginLogo {
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.loginBrandName {
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.loginBrandName strong {
  color: #fff;
  font-weight: 800;
}

.loginContent {
  padding: clamp(32px, 7vw, 48px);
}

.loginKicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #aeb5ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.loginKicker::before {
  width: 18px;
  height: 1px;
  background: #8992ff;
  content: "";
  box-shadow: 0 0 12px rgba(137, 146, 255, 0.8);
}

.loginPanel h1 {
  max-width: 390px;
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.loginPanel p {
  max-width: 400px;
  margin: 0 0 28px;
  color: #919bab;
  font-size: 15px;
  line-height: 1.65;
}

.loginAction {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #79070c, #c40c13 42%, #e11a21 64%, #94080e);
  box-shadow:
    0 16px 38px rgba(190, 10, 17, 0.28),
    0 0 24px rgba(209, 12, 20, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.loginAction::before {
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -42%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  content: "";
  filter: blur(1px);
  transform: skewX(-20deg);
  animation: loginButtonFlare 3.8s ease-in-out infinite;
}

.loginAction > * {
  position: relative;
  z-index: 1;
}

.loginAction:hover {
  box-shadow:
    0 22px 48px rgba(204, 12, 20, 0.42),
    0 0 34px rgba(229, 22, 30, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.22);
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.loginAction:focus-visible {
  outline: 3px solid rgba(224, 29, 36, 0.34);
  outline-offset: 3px;
}

.loginDiscordIcon {
  width: 24px;
  height: 24px;
}

.loginArrow {
  width: 20px;
  height: 20px;
  opacity: 0.72;
  transition: transform 160ms ease;
}

.loginAction:hover .loginArrow {
  transform: translateX(3px);
}

.loginTrust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
  color: #687384;
  font-size: 11px;
  font-weight: 650;
}

.loginTrust svg {
  width: 14px;
  height: 14px;
  color: #788397;
}

.loginFooterMark {
  position: fixed;
  bottom: clamp(16px, 3vh, 32px);
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.24em;
  text-decoration: none;
  perspective: 700px;
  cursor: pointer;
  transform: translateX(-50%);
}

.loginFooterLogo {
  position: relative;
  display: grid;
  width: 144px;
  height: 144px;
  place-items: center;
  border: 1px solid rgba(215, 20, 27, 0.14);
  border-radius: 40px;
  background: rgba(7, 8, 11, 0.46);
  box-shadow: 0 0 40px rgba(207, 12, 19, 0.12);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, filter, box-shadow;
}

.loginFooterLogo::before {
  position: absolute;
  inset: -30% auto -30% -65%;
  z-index: 2;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  opacity: 0;
  filter: blur(2px);
  transform: skewX(-18deg);
}

.loginFooterLogo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  opacity: 0.62;
  filter: drop-shadow(0 0 12px rgba(211, 10, 17, 0.24));
}

.loginFooterMark:hover .loginFooterLogo,
.loginFooterMark:focus-visible .loginFooterLogo {
  animation: loginFooterTurn 1.05s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.loginFooterMark:hover .loginFooterLogo::before,
.loginFooterMark:focus-visible .loginFooterLogo::before {
  animation: loginFooterShine 1.05s ease-in-out;
}

.loginFooterMark:hover,
.loginFooterMark:focus-visible {
  color: rgba(255, 255, 255, 0.62);
  outline: none;
  text-shadow: 0 0 18px rgba(228, 29, 36, 0.46);
}

@keyframes loginOrbit {
  to { transform: rotate(360deg); }
}

@keyframes loginTypingCursor {
  50% { opacity: 0; }
}

@keyframes loginButtonFlare {
  0%, 56% { left: -42%; opacity: 0; }
  62% { opacity: 0.9; }
  82%, 100% { left: 118%; opacity: 0; }
}

@keyframes loginFooterTurn {
  0% {
    box-shadow: 0 0 40px rgba(207, 12, 19, 0.12);
    filter: brightness(1);
    transform: rotateY(0deg) scale(1);
  }
  45% {
    box-shadow: 0 0 72px rgba(231, 22, 30, 0.46), 0 0 24px rgba(255, 255, 255, 0.16);
    filter: brightness(1.34);
    transform: rotateY(180deg) scale(1.08);
  }
  100% {
    box-shadow: 0 0 48px rgba(222, 17, 24, 0.25);
    filter: brightness(1.08);
    transform: rotateY(360deg) scale(1);
  }
}

@keyframes loginFooterShine {
  0%, 22% { left: -65%; opacity: 0; }
  38% { opacity: 0.9; }
  76%, 100% { left: 128%; opacity: 0; }
}

@media (max-width: 540px) {
  .loginPage {
    padding: 14px;
  }

  .loginAiMark,
  .loginFooterMark {
    display: none;
  }

  .loginPanel {
    border-radius: 20px;
  }

  .loginBrand {
    padding: 20px;
  }

  .loginContent {
    padding: 32px 20px 26px;
  }

  .loginPanel h1 {
    font-size: 36px;
  }
}

@media (max-width: 1120px) {
  .loginCharacter {
    display: none;
  }

  .loginBody::before {
    background-position: center;
  }
}

@media (max-height: 1000px) and (min-width: 541px) {
  .loginAiMark {
    top: 26px;
    width: 100px;
    height: 100px;
  }

  .loginAiMark svg {
    width: 54px;
    height: 54px;
  }

  .loginAiOrbitOuter {
    inset: -13px;
  }

  .loginAiOrbitInner {
    inset: 7px;
  }

  .loginAiOrbit::after {
    top: -4px;
    width: 8px;
    height: 8px;
  }

  .loginAiMessage {
    top: calc(100% + 14px);
    width: min(420px, 70vw);
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .loginFooterMark {
    bottom: 20px;
    gap: 6px;
    font-size: 10px;
  }

  .loginFooterLogo {
    width: 84px;
    height: 84px;
    border-radius: 23px;
  }

  .loginFooterLogo img {
    width: 64px;
    height: 64px;
  }
}

@media (max-height: 820px) and (min-width: 541px) {
  .loginAiMark {
    top: 18px;
    width: 68px;
    height: 68px;
  }

  .loginAiMark svg {
    width: 38px;
    height: 38px;
  }

  .loginAiOrbitOuter {
    inset: -8px;
  }

  .loginAiOrbitInner {
    inset: 5px;
  }

  .loginAiOrbit::after {
    top: -2px;
    width: 5px;
    height: 5px;
  }

  .loginAiMessage {
    top: 50%;
    left: calc(100% + 18px);
    width: min(330px, 38vw);
    min-height: 32px;
    padding: 7px 11px;
    font-size: 11px;
    text-align: left;
    transform: translate(0, calc(-50% - 7px));
  }

  .loginAiMessage::before {
    top: 50%;
    right: 100%;
    bottom: auto;
    left: auto;
    transform: translate(5px, -50%) rotate(-45deg);
  }

  .loginAiMark.isSpeaking .loginAiMessage {
    transform: translate(0, -50%);
  }

  .loginFooterMark {
    bottom: 17px;
    gap: 4px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .loginFooterLogo {
    width: 60px;
    height: 60px;
    border-radius: 17px;
  }

  .loginFooterLogo img {
    width: 45px;
    height: 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loginAction,
  .loginArrow,
  .loginCharacter,
  .loginAiMark svg {
    transition: none;
  }

  .loginAction::before,
  .loginAiOrbit,
  .loginAiMessage::after,
  .loginFooterMark:hover .loginFooterLogo,
  .loginFooterMark:focus-visible .loginFooterLogo,
  .loginFooterMark:hover .loginFooterLogo::before,
  .loginFooterMark:focus-visible .loginFooterLogo::before {
    animation: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(35, 209, 139, 0.75);
}

.statusHero {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #12161d;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.statusHero h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.metricBand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metricBand div,
.characterCard {
  background: rgba(18, 22, 29, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

.metricBand span,
.characterCard span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metricBand strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-strong);
  font-size: 34px;
}

.statusMetricGrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.statusMetricCard {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 29, 0.92);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
  grid-column: span 3;
}

.statusEnvironmentHeading {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  margin-top: 2px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 29, 0.72);
}

.statusEnvironmentHeading strong {
  color: var(--ink-strong);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statusEnvironmentHeading span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.environmentStorageCard {
  align-content: start;
}

.environmentStorageGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.environmentStorageMetric {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 8px;
  border-left: 2px solid rgba(88, 166, 255, 0.62);
}

.environmentStorageMetric + .environmentStorageMetric {
  border-left-color: rgba(35, 209, 139, 0.62);
}

.environmentStorageMetric b,
.environmentStorageMetric small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.statusProcessCard {
  align-content: start;
}

.statusProcessUsage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.statusProcessUsage > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 5px;
  min-width: 0;
  padding-left: 8px;
  border-left: 2px solid rgba(88, 166, 255, 0.62);
}

.statusProcessUsage > div + div {
  border-left-color: rgba(35, 209, 139, 0.62);
}

.statusProcessUsage span {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.statusProcessUsage strong {
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.statusProcessUsage .statusMiniChart {
  grid-column: 1 / -1;
  width: 100%;
  height: 22px;
  margin-top: 2px;
}

.statusProcessOffline {
  font-size: 23px;
}

.environmentStorageMetric strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.environmentStorageMetric small {
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

.statusMetricCard:nth-child(-n + 6) {
  grid-column: span 2;
  min-height: 98px;
  padding: 12px;
}

.statusMetricCard:nth-child(-n + 6) strong {
  font-size: 23px;
}

.statusMetricCard:nth-child(-n + 6) .statusMiniChart {
  height: 34px;
}

.statusMetricCard:nth-child(-n + 6) small {
  font-size: 11px;
}

.statusMetricCard.isInteractive {
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.statusMetricCard.isInteractive::after {
  content: "";
  position: absolute;
  inset: -45% 40% 35% -20%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(35, 209, 139, 0.16),
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.statusMetricCard.isInteractive:hover,
.statusMetricCard.isInteractive:focus-visible {
  border-color: rgba(35, 209, 139, 0.72);
  background: rgba(20, 27, 33, 0.98);
  box-shadow:
    0 0 0 1px rgba(35, 209, 139, 0.16),
    0 0 28px rgba(35, 209, 139, 0.2),
    0 20px 52px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.statusMetricCard.isInteractive:hover::after,
.statusMetricCard.isInteractive:focus-visible::after {
  opacity: 1;
}

.statusMetricCard.isInteractive:active {
  transform: translateY(0);
}

.statusMetricCard span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.statusMetricCard strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusMetricCard small {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusMiniChart {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 42px;
  margin: 1px 0;
  border-bottom: 1px solid rgba(35, 209, 139, 0.12);
}

.statusHardwareCard {
  align-content: start;
  min-height: 134px;
}

.statusHardwareDetails {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.statusHardwareDetails small {
  display: block;
}

.statusHardwareDetails small b {
  color: var(--muted);
  font-weight: 750;
}

.statusDiskCard > strong {
  overflow: visible;
  font-size: 20px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: pre-line;
}

.statusCpuCard {
  grid-column: span 6;
  min-height: 174px;
}

.statusCpuHead {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.statusCpuHead strong {
  flex: 0 0 auto;
}

.statusCpuHead small {
  font-weight: 750;
}

.cpuCoreGrid {
  display: grid;
  grid-template-columns: repeat(8, minmax(48px, 1fr));
  gap: 5px;
  min-width: 0;
  margin-top: 3px;
}

.cpuCoreCell {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 5px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(8, 13, 19, 0.7);
}

.cpuCoreCell span,
.cpuCoreCell strong {
  overflow: visible;
  font-size: 10px;
  line-height: 1;
  text-overflow: clip;
}

.cpuCoreCell strong {
  justify-self: end;
  color: var(--ink-strong);
}

.cpuCoreCell i {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cpuCoreCell i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23d18b, #ffb020);
}

.statusDashboardGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
}

.chartPanel {
  min-width: 0;
}

.statusChart {
  display: block;
  width: 100%;
  height: 240px;
  background: #0c1118;
}

body.hasOpenModal {
  overflow: hidden;
}

.portalModules{display:flex;gap:8px;margin:0 0 18px;padding:7px;border:1px solid var(--line);border-radius:15px;background:rgba(13,19,28,.72)}
.portalModuleTab{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:0;border-radius:10px;color:var(--muted);background:transparent;font:inherit;font-weight:750;cursor:pointer}
.portalModuleTab svg{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portalModuleTab .portalModuleBird{fill:currentColor;stroke:none}
.portalModuleTab.active{color:var(--ink);background:linear-gradient(135deg,rgba(113,82,255,.3),rgba(30,169,181,.18))}
.portalModuleTab small{margin-left:5px;color:#736d82}.portalKicker{margin:0;color:#8f7dff;font-size:11px;font-weight:850;letter-spacing:.14em}
.reportPortalLayout{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(420px,1.7fr);gap:14px;min-height:560px}
.reportPortalList,.reportPortalDetail{border:1px solid var(--line);border-radius:15px;background:#0f151e;overflow:auto}
.reportPortalList{display:grid;align-content:start;gap:7px;padding:10px}.reportPortalItem{padding:13px;border:1px solid transparent;border-radius:11px;color:var(--ink);background:transparent;text-align:left;cursor:pointer}
.reportPortalItem:hover,.reportPortalItem.active{border-color:var(--line-strong);background:#17202d}.reportPortalItem strong,.reportPortalItem span{display:block}.reportPortalItem span{margin-top:5px;color:var(--muted);font-size:12px}
.reportPortalDetail{padding:20px}.reportPortalEmpty{display:grid;height:100%;place-content:center;gap:6px;color:var(--muted);text-align:center}.reportPortalEmpty strong{color:var(--ink);font-size:19px}
.reportDetailHead{display:flex;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.reportDetailHead h3{margin:5px 0}.reportBadge{height:max-content;padding:6px 9px;border:1px solid var(--line-strong);border-radius:99px;color:#b8c3d4;font-size:12px}
.reportMessages{display:grid;gap:9px;max-height:310px;padding:16px 0;overflow:auto}.reportMessage{max-width:76%;padding:11px 13px;border-radius:12px;background:#1a2432;white-space:pre-wrap;overflow-wrap:anywhere}.reportMessage.player{margin-left:auto;background:#28214d}.reportMessage.system{max-width:100%;color:var(--muted);background:transparent;text-align:center}.reportMessage small{display:block;margin-bottom:4px;color:var(--muted)}
.reportComposer,.reportEvidence,.reportCreateForm{display:grid;gap:9px;margin-top:12px}.reportComposer{grid-template-columns:1fr auto}.reportEvidence{grid-template-columns:1fr auto}.reportCreateForm label{display:grid;gap:5px}.reportCreateForm textarea,.reportComposer textarea{resize:vertical}.reportProviders{color:var(--muted);font-size:12px}.reportEvidenceList{display:grid;gap:7px;margin-top:12px}.reportEvidenceItem{display:flex;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--line);border-radius:10px}.reportEvidenceItem a{color:#a996ff}
@media(max-width:850px){.reportPortalLayout{grid-template-columns:1fr}.reportComposer,.reportEvidence{grid-template-columns:1fr}.portalModules{overflow:auto}}

.statusChartModal {
  z-index: 30;
}

.statusChartModalPanel {
  display: flex;
  width: min(1480px, calc(100vw - 28px));
  height: min(1020px, calc(100dvh - 12px));
  max-height: calc(100vh - 12px);
  overflow: hidden;
  flex-direction: column;
}

.statusChartModalPanel > .panelHead {
  flex: 0 0 auto;
  padding: 11px 16px;
}

.statusChartModalBody {
  display: grid;
  flex: 1 1 auto;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.statusModalChartPanel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1118;
}

.statusModalChartHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 22, 29, 0.94);
}

.statusModalChartInfo {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
}

.statusModalChartHead h3 {
  color: var(--ink-strong);
  font-size: 14px;
}

.statusModalChartInfo > span {
  color: var(--muted);
  font-size: 12px;
}

.statusSeriesLegend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 13px;
  min-width: 0;
}

.statusLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.statusLegendItem i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--status-legend-color);
  box-shadow: 0 0 9px
    color-mix(in srgb, var(--status-legend-color) 58%, transparent);
}

.statusModalChartPanel .statusChart {
  height: 330px;
}

.statusModalChartPanel .slowQueryList {
  max-height: 420px;
}

.statusChartModal[data-status-chart-key="db-query"] .statusChartModalBody {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(250px, 0.9fr) minmax(360px, 1.35fr);
  min-height: 0;
}

.statusChartModal[data-status-chart-key="db-query"]
  .statusModalChartPanel:nth-child(3) {
  grid-column: 1 / -1;
}

.statusChartModal[data-status-chart-key="db-query"]
  .statusModalChartPanel
  .statusChart {
  height: 250px;
}

.statusChartModal[data-status-chart-key="db-query"]
  .statusModalChartPanel:nth-child(3),
.statusChartModal[data-status-chart-key="db-query"]
  .statusModalChartPanel:nth-child(3)
  .slowQueryList {
  min-height: 0;
  height: 100%;
  max-height: none;
}

.slowQueryList {
  display: grid;
  max-height: 360px;
  overflow: auto;
}

.slowQueryRow {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.slowQueryRow:first-child {
  border-top: 0;
}

.slowQueryMeta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.slowQueryMeta strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slowQueryMeta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.slowQueryActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.slowQueryCopyButton {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(20, 27, 35, 0.92);
  color: var(--muted-strong);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.slowQueryCopyButton:hover,
.slowQueryCopyButton:focus-visible {
  border-color: rgba(35, 209, 139, 0.72);
  color: var(--primary);
  outline: none;
  box-shadow: 0 0 16px rgba(35, 209, 139, 0.18);
}

.slowQueryCopyButton svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.slowQueryRow code {
  display: block;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.characterGrid {
  display: grid;
  grid-template-columns: repeat(var(--character-count, 1), minmax(220px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-x: auto;
}

.characterCard {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.characterCard:hover {
  border-color: var(--line-strong);
  background: rgba(24, 30, 39, 0.96);
  transform: translateY(-1px);
}

.characterCard:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.characterCard.selected {
  border-color: rgba(35, 209, 139, 0.68);
  background: linear-gradient(135deg, rgba(35, 209, 139, 0.12), rgba(18, 22, 29, 0.96) 48%);
}

.characterPortrait {
  position: relative;
  display: grid !important;
  width: 72px;
  height: 86px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #0b1016;
}

.characterPortrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.characterPortraitFallback {
  color: var(--muted-strong) !important;
  font-size: 24px !important;
  font-weight: 900;
}

.characterCardContent,
.characterCardHeading,
.characterCardMeta {
  display: grid !important;
  min-width: 0;
}

.characterCardContent {
  gap: 8px;
}

.characterCardHeading {
  gap: 3px;
}

.characterCardHeading strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.characterCitizenId {
  color: #8faccc !important;
  font-size: 11px !important;
  letter-spacing: 0.05em;
}

.characterCardMeta {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.characterCardMeta span {
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.characterCardBalance {
  color: var(--muted-strong) !important;
  font-size: 11px !important;
}

.characterDashboardGrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start; }
.characterDashboardGrid .characterDetailSection { display:flex;flex-direction:column;height:440px;min-width:0;overflow:hidden; }
.characterDashboardGrid .characterDetailSectionHead { flex:0 0 auto; }
.characterDashboardGrid .inventoryGrid,.characterDashboardGrid .vehicleGrid,.characterDashboardGrid .characterHouseGrid { flex:1;min-height:0;overflow-y:auto;align-content:start;overscroll-behavior:contain;scrollbar-width:thin; }
.characterDashboardGrid .characterVitals { flex:1;min-height:0;overflow-y:auto; }
.characterDashboardGrid .characterBagImage { flex:0 0 auto; }
.characterDashboardGrid .characterDetailSectionHead { background:linear-gradient(110deg,rgba(8,126,136,.12),transparent); }
.characterVitals { display:grid;grid-template-columns:minmax(100px,38%) minmax(0,1fr);align-items:center;padding:20px;gap:12px; }
.characterBodyScan { position:relative;height:300px;color:#40dbc4;background:currentColor;mask:url("/character-visuals/body/body") center/contain no-repeat;-webkit-mask:url("/character-visuals/body/body") center/contain no-repeat; }
.characterBodyScan::after { content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,#e0fffa,transparent) 0 110%/100% 8% no-repeat;animation:characterBodyScan 2.35s linear infinite; }
.characterVitals.critical .characterBodyScan { color:#efa644; }
.characterVitals.dead .characterBodyScan { color:#ee4051; }
@keyframes characterBodyScan { from { background-position:0 -10%; } to { background-position:0 110%; } }
.characterDashboardGrid .healthGrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:8px; }
.characterDashboardGrid .healthMetric { min-width:0;padding:12px; }
.characterBagImage { display:block;width:70px;height:70px;object-fit:contain;margin:16px auto 4px; }
.characterBagImage[hidden] { display:none; }
.characterDashboardGrid .inventoryGrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px; }
.characterDashboardGrid .inventoryItem { display:flex;justify-content:space-between;min-width:0;gap:12px;padding:12px; }
.characterDashboardGrid .inventoryItem>span { flex:1;min-width:0;width:auto;max-width:none; }
.characterDashboardGrid .inventoryItem>.characterItemImage { position:relative;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;color:var(--muted); }
.characterItemImage img { position:absolute;width:100%;height:100%;object-fit:contain;background:#10161d; }
.characterDashboardGrid .inventoryItem strong { display:block;max-width:none;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip; }
.characterDashboardGrid .inventoryItem b { flex-shrink:0; }
.characterDashboardGrid .vehicleGrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px; }
.characterDashboardGrid .vehicleCard { min-width:0; }
.characterVehicleVisual { position:relative;display:grid;place-items:center;height:120px;margin-bottom:12px;border-radius:10px;background:radial-gradient(ellipse,rgba(8,126,136,.18),transparent);font-size:42px; }
.characterVehicleVisual img { position:absolute;width:100%;height:100%;object-fit:contain;background:#10161d; }
.characterDashboardGrid .vehicleCardHead { flex-wrap:wrap;gap:8px; }
.characterHouseGrid { display:grid;gap:12px;padding:16px; }
.characterHouseCard { display:grid;gap:7px;padding:18px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,rgba(8,126,136,.12),rgba(255,255,255,.025)); }
.characterHouseIcon { font-size:40px;color:#45c6c3; }
.characterHouseCard span,.characterHouseCard small { color:var(--muted-strong); }
@media(max-width:850px) { .characterDashboardGrid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px) { .characterDashboardGrid .inventoryGrid,.characterDashboardGrid .vehicleGrid { grid-template-columns:minmax(0,1fr); }.characterVitals { padding:12px; }.characterBodyScan { height:260px; } }
@media(prefers-reduced-motion:reduce) { .characterBodyScan::after { animation:none; } }
.characterDetail {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

.characterDetail:empty {
  display: none;
}

.characterDetailOverview {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(35, 209, 139, 0.2);
  border-radius: var(--radius);
  background: radial-gradient(circle at 8% 0, rgba(35, 209, 139, 0.1), transparent 38%), #0f141b;
}

.characterDetailTitle {
  align-self: center;
}

.characterDetailEyebrow {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.characterDetailTitle h2 {
  margin: 7px 0 5px;
  font-size: clamp(23px, 3vw, 34px);
}

.characterDetailTitle p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.characterQuickFacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.characterQuickFact {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.characterQuickFact small,
.healthMetric span {
  color: var(--muted);
  font-size: 10px;
}

.characterQuickFact strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.characterDetailSection {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 17, 23, 0.76);
}

.characterDetailSectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.characterDetailSectionHead h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
}

.characterDetailSectionHead span {
  color: var(--muted);
  font-size: 11px;
}

.healthGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.healthMetric {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.healthMetric strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.healthMetric.stable strong { color: var(--ok); }
.healthMetric.critical strong { color: var(--warn); }
.healthMetric.dead strong { color: var(--danger); }

.inventoryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.inventoryItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.inventoryItem > span {
  display: grid;
  min-width: 0;
}

.inventoryItem strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventoryItem small {
  color: var(--muted);
  font-size: 9px;
}

.inventoryItem b {
  color: var(--primary);
  font-size: 12px;
}

.vehicleGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.vehicleCard {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.vehicleCardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.vehicleCardHead strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehiclePlate {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid #637183;
  border-radius: 3px;
  color: #10151b;
  background: #d7dde4;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.vehicleCardDetails {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vehicleCardDetails span {
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
}

.characterEmpty,
.characterDetailError,
.characterDetailLoading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.characterDetailError { color: var(--danger); }

@media (max-width: 900px) {
  .characterDetailOverview { grid-template-columns: 1fr; }
  .healthGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventoryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicleGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .characterGrid { grid-template-columns: repeat(var(--character-count, 1), minmax(260px, 1fr)); }
  .characterQuickFacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .healthGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventoryGrid, .vehicleGrid { grid-template-columns: 1fr; }
}

.whitelistPreview {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.kamilInterviewStage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(35, 209, 139, 0.18);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(
      circle at 82% 32%,
      rgba(35, 209, 139, 0.13),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      rgba(131, 108, 255, 0.07),
      rgba(9, 14, 18, 0.7) 56%,
      rgba(35, 209, 139, 0.045)
    );
}

.kamilInterviewStage::before {
  position: absolute;
  right: -70px;
  bottom: -120px;
  z-index: 0;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(35, 209, 139, 0.14);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(35, 209, 139, 0.11),
    transparent 66%
  );
  content: "";
}

.kamilInterviewStage::after {
  position: absolute;
  top: 42px;
  right: 20px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.025);
  content: "KAMIL";
  font-size: clamp(72px, 10vw, 180px);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.8;
  pointer-events: none;
}

.kamilInterviewCopy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 38px 14px 38px 36px;
}

.kamilCharacter {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  height: 100%;
  min-height: 460px;
  margin: 0;
  pointer-events: none;
}

@media (min-width: 721px) {
  .kamilInterviewStage > .kamilCharacter {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 2;
    width: clamp(420px, 34vw, 760px);
    height: 100%;
    min-height: 0;
  }

  .kamilInterviewStage > .kamilCharacter img {
    inset: auto 0 0 auto;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
  }

  .kamilInterviewStage > .kamilCharacter figcaption {
    right: 18px;
    bottom: 18px;
  }
}

.kamilCharacter::after {
  position: absolute;
  right: 7%;
  bottom: 9px;
  left: 7%;
  z-index: -1;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  filter: blur(12px);
  content: "";
}

.kamilCharacter img {
  position: absolute;
  right: 8px;
  bottom: -3px;
  width: min(100%, 350px);
  height: 455px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.46));
}

.kamilCharacter figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 1px;
  min-width: 138px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(8, 12, 16, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.kamilCharacter figcaption strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.kamilCharacter figcaption span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.whitelistHero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.whitelistHero h2 {
  margin-bottom: 7px;
  font-size: 22px;
}

.aiInterviewHero {
  padding: 4px 2px 2px;
}

.aiAgentAvatar {
  width: 48px;
  height: 48px;
  padding: 0;
  object-fit: cover;
  border-color: rgba(131, 108, 255, 0.56);
  color: #d9d1ff;
  background: linear-gradient(
    135deg,
    rgba(131, 108, 255, 0.42),
    rgba(35, 209, 139, 0.18)
  );
  box-shadow: 0 0 24px rgba(131, 108, 255, 0.2);
}

.aiAgentLabel {
  display: block;
  margin-bottom: 5px;
  color: #b9adff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aiPreviewChat {
  display: grid;
  gap: 10px;
  max-width: 900px;
  padding: 16px;
  border: 1px solid rgba(131, 108, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(131, 108, 255, 0.08),
    rgba(35, 209, 139, 0.035)
  );
}

.aiBubble {
  width: fit-content;
  max-width: 760px;
  padding: 11px 13px;
  border: 1px solid rgba(131, 108, 255, 0.24);
  border-radius: 5px 14px 14px;
  color: #dce3ed;
  background: rgba(28, 26, 49, 0.66);
  font-size: 14px;
  line-height: 1.5;
}

.whitelistHero p,
.whitelistSteps p,
.whitelistFooter p {
  color: var(--muted);
  line-height: 1.55;
}

.whitelistIcon,
.whitelistSteps article > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(35, 209, 139, 0.48);
  border-radius: 50%;
  color: #8dffd0;
  background: var(--primary-soft);
  font-weight: 900;
}

.whitelistSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.whitelistSteps article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.whitelistSteps strong {
  color: var(--ink-strong);
}

.whitelistStatus {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 195, 77, 0.35);
  border-radius: 999px;
  color: #ffe2a4;
  background: rgba(255, 195, 77, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.whitelistStatus[data-status="active"],
.whitelistStatus[data-status="approved"] {
  border-color: rgba(35, 209, 139, 0.4);
  color: #8dffd0;
  background: rgba(35, 209, 139, 0.11);
}

.whitelistStatus[data-status="rejected"],
.whitelistStatus[data-status="timed_out"] {
  border-color: rgba(255, 92, 87, 0.42);
  color: #ffd0ce;
  background: rgba(255, 92, 87, 0.11);
}

.whitelistFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.whitelistFooter p {
  max-width: 620px;
}

.whitelistApp {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 16px;
}

.whitelistApp > .kamilInterviewStage,
.whitelistApp > .whitelistResult {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
}

.whitelistApp > .kamilInterviewStage {
  overflow: hidden;
}

.whitelistPolicyGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.accountLinkStage .kamilInterviewCopy {
  max-width: min(1120px, calc(100% - 300px));
}

.accountLinkCopy {
  align-content: center;
}

.accountLinkSteps {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.accountLinkActions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.accountLinkActions > .button {
  text-decoration: none;
}

.whitelistTurnstile {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(100%, 420px);
  gap: 6px;
}

.whitelistTurnstile:not(.isVisible) {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 420px;
  opacity: 0;
  pointer-events: none;
}

.whitelistTurnstile > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whitelistTurnstileMount {
  min-height: 2px;
}

.whitelistTurnstileStatus {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.whitelistTurnstileStatus[data-status="success"] {
  color: #72e7b9;
}

.whitelistTurnstileStatus[data-status="interactive"] {
  color: #ffe09a;
}

.whitelistTurnstileStatus[data-status="error"] {
  color: #ffaaa6;
}

.whitelistTurnstileRetry {
  width: fit-content;
  min-height: 36px;
  padding: 7px 11px;
  font-size: 11px;
}

.whitelistPolicy {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.whitelistPolicy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-strong);
  font-size: 13px;
}

.whitelistPolicy p,
.whitelistModeNotice {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.whitelistPrimaryAction {
  width: fit-content;
  min-width: 190px;
}

.whitelistModeNotice {
  padding: 10px 12px;
  border: 1px solid rgba(255, 176, 32, 0.26);
  border-radius: var(--radius);
  color: #ffe2a4;
  background: rgba(255, 176, 32, 0.08);
}

.whitelistInterview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 380px);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 209, 139, 0.2);
  border-radius: calc(var(--radius) + 3px);
  background: linear-gradient(
    145deg,
    rgba(131, 108, 255, 0.06),
    rgba(8, 13, 18, 0.82) 55%
  );
}

.interviewMain {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
}

.interviewTimeline {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
}

.interviewTimelineViewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(131, 114, 255, 0.42) transparent;
  scrollbar-width: thin;
}

.interviewTimelineSteps {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: max-content;
  padding: 2px 1px;
}

.interviewTimelineStep {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  width: clamp(102px, 9vw, 136px);
  color: #697386;
}

.interviewTimelineMarker {
  position: relative;
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: #101720;
  font-size: 10px;
  font-weight: 900;
}

.interviewTimelineStepCopy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.interviewTimelineStepCopy strong,
.interviewTimelineStepCopy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interviewTimelineStepCopy strong {
  font-size: 11px;
}

.interviewTimelineStepCopy small {
  color: inherit;
  font-size: 9px;
}

.interviewTimelineStep.completed {
  color: #58e6b1;
}

.interviewTimelineStep.completed .interviewTimelineMarker {
  border-color: rgba(35, 209, 139, 0.56);
  color: #7ff5ca;
  background: rgba(35, 209, 139, 0.13);
}

.interviewTimelineStep.active {
  color: #f0edff;
}

.interviewTimelineStep.active .interviewTimelineMarker {
  border-color: rgba(131, 114, 255, 0.88);
  color: #fff;
  background: rgba(131, 114, 255, 0.24);
  box-shadow: 0 0 18px rgba(131, 114, 255, 0.32);
}

.interviewTimelineConnector {
  position: relative;
  flex: 1 0 22px;
  min-width: 22px;
  max-width: 58px;
  height: 2px;
  margin: 0 8px 0 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.interviewTimelineStep.completed + .interviewTimelineConnector {
  background: linear-gradient(90deg, #23d18b, rgba(131, 114, 255, 0.72));
}

.interviewTimeline.isProcessing
  .interviewTimelineStep.active
  + .interviewTimelineConnector::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(159, 146, 255, 0.95),
    transparent
  );
  animation: interviewTimelineLoading 900ms ease-in-out infinite;
}

.interviewTimeline.isProcessing
  .interviewTimelineStep.active
  .interviewTimelineMarker::after {
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-top-color: #8d7dff;
  border-radius: 50%;
  content: "";
  animation: interviewTimelineSpin 850ms linear infinite;
}

@keyframes interviewTimelineLoading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes interviewTimelineSpin {
  to {
    transform: rotate(360deg);
  }
}

.interviewProgress {
  display: grid;
  gap: 9px;
}

.interviewProgressCopy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.interviewProgressCopy strong {
  color: var(--ink-strong);
}

.interviewProgressCopy span {
  color: var(--muted);
  font-size: 12px;
}

.interviewProgressTrack {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.interviewProgressFill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23d18b, #8372ff);
  box-shadow: 0 0 18px rgba(35, 209, 139, 0.32);
  transition: width 260ms ease;
}

.interviewMetrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.interviewMetric {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.interviewMetric span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.interviewMetric strong {
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.scenarioBrief {
  display: grid;
  gap: 2px;
  padding: 7px 11px;
  border: 0;
  border-left: 3px solid #ffbe3d;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #ffedbd;
  background: linear-gradient(
    105deg,
    rgba(255, 176, 32, 0.12),
    rgba(255, 176, 32, 0.025)
  );
}

.scenarioBrief strong {
  color: #ffd46f;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scenarioBrief p {
  font-size: 12px;
  line-height: 1.35;
}

.scenarioBrief small {
  color: #d7c798;
  font-size: 10px;
}

.scenarioBrief .scenarioNpcRole {
  color: #ffd46f;
  font-weight: 750;
}

.interviewChat {
  display: flex;
  min-height: 100px;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 7, 11, 0.46);
}

.interviewMessage {
  display: flex;
  align-items: flex-end;
  align-self: flex-start;
  gap: 8px;
  max-width: min(78%, 720px);
  transform-origin: left bottom;
}

.interviewMessage.isNew {
  animation: interviewBubbleIn 190ms cubic-bezier(0.2, 0.9, 0.25, 1.18) both;
}

.interviewMessage.player {
  align-self: flex-end;
  transform-origin: right bottom;
}

.interviewMessageBody {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.interviewMessageAvatar {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(131, 108, 255, 0.42);
  border-radius: 50%;
  background: rgba(25, 21, 44, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.interviewMessage.player .interviewMessageAvatar {
  border-color: rgba(35, 209, 139, 0.42);
}

.interviewMessageAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interviewMessageAvatar.fallback {
  color: #8dffd0;
  font-size: 12px;
  font-weight: 900;
}

.interviewMessageAuthor {
  padding: 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.interviewMessage.player .interviewMessageAuthor {
  text-align: right;
}

.interviewMessage p {
  padding: 12px 14px;
  border: 1px solid rgba(131, 108, 255, 0.25);
  border-radius: 5px 15px 15px;
  color: #e4e7f5;
  background: rgba(38, 32, 67, 0.7);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.roleplayLine.me {
  color: #c2a2da;
  font-weight: 750;
}

.roleplayLine.do {
  color: #84cbad;
  font-weight: 750;
}

.interviewMessage.player p {
  border-color: rgba(35, 209, 139, 0.25);
  border-radius: 15px 5px 15px 15px;
  background: rgba(21, 88, 65, 0.42);
}

.interviewMessage p.isTyping::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: interviewTypingCursor 620ms steps(1) infinite;
}

.interviewTypingIndicator {
  flex: 0 0 auto;
}

.interviewTypingIndicator[hidden] {
  display: none;
}

.interviewTypingDots {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 58px;
  min-height: 39px;
  padding: 11px 14px;
  border: 1px solid rgba(131, 108, 255, 0.25);
  border-radius: 5px 15px 15px;
  background: rgba(38, 32, 67, 0.7);
}

.interviewTypingIndicator.player .interviewTypingDots {
  justify-content: flex-end;
  border-color: rgba(35, 209, 139, 0.25);
  border-radius: 15px 5px 15px 15px;
  background: rgba(21, 88, 65, 0.42);
}

.interviewTypingDots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9b0ff;
  animation: interviewTypingDot 1.05s ease-in-out infinite;
}

.interviewTypingIndicator.player .interviewTypingDots span {
  background: #74e8bb;
}

.interviewTypingDots span:nth-child(2) {
  animation-delay: 120ms;
}

.interviewTypingDots span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes interviewTypingDot {
  0%,
  60%,
  100% {
    opacity: 0.38;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes interviewBubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes interviewTypingCursor {
  50% {
    opacity: 0;
  }
}

.interviewComposer {
  position: relative;
  display: grid;
  gap: 10px;
  padding-top: 5px;
}

.interviewTriesBadge {
  position: absolute;
  top: 5px;
  right: 12px;
  z-index: 4;
  padding: 3px 8px;
  border: 1px solid rgba(131, 114, 255, 0.34);
  border-radius: 999px;
  color: #c9c2ff;
  background: #101720;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  transform: translateY(-50%);
  white-space: nowrap;
}

.interviewQuickChoices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.interviewQuickChoice {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid rgba(45, 211, 151, 0.34);
  border-radius: 999px;
  color: #baf5df;
  background: rgba(45, 211, 151, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.interviewQuickChoice:hover,
.interviewQuickChoice.isSelected {
  border-color: rgba(45, 211, 151, 0.86);
  color: #effff9;
  background: rgba(45, 211, 151, 0.2);
}

.interviewQuickChoice:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.interviewEmoteTools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.interviewEmoteTools > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.interviewEmoteButton {
  min-height: 29px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 190, 61, 0.38);
  border-radius: 999px;
  color: #ffd46f;
  background: rgba(255, 176, 32, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.interviewEmoteButton.me {
  border-color: rgba(194, 162, 218, 0.52);
  color: #c2a2da;
  background: rgba(194, 162, 218, 0.1);
}

.interviewEmoteButton.do {
  border-color: rgba(132, 203, 173, 0.52);
  color: #84cbad;
  background: rgba(132, 203, 173, 0.1);
}

.interviewEmoteButton.me:hover {
  border-color: #c2a2da;
  background: rgba(194, 162, 218, 0.18);
}

.interviewEmoteButton.do:hover {
  border-color: #84cbad;
  background: rgba(132, 203, 173, 0.18);
}

.interviewEmoteButton:hover {
  border-color: rgba(255, 190, 61, 0.72);
  background: rgba(255, 176, 32, 0.15);
}

.interviewEmoteButton:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.interviewSceneActionList {
  display: grid;
  gap: 7px;
}

.interviewSceneAction {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #101720;
}

.interviewSceneAction.me {
  border-color: rgba(194, 162, 218, 0.46);
}

.interviewSceneAction.do {
  border-color: rgba(132, 203, 173, 0.46);
}

.interviewSceneActionCommand {
  font-weight: 750;
}

.interviewSceneAction.me .interviewSceneActionCommand {
  color: #c2a2da;
}

.interviewSceneAction.do .interviewSceneActionCommand {
  color: #84cbad;
}

.interviewSceneActionInput {
  width: 100%;
  min-width: 0;
  padding: 5px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.interviewSceneActionRemove {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.interviewSceneActionRemove:hover {
  border-color: rgba(255, 112, 112, 0.7);
  color: #ff9b9b;
}

.interviewInput {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
  color: var(--ink);
  background: #101720;
  font: inherit;
  line-height: 1.5;
}

textarea.interviewInput {
  height: clamp(72px, 10vh, 104px);
  min-height: 72px;
  resize: none;
}

.interviewInputShell {
  position: relative;
  height: clamp(72px, 10vh, 104px);
  min-height: 72px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101720;
}

.interviewInputShell .interviewInput,
.interviewInputBackdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: inherit;
  font: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.interviewInputBackdrop {
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #101720;
  pointer-events: none;
}

/* The transparent textarea and its coloured preview must keep identical text
   metrics; otherwise the visual cursor appears a few characters behind. */
.interviewInputBackdrop .roleplayLine.me,
.interviewInputBackdrop .roleplayLine.do {
  font-weight: inherit;
}

.interviewInputShell .interviewInput {
  z-index: 2;
  min-height: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: transparent;
  caret-color: var(--ink-strong);
}

.interviewInputShell .interviewInput::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.interviewInputShell .interviewInput::selection {
  background: rgba(131, 114, 255, 0.34);
}

.interviewInput:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.interviewComposerFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.interviewCounter {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.interviewCounter.isBelowMinimum {
  color: #ffd46f;
}

.whitelistAnswerWarning {
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 190, 61, 0.72);
  border-radius: var(--radius);
  color: #fff0c9;
  background: linear-gradient(
    110deg,
    rgba(255, 176, 32, 0.24),
    rgba(255, 176, 32, 0.1)
  );
  box-shadow: 0 10px 32px rgba(255, 176, 32, 0.11);
  animation: interviewWarningIn 240ms ease-out both;
}

.interviewChat > .whitelistAnswerWarning,
.interviewChat > .whitelistCooldown {
  align-self: stretch;
  flex: 0 0 auto;
}

.whitelistAnswerWarning strong {
  color: #ffd46f;
  font-size: 16px;
}

.whitelistAnswerWarning p {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.whitelistAnswerWarning small {
  color: #dfce9e;
  line-height: 1.4;
}

@keyframes interviewWarningIn {
  from {
    opacity: 0;
    transform: translateY(10px) scaleY(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .interviewMessage.isNew,
  .whitelistAnswerWarning,
  .interviewMessage p.isTyping::after,
  .interviewTypingDots span,
  .interviewTimeline.isProcessing
    .interviewTimelineStep.active
    .interviewTimelineMarker::after,
  .interviewTimeline.isProcessing
    .interviewTimelineStep.active
    + .interviewTimelineConnector::after {
    animation: none;
  }
}

.whitelistCooldown,
.whitelistInlineError {
  padding: 10px 12px;
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: var(--radius);
  color: #ffe2a4;
  background: rgba(255, 176, 32, 0.09);
  font-size: 13px;
}

.interviewAside {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: radial-gradient(
    circle at 50% 28%,
    rgba(35, 209, 139, 0.12),
    transparent 58%
  );
}

.interviewAside .kamilCharacter {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.interviewAside .kamilCharacter img {
  top: 8px;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 420px);
  height: calc(100% - 8px);
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}

#whitelistPanel,
#whitelistPanel * {
  user-select: none;
}

#whitelistPanel .interviewInput {
  user-select: text;
}

.interviewAside > p {
  margin: 0 18px 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(5, 9, 13, 0.7);
  font-size: 11px;
  line-height: 1.5;
}

.interviewReady,
.whitelistResult {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 430px;
  padding: 38px;
  text-align: center;
}

.interviewReady p,
.whitelistResult p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.whitelistResult {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 3px);
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(131, 108, 255, 0.13),
      transparent 38%
    ),
    rgba(8, 12, 17, 0.72);
}

.whitelistResultIcon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(35, 209, 139, 0.42);
  border-radius: 50%;
  color: #8dffd0;
  background: rgba(35, 209, 139, 0.1);
  font-size: 28px;
  font-weight: 900;
}

.whitelistResult.rejected .whitelistResultIcon,
.whitelistResult.timed_out .whitelistResultIcon {
  border-color: rgba(255, 92, 87, 0.42);
  color: #ffaaa6;
  background: rgba(255, 92, 87, 0.1);
}

.whitelistRetryText {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
  .whitelistPolicyGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-page="player"] .playerPage {
    padding: 10px;
  }

  .portalTopbar {
    min-height: 64px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .portalBrand > div {
    display: none;
  }

  .portalBrand .brandLogo {
    width: 40px;
    height: 40px;
  }

  .portalPageTitle {
    max-width: 58vw;
    font-size: 14px;
  }

  .profileUserName {
    display: none;
  }

  .portalBrand h1 {
    font-size: 20px;
  }

  .whitelistSteps {
    grid-template-columns: 1fr;
  }

  .whitelistPreview {
    padding: 14px;
  }

  .whitelistApp {
    min-height: 0;
    padding: 8px;
  }

  body[data-page="player"] #whitelistPanel > .panelHead {
    gap: 8px;
    padding: 8px 10px;
  }

  .whitelistStatus {
    padding: 5px 7px;
    font-size: 10px;
  }

  .whitelistHeaderTimer {
    font-size: 9px;
  }

  .kamilInterviewStage {
    grid-template-columns: 1fr;
  }

  .kamilInterviewCopy {
    padding: 24px 20px 8px;
  }

  .accountLinkStage .kamilInterviewCopy {
    max-width: 100%;
  }

  .accountLinkSteps {
    grid-template-columns: 1fr;
  }

  .accountLinkActions {
    align-items: stretch;
    flex-direction: column;
  }

  .accountLinkActions .button {
    width: 100%;
  }

  .kamilCharacter {
    min-height: 360px;
  }

  .kamilCharacter img {
    right: 50%;
    width: 280px;
    height: 350px;
    transform: translateX(50%);
  }

  .whitelistFooter {
    align-items: stretch;
    flex-direction: column;
  }

  .whitelistPolicyGrid {
    grid-template-columns: 1fr;
  }

  .interviewMetrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .whitelistInterview {
    grid-template-columns: 1fr;
  }

  .interviewMain {
    gap: 8px;
    padding: 10px;
  }

  .interviewTimelineStep {
    width: 96px;
  }

  .interviewTimelineConnector {
    min-width: 18px;
    margin-right: 6px;
  }

  .interviewAside {
    display: none;
  }

  .interviewMessage {
    max-width: 92%;
  }

  .interviewProgressCopy,
  .interviewComposerFooter {
    align-items: stretch;
  }

  .interviewComposerFooter .button {
    width: auto;
  }
}

@media (max-height: 820px) {
  body[data-page="player"] .playerPage {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body[data-page="player"] .portalTopbar {
    min-height: 62px;
    margin-bottom: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  body[data-page="player"] #whitelistPanel > .panelHead {
    padding: 10px 14px;
  }

  .whitelistApp {
    padding: 8px;
  }

  .interviewMain {
    gap: 8px;
    padding: 10px;
  }

  .interviewProgress {
    gap: 6px;
  }

  .interviewMetric {
    padding: 7px 9px;
  }

  textarea.interviewInput {
    height: 66px;
    min-height: 66px;
  }

  .interviewInputShell {
    height: 66px;
    min-height: 66px;
  }

  .interviewAside > p {
    margin: 0 10px 10px;
    padding: 8px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal[hidden] {
  display: none;
}

.modalPanel {
  width: min(700px, 100%);
  max-height: min(740px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#playerActionModal .modalPanel {
  width: min(1360px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
}

#accountModal .modalPanel {
  width: min(1280px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
}

#accountModalBody {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

#playerActionModal {
  z-index: 12;
}

.accountRelationSection,
.accountModalSection,
.accountCharacters {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 14, 19, 0.42);
}

.accountModalSection:first-child {
  margin-top: 14px;
}

.accountModalSection > .characterGroupTitle {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(139, 161, 184, 0.14);
}

.accountModalSection > .characterGroupTitle strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.accountRelationProfile small,
.accountActionId {
  color: var(--muted);
}

.accountRelationProfiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.accountRelationProfile {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.accountRelationProfile.direct {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
}

.accountRelationProfile > div > strong,
.accountRelationProfile > div > small {
  display: block;
}

.accountRelationProfile dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.accountRelationProfile dl div {
  display: grid;
  gap: 2px;
}

.accountRelationProfile dt {
  color: var(--muted);
  font-size: 11px;
}

.accountRelationProfile dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.accountRelationColumns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.accountRelationDetails {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.accountRelationDetails summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  color: var(--ink-strong);
  cursor: pointer;
}

.accountRelationDetails .identifierList {
  max-height: 290px;
  overflow: auto;
}

.accountTechnicalSection {
  display: block;
  overflow: hidden;
  padding: 0;
}

.accountTechnicalSection summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.accountTechnicalSection summary::-webkit-details-marker {
  display: none;
}

.accountTechnicalSection summary::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}

.accountTechnicalSection[open] summary::before {
  transform: rotate(45deg);
}

.accountTechnicalSection summary .characterGroupTitle {
  display: grid;
  flex: 1;
  justify-content: initial;
  gap: 3px;
}

.accountTechnicalContent {
  max-height: 310px;
  overflow: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.accountActionHistory {
  display: grid;
  gap: 12px;
}

.accountActionId {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.accountDevices {
  min-width: 0;
}

.accountSystemContent {
  max-height: none;
}

.deviceMetricGrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 9px;
}

.deviceMetricGroup {
  grid-column: span 4;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.deviceMetricGroup:nth-child(n + 4) {
  grid-column: span 6;
}

.deviceMetricGroup h4 {
  margin: 0 0 9px;
  color: var(--ink-strong);
  font-size: 13px;
}

.deviceMetricGroup dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.deviceMetricGroup dl div {
  display: grid;
  grid-template-columns: minmax(118px, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
  align-items: start;
}

.deviceMetricGroup dt {
  color: var(--muted);
  font-size: 11px;
}

.deviceMetricGroup dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.deviceMediaDetails code {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: var(--muted-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountMediaDevices {
  min-width: 0;
}

.accountMediaContent {
  max-height: 460px;
}

.deviceCollectionError {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 9px;
  color: var(--danger);
  font-size: 12px;
}

@media (max-width: 760px) {
  .accountRelationColumns {
    grid-template-columns: 1fr 1fr;
  }

  .deviceMetricGroup,
  .deviceMetricGroup:nth-child(n + 4) {
    grid-column: span 12;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .deviceMetricGroup,
  .deviceMetricGroup:nth-child(n + 4) {
    grid-column: span 6;
  }

  .deviceMetricGroup:last-child:nth-child(odd) {
    grid-column: span 12;
  }
}

@media (max-width: 520px) {
  .accountRelationColumns,
  .accountRelationProfile dl {
    grid-template-columns: 1fr;
  }
}

.accountWebUserState {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.accountWebUserState strong,
.accountWebUserState small {
  display: block;
}

.accountWebUserState small {
  margin-top: 2px;
  color: var(--muted);
}

.accountWebUserIcon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.accountWebUserIcon svg {
  width: 17px;
  height: 17px;
}

.accountWebUserIcon.ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
}

.accountWebUserIcon.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}

#playerActionModal .panelHead {
  align-items: flex-start;
}

#playerActionModal .panelHead > div {
  flex: 1;
  min-width: 0;
}

#playerActionModal .panelHead > .button {
  align-self: flex-start;
}

.modalPlayerInfo {
  margin-top: 12px;
}

.characterEditor {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 14, 19, 0.62);
}

.characterEditorHead,
.characterGroupTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.characterEditorHead strong,
.characterEditorHead small {
  display: block;
}

.characterEditorHead small,
.characterGroupTitle small {
  color: var(--muted);
  font-size: 12px;
}

.characterEditorIdentity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.characterEditorIdentity > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.characterEditorPhoto {
  position: relative;
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0c1118;
  color: #8dffd0;
  font-size: 16px;
  font-weight: 900;
}

.characterEditorPhoto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.characterDetailForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.characterFieldGroup {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 17, 24, 0.82);
}

.characterFieldGroup.wide {
  grid-column: 1 / -1;
}

.characterFieldGroup h3 {
  margin: 0;
  font-size: 14px;
}

.characterFieldGrid,
.characterCoordsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.characterCoordsGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.characterFieldGroup label {
  display: grid;
  gap: 5px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.characterFieldGroup input,
.characterFieldGroup select {
  width: 100%;
}

.characterCoordsPaste {
  max-width: 620px;
}

.playerSummary {
  display: grid;
  gap: 12px;
}

.summaryAccount {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 14, 19, 0.62);
}

.summaryAvatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #0c1118;
  color: #8dffd0;
  font-weight: 900;
}

#playerActionModal .summaryAvatar,
#playerActionModal .summaryLabel {
  color: #8dffd0;
}

.summaryAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summaryAccount strong,
.summaryTile strong {
  display: block;
  overflow: hidden;
  color: var(--ink-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summaryLabel {
  display: block;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.summaryAccount small,
.summaryTile small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summaryTiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.summaryTile {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 12px 48px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 17, 24, 0.82);
}

.summaryActions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  gap: 6px;
}

.summaryQuick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #121820;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.summaryQuick svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summaryQuick:hover:not(:disabled) {
  border-color: rgba(35, 209, 139, 0.45);
  background: #17212b;
  color: #8dffd0;
  transform: translateY(-1px);
}

.summaryQuick.success {
  border-color: rgba(35, 209, 139, 0.35);
  background: rgba(35, 209, 139, 0.12);
  color: #8dffd0;
}

.summaryQuick.danger {
  border-color: rgba(255, 87, 87, 0.42);
  background: rgba(255, 87, 87, 0.11);
  color: #ff9c9c;
}

.summaryQuick.muted,
.summaryQuick:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.identifierPanel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 14, 19, 0.62);
}

.identifierToggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.identifierEye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--primary-soft);
  color: #8dffd0;
}

.identifierToggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.identifierToggle strong {
  color: var(--ink-strong);
}

.identifierToggle small {
  margin-left: auto;
  color: var(--muted);
}

.identifierList {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.identifierList[hidden] {
  display: none;
}

.identifierRow {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.identifierRow:first-child {
  border-top: 0;
}

.identifierRow span {
  color: var(--muted-strong);
  font-weight: 850;
}

.identifierRow code {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actionButtons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 16px;
}

.actionButtons .button {
  justify-content: flex-start;
  min-height: 48px;
}

#playerActionButtons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.actionPanel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 14, 19, 0.7);
}

.actionPanelHead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.actionPanelHead h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
}

.actionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
  padding: 12px;
}

.actionCard {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #121820;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.actionCard:hover {
  border-color: rgba(35, 209, 139, 0.42);
  background: #18212a;
  transform: translateY(-1px);
}

.actionIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(35, 209, 139, 0.28);
  border-radius: 8px;
  background: var(--primary-soft);
  color: #8dffd0;
}

.actionIcon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inventoryGrid {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.inventoryItem {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10161d;
}

.inventoryMeta {
  min-width: 0;
}

.inventoryMeta strong,
.inventoryMeta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventoryMeta strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.inventoryMeta span {
  color: var(--muted);
  font-size: 12px;
}

.inventoryControls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inventoryAmountButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.72);
  color: var(--ink-strong);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.inventoryAmountButton:hover,
.inventoryAmountButton:focus-visible {
  border-color: rgba(55, 255, 169, 0.48);
  background: rgba(55, 255, 169, 0.1);
  color: #8dffd0;
}

.iconButton {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.shopActionButtons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.inlineCopyButton {
  margin-right: 8px;
}

.shopActionButton svg,
.shopActionButtons .iconButton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.policeRowActions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.policeIconButton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.policeVehicleThumbFrame {
  width: 92px;
  height: 54px;
}

.policeVehiclePreviewRow {
  display: grid;
  gap: 8px;
  align-content: start;
}

.fieldCaption {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.policeVehiclePreview {
  width: min(260px, 100%);
  min-height: 132px;
}

.policeVehicleSettings {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.36);
}

.policeVehicleSettings legend {
  padding: 0 8px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 850;
}

.policeLiveryField {
  max-width: 280px;
}

.policeExtrasGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.policeExtraCheck {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 17, 23, 0.72);
}

.shopModal .modalPanel {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
}

.shopWideModal .modalPanel {
  width: min(1360px, calc(100vw - 20px));
  max-height: min(900px, calc(100vh - 20px));
}

#restaurantProductsModal .modalPanel {
  width: min(1500px, calc(100vw - 24px));
  max-height: min(920px, calc(100vh - 24px));
}

#restaurantProductsModal .tableWrap {
  overflow-x: auto;
}

#restaurantProductsModal table {
  min-width: 1240px;
}

#restaurantProductsModal td,
#restaurantProductsModal th {
  vertical-align: top;
}

.shopCrudGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shopCrudGrid .wide {
  grid-column: 1 / -1;
}

.shopCrudGrid .checkRow {
  align-self: end;
  margin: 0;
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
}

.productKvList {
  display: grid;
  gap: 8px;
}

.productKvRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 8px;
  align-items: center;
}

.shopFormSection {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.shopFormSection h3,
.shopFormSection summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.shopFormSection summary {
  cursor: pointer;
}

.shopFormSection > .shopCrudGrid,
.shopFormSection[open] > .shopCrudGrid {
  margin-top: 12px;
}

.shopItemPreview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.shopItemPreview img {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.vehiclePriceHeader {
  grid-template-columns: 180px minmax(0, 1fr);
}

.vehiclePriceHeader .vehiclePricePreview {
  width: 180px;
  height: 108px;
  max-height: none;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 8px;
}

.vehiclePriceHeader .vehiclePricePreview img {
  width: 100%;
  max-width: 172px;
  height: 100%;
  max-height: 100px;
  padding: 8px;
}

.shopItemPreview div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.shopItemPreview strong {
  font-size: 18px;
  color: var(--text);
}

.shopItemPreview small {
  color: var(--muted);
}

.itemPicker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.itemPicker img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.itemSearchBox {
  position: relative;
  min-width: 0;
}

.itemSearchResults {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 6px;
}

.itemSearchOption {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 7px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.itemSearchOption:hover,
.itemSearchOption:focus {
  background: rgba(255, 255, 255, 0.08);
}

.itemSearchOption img,
.itemSearchOption .thumbPlaceholder {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.itemSearchOption .vehicleThumbFrame {
  width: 52px;
  height: 34px;
  border-radius: 6px;
}

.itemSearchOption.vehicleSearchOption {
  grid-template-columns: 52px minmax(0, 1fr);
}

.itemSearchOption span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.itemSearchOption strong,
.itemSearchOption small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itemSearchEmpty {
  padding: 10px;
  color: var(--muted);
}

.structuredRows {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.structuredRows [data-kv-rows],
.structuredRows [data-attribute-rows],
.structuredRows [data-list-rows] {
  display: grid;
  gap: 8px;
}

.structuredRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.compactRows .structuredRow {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.structuredRow .iconButton {
  width: 38px;
  height: 38px;
}

.shopChildToolbar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.shopChildTable table {
  min-width: 1180px;
}

.emptyState {
  padding: 12px;
  color: var(--muted);
}

.modalNote {
  min-height: 24px;
  padding: 0 16px 16px;
  color: var(--muted);
}

.toastHost {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(35, 209, 139, 0.35);
  border-radius: var(--radius);
  background: rgba(14, 20, 27, 0.96);
  color: var(--ink-strong);
  box-shadow: var(--shadow);
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.danger {
  border-color: rgba(255, 87, 87, 0.45);
}

.toast.leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.statusText.ok {
  color: var(--ok);
}

.statusText.warn {
  color: var(--warn);
}

.statusText.danger {
  color: var(--danger);
}

@media (max-width: 980px) {
  .characterDetailForm,
  .characterCoordsGrid {
    grid-template-columns: 1fr;
  }

  .characterEditorHead,
  .characterGroupTitle {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .mapLayout {
    grid-template-columns: 1fr;
  }

  .mapPlayerList {
    max-height: 320px;
  }

  .mapViewport,
  .mapImage {
    min-height: 520px;
  }

  .sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .siteFooterMetrics {
    left: 0;
    padding: 14px 18px;
  }

  .sidebarMetricGroup {
    gap: 10px 14px;
  }

  .sidebarMetricDetailButton {
    margin-left: 0;
  }

  .navGroup {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .navHeading {
    grid-column: 1 / -1;
  }

  .workspace,
  .playerPage,
  .publicPage {
    padding: 18px;
  }

  .topbar,
  .statusHero,
  .panelHead {
    align-items: flex-start;
    flex-direction: column;
  }

  .profileMenu {
    margin-left: 0;
  }

  .toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-admin-page^="police-"] .toolbar {
    flex-wrap: wrap;
  }

  .formGrid,
  .shopCrudGrid,
  .split,
  .metricBand,
  .statusMetricGrid,
  .statusDashboardGrid,
  .summaryTiles,
  #playerActionButtons {
    grid-template-columns: 1fr;
  }

  .statusMetricCard,
  .statusMetricCard:nth-child(-n + 6),
  .statusCpuCard,
  .statusEnvironmentHeading {
    grid-column: auto;
  }

  .cpuCoreGrid {
    grid-template-columns: repeat(4, minmax(48px, 1fr));
  }

  .list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 24px;
  }

  .button,
  input,
  select,
  textarea {
    min-height: 42px;
  }

  .pager,
  .tableControls,
  .toolbar:not(.statusToolbar),
  .buttonGroup,
  .inlineForm {
    align-items: stretch;
    flex-direction: column;
  }

  .pager select,
  .pageJump input,
  .toolbar:not(.statusToolbar) input[type="search"],
  .inlineForm input,
  .inlineForm select,
  .button,
  .buttonGroup .button {
    width: 100%;
  }

  .statusToolbar {
    width: 100%;
  }

  .statusToolbar .button {
    width: auto;
    flex: 1;
  }

  .statusChartModal {
    padding: 8px;
  }

  .statusChartModalPanel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .statusChartModalBody {
    gap: 10px;
    padding: 10px;
  }

  .statusChartModal[data-status-chart-key="db-query"] .statusChartModalBody {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .statusChartModal[data-status-chart-key="db-query"]
    .statusModalChartPanel:nth-child(3) {
    grid-column: auto;
    min-height: 340px;
  }

  .statusModalChartHead {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .statusModalChartHead span {
    text-align: left;
  }

  .statusModalChartPanel .statusChart {
    height: 220px;
  }

  th,
  td {
    padding: 11px 10px;
  }

  .inventoryItem {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .summaryTile {
    padding-right: 12px;
  }

  .summaryActions {
    position: static;
    margin-top: 10px;
  }

  .identifierRow {
    grid-template-columns: 1fr;
  }

  .inventoryControls {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .inventoryAmountButton,
  .inventoryControls .button {
    width: 100%;
  }
}

.aiVoicePreview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.aiVoicePreviewLarge {
  grid-template-columns: 1fr;
  justify-items: stretch;
  padding: 14px;
}

.aiVoicePreview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.aiVoicePreviewLarge img {
  width: 100%;
  height: min(320px, 36vh);
  object-fit: contain;
}

.aiVoiceAudioCell {
  min-width: 360px;
}

.aiVoicePlayer {
  display: grid;
  grid-template-columns: 38px auto minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
}

.aiVoicePlayer audio {
  display: none;
}

.aiVoiceStats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 14px;
}

.aiVoiceStat {
  display: grid;
  gap: 3px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
}

.aiVoiceStat strong {
  color: #f8fafc;
  font-size: 13px;
}

.aiVoiceStat span,
.aiVoiceStat small {
  color: #94a3b8;
  font-size: 12px;
}

.aiVoiceTime {
  min-width: 72px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.aiVoiceSeek {
  width: 100%;
  min-height: 28px;
  accent-color: var(--accent);
}

.consolePanel {
  min-height: calc(100vh - 132px);
}

.consoleOutput {
  height: min(68vh, 720px);
  min-height: 420px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b10;
  color: #d7e1ea;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.consoleLine {
  display: grid;
  grid-template-columns: 78px 92px minmax(0, 1fr);
  gap: 10px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.consoleLine time,
.consoleLine span {
  color: #7f8b99;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.consoleLine code {
  color: #d7e1ea;
  white-space: pre-wrap;
  word-break: break-word;
}

.consoleLine.level-warn code,
.consoleLine.level-warning code {
  color: #ffcf6b;
}

.consoleLine.level-error code,
.consoleLine.level-danger code {
  color: #ff8a8a;
}

.consoleLine.level-command code {
  color: #7dd3fc;
}

.consoleEmpty {
  color: var(--ink-muted);
}

.consoleCommandForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.consoleCommandForm[hidden] {
  display: none;
}

.consoleCommandForm input {
  font-family: Consolas, "Liberation Mono", monospace;
}

.systemLogsPanel {
  min-height: calc(100vh - 132px);
}

.systemLogTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.systemLogTabs .button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Asset manager */
.assetLayout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.assetCatalogPanel,
.assetBrowserPanel {
  min-width: 0;
}
.assetSearch {
  width: calc(100% - 32px);
  margin: 0 16px 14px;
}
.assetCatalog {
  max-height: 68vh;
  overflow: auto;
  padding: 0 12px 16px;
}
.assetCatalogGroup h3 {
  margin: 12px 6px 8px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.assetCatalogItem {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.assetCatalogItem:hover,
.assetCatalogItem.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}
.assetCatalogItem span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.assetCatalogItem small {
  color: var(--muted);
}
.assetBreadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 0 16px 12px;
}
.assetBreadcrumb button,
.assetFileName {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.assetBreadcrumb button {
  color: var(--primary);
  padding: 4px;
}
.assetUploadBar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 16px 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.assetUploadBar > label:first-child {
  display: grid;
  gap: 5px;
  flex: 1 1 240px;
  color: var(--muted);
  font-size: 0.8rem;
}
.assetUploadBar input[type="text"] {
  width: 100%;
}
.assetProgress {
  margin: 0 16px 14px;
}
.assetProgress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.assetProgress progress {
  width: 100%;
}
.assetFileTableWrap {
  max-height: 58vh;
}
.assetFileName {
  padding: 5px 0;
}
.assetSelectionBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 16px;
}
.assetOwnerPanel {
  margin-top: 18px;
}
.assetReleaseSelection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
}
.assetModalPanel {
  width: min(900px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
}
.assetAclRows {
  display: grid;
  gap: 8px;
  padding: 0 16px;
}
.assetAclRow {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(100px, 0.7fr) repeat(3, auto);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.errorText {
  color: var(--danger) !important;
}
@media (max-width: 960px) {
  .assetLayout {
    grid-template-columns: 1fr;
  }
  .assetCatalog {
    max-height: 34vh;
  }
}
@media (max-width: 640px) {
  .assetAclRow {
    grid-template-columns: 1fr 1fr;
  }
}

.systemLogAutoRefresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 13px;
}

.systemTaskState {
  display: block;
  min-height: 17px;
  margin-top: 3px;
  color: var(--ink-muted);
}

.systemTaskState.running {
  color: #7dd3fc;
}

.systemTaskState.succeeded {
  color: #66d19e;
}

.systemTaskState.failed {
  color: #ff8a8a;
}

.systemLogMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 12px;
}

.systemLogMeta > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.systemLogMeta strong {
  color: var(--ink);
  font-family: Consolas, "Liberation Mono", monospace;
}

.systemLogTruncated {
  color: #ffcf6b;
}

.systemLogTableWrap {
  max-height: min(67vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b10;
}

.systemLogTableWrap table {
  min-width: 720px;
}

.systemLogTableWrap thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101720;
}

.systemLogTableWrap th:first-child,
.systemLogTableWrap td:first-child {
  width: 72px;
  text-align: right;
}

.systemLogTableWrap td {
  padding-top: 4px;
  padding-bottom: 4px;
  border-color: rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.systemLogTableWrap code {
  color: #d7e1ea;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.systemLogLineNumber {
  color: #687687;
  font-family: Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.dangerText {
  color: #ff8a8a;
}

@media (max-width: 720px) {
  .systemLogMeta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .consoleLine {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .consoleCommandForm {
    grid-template-columns: 1fr;
  }
}

.handlingStatusCell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 118px;
}

.handlingEditorModal .modalPanel {
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.handlingEditorModal [data-modal-body] {
  overflow: auto;
  padding: 18px;
  padding-bottom: 20px;
}

.handlingHero {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
}

.handlingHero .vehicleModalPreview {
  width: 172px;
  height: 108px;
}

.handlingHeroText {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.handlingHeroText strong {
  font-size: 20px;
}

.handlingHeroText span {
  color: var(--ink-muted);
  font-size: 13px;
}

.handlingEditorShell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 14px;
  min-width: 0;
}

.handlingEditorMain {
  min-width: 0;
}

.handlingEditorToolbar,
.handlingTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.handlingToolbarLabel {
  align-self: center;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.handlingTabs {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(15, 23, 42, 0.28);
  margin-bottom: 0;
}

.handlingFieldGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.handlingField {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.handlingField span {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.handlingField input,
.handlingWideField textarea {
  font-weight: 650;
}

.handlingVectorInputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.handlingWideField {
  grid-column: 1 / -1;
}

.handlingXmlPane textarea,
.handlingWideField textarea {
  width: 100%;
  resize: vertical;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.handlingRange {
  width: 100%;
  min-height: 24px;
  accent-color: #22c55e;
}

.handlingXmlPane {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #060a0d;
  min-width: 0;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.handlingXmlPane.isXmlInvalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.handlingXmlHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: #0b1117;
}

.handlingXmlHead strong {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.handlingXmlHead span {
  color: var(--ink-muted);
  font-size: 12px;
}

.handlingXmlEditWrap pre,
.handlingXmlSource {
  min-height: 560px;
  max-height: calc(100vh - 330px);
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: #070b10;
  color: #d7e1ea;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
  tab-size: 2;
}

.handlingXmlSource {
  position: relative;
  z-index: 2;
  border: 0;
  outline: 0;
  resize: none;
  width: 100%;
  color: transparent;
  caret-color: #e2e8f0;
  background: transparent;
}

.handlingXmlEditWrap {
  position: relative;
  min-height: 560px;
  max-height: calc(100vh - 330px);
  overflow: hidden;
  background: #070b10;
}

.handlingXmlEditWrap pre,
.handlingXmlEditWrap textarea {
  position: absolute;
  inset: 0;
  min-height: 100%;
  max-height: none;
  overflow: auto;
}

.handlingXmlEditWrap pre {
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
}

.handlingXmlEditWrap textarea::selection {
  background: rgba(56, 189, 248, 0.28);
}

.xmlDecl {
  color: #a78bfa;
}

.xmlTag {
  color: #38bdf8;
}

.xmlAttr {
  color: #fbbf24;
}

.xmlValue {
  color: #fb7185;
}

.handlingXmlPane.isXmlInvalid .xmlDecl,
.handlingXmlPane.isXmlInvalid .xmlTag,
.handlingXmlPane.isXmlInvalid .xmlAttr,
.handlingXmlPane.isXmlInvalid .xmlValue,
.handlingXmlPane.isXmlInvalid pre {
  color: #fca5a5;
}

.handlingFooter {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(10px);
}

.handlingFooter .mutedText {
  justify-self: end;
  text-align: right;
}

@media (max-width: 920px) {
  .handlingEditorShell,
  .handlingFieldGrid {
    grid-template-columns: 1fr;
  }

  .handlingHero {
    grid-template-columns: 1fr;
  }

  .handlingXmlPane pre,
  .handlingXmlSource,
  .handlingXmlEditWrap {
    min-height: 360px;
    max-height: 420px;
  }
}

.vipYoutubePreview {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05070b;
  color: var(--muted);
}

.vipYoutubePreviewFrame {
  width: 100%;
  min-height: 320px;
  border: 0;
  pointer-events: none;
}

.restaurantSummaryGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.restaurantSummaryItem {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
}

.restaurantSummaryItem span {
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.restaurantSummaryItem strong {
  overflow-wrap: anywhere;
}

.restaurantTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.restaurantTabs .button.active {
  border-color: rgba(34, 197, 94, 0.7);
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.16);
}

.restaurantDetailContent {
  border-top: 1px solid var(--line);
}

.restaurantMediaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
}

.restaurantMediaCard {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
}

.restaurantMediaCard img,
.restaurantInfoModal img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05070b;
}

.restaurantMediaEmpty {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
}

.restaurantInfoModal {
  display: grid;
  gap: 12px;
}

.restaurantInfoModal dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.restaurantInfoModal dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.restaurantInfoModal dt {
  color: var(--ink-muted);
}

.restaurantInfoModal dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .restaurantSummaryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restaurantInfoModal dl div {
    grid-template-columns: 1fr;
  }
}
.webStaffChat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.webStaffChatLauncher {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(35, 209, 139, 0.68);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--primary);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(35, 209, 139, 0.1);
  cursor: pointer;
}

.webStaffChatLauncher:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: #55e5aa;
}

.webStaffChat.isOpen .webStaffChatLauncher {
  display: none;
}

.webStaffChatLauncherIcon {
  width: 24px;
  height: 24px;
}

.webStaffChatLauncherBadge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  padding: 2px 5px;
  border: 2px solid #0d131e;
  border-radius: 999px;
  background: #ff4d5d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.webStaffChatPanel {
  display: flex;
  width: min(370px, calc(100vw - 24px));
  height: min(470px, calc(100vh - 90px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(35, 209, 139, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(35, 209, 139, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 140, 255, 0.022) 1px, transparent 1px),
    radial-gradient(
      circle at 24% 0%,
      rgba(35, 209, 139, 0.09),
      transparent 42%
    ),
    linear-gradient(160deg, #151b23, #0b0f14);
  background-size:
    22px 22px,
    22px 22px,
    100% 100%,
    100% 100%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
  color: #eaf1fb;
}

.webStaffChatPanel[hidden] {
  display: none;
}

.webStaffChatHeader {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 19, 25, 0.96);
}

.webStaffChatHeader > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.webStaffChatHeaderLogo {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0b0d11;
  object-fit: contain;
}

.webStaffChatMinimize {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9eabc0;
  font-size: 20px;
  cursor: pointer;
}

.webStaffChatMinimize:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.webStaffChatMessages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 13px;
}

.webStaffChatEmpty {
  margin: auto;
  color: #718096;
  font-size: 13px;
}

.webStaffChatMessage {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.webStaffChatAvatar,
.webStaffChatAvatarFallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.webStaffChatAvatar {
  object-fit: cover;
  background: #232d40;
}

.webStaffChatAvatarFallback {
  display: grid;
  place-items: center;
  background: var(--primary-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.webStaffChatMessage > div {
  min-width: 0;
}

.webStaffChatMessageMeta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #aebbd0;
  font-size: 11px;
}

.webStaffChatSource {
  display: inline-flex;
  align-items: center;
}

.webStaffChatSourceIcon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.webStaffChatSourceIcon.isDiscord {
  color: var(--muted);
}

.webStaffChatSourceIcon.isWeb {
  color: #368cff;
}

.webStaffChatGameId {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 3px;
  border: 1px solid rgba(35, 209, 139, 0.52);
  border-radius: 999px;
  background: var(--primary-soft);
  color: #55e5aa;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.webStaffChatRole {
  color: #55e5aa;
  font-weight: 800;
}

.webStaffChatMessageMeta strong {
  overflow: hidden;
  color: #f1f5fb;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webStaffChatMessageMeta time {
  margin-left: auto;
  color: #64748b;
  font-size: 10px;
}

.webStaffChatMessage p {
  margin: 2px 0 0;
  color: #d4deec;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.webStaffChatStatus {
  min-height: 18px;
  padding: 0 12px;
  color: #ff6b79;
  font-size: 11px;
}

.webStaffChatComposer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(5, 9, 15, 0.55);
}

.webStaffChatComposer textarea {
  min-height: 40px;
  max-height: 90px;
  resize: none;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  outline: none;
  padding: 8px 9px;
  background: #182132;
  color: #eef5ff;
  font: inherit;
  font-size: 13px;
}

.webStaffChatComposer textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.webStaffChatComposer button {
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.webStaffChatComposer button:hover {
  background: var(--primary);
  color: #07130e;
}

.webStaffChatComposer button:disabled,
.webStaffChatComposer textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 620px) {
  .webStaffChat {
    right: 8px;
    bottom: 8px;
  }

  .webStaffChatPanel {
    width: calc(100vw - 16px);
    height: min(470px, calc(100vh - 16px));
  }
}

/* Item registry modal overrides must stay after the shared modal rules. */
#itemRegistryModal {
  z-index: 40;
  padding: 16px;
}

#itemRegistryModal .itemRegistryPanel {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overscroll-behavior: contain;
}

#itemRegistryModal .panelHead {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 22, 29, 0.97);
  backdrop-filter: blur(10px);
}

#itemRegistryModal .modalForm {
  gap: 0;
  min-width: 0;
  padding: 0;
}

#itemRegistryModal .itemRegistryPreview {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(100% - 32px);
  height: 170px;
  min-width: 0;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05),
    rgba(11, 15, 20, 0.98) 68%
  );
  color: var(--muted);
}

#itemRegistryModal .itemRegistryPreview img {
  display: block;
  width: 160px;
  height: 150px;
  max-width: calc(100% - 20px);
  max-height: 150px;
  padding: 8px;
  object-fit: contain;
}

#itemRegistryModal .itemRegistryPreview img[hidden],
#itemRegistryModal .itemRegistryPreview img[src=""] {
  display: none;
}

#itemRegistryModal .formGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

#itemRegistryModal .formGrid > label,
#itemRegistryModal input,
#itemRegistryModal select,
#itemRegistryModal textarea {
  min-width: 0;
  max-width: 100%;
}

#itemRegistryModal input[type="file"] {
  overflow: hidden;
  padding: 7px;
}

#itemRegistryModal .itemRegistryToggle {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

#itemRegistryModal .itemRegistryToggle input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  min-height: 20px;
  margin: 0;
}

#itemRegistryModal .itemRegistryHistory {
  max-height: 180px;
  overflow: auto;
  margin: 0 16px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090d12;
  color: var(--muted-strong);
  white-space: pre-wrap;
}

#itemRegistryModal .modalActions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 14px;
  background: linear-gradient(to top, var(--surface) 72%, rgba(18, 22, 29, 0));
}

@media (max-width: 700px) {
  #itemRegistryModal {
    padding: 8px;
  }

  #itemRegistryModal .itemRegistryPanel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  #itemRegistryModal .formGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  #itemRegistryModal .formGrid .wide {
    grid-column: 1;
  }

  #itemRegistryModal .modalActions {
    flex-wrap: wrap;
  }
}

/* Report workspace stays inside the viewport; only its data panes scroll. */
body[data-page="player"].reportMode .playerPage {
  overflow: hidden;
  padding-bottom: 24px;
}

body[data-page="player"].reportMode .reportPortal {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="player"].reportMode .reportPortalLayout {
  min-height: 0;
  flex: 1 1 auto;
}

body[data-page="player"].reportMode .reportPortalList {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body[data-page="player"].reportMode .reportPortalDetail {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="player"].reportMode .reportMessages {
  min-height: 120px;
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body[data-page="player"].reportMode .reportComposer,
body[data-page="player"].reportMode .reportProviders,
body[data-page="player"].reportMode .reportEvidence,
body[data-page="player"].reportMode .reportEvidenceList {
  flex: 0 0 auto;
}

body[data-page="player"].reportMode .reportEvidenceList {
  max-height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 850px) {
  body[data-page="player"].reportMode {
    overflow: auto;
  }

  body[data-page="player"].reportMode .playerPage {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-page="player"].reportMode .reportPortal {
    overflow: visible;
  }

  body[data-page="player"].reportMode .reportPortalLayout {
    min-height: 640px;
  }
}

/* Modern report center */
body[data-page="player"].reportMode .playerPage {
  padding: 18px clamp(16px, 2vw, 34px) 18px;
}

body[data-page="player"].reportMode .portalTopbar {
  min-height: 64px;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-color: rgba(117, 139, 175, 0.22);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(17, 24, 34, 0.96), rgba(10, 15, 23, 0.9));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

body[data-page="player"].reportMode .portalBrand .brandLogo {
  width: 46px;
  height: 46px;
}

body[data-page="player"].reportMode {
  --report-red: #b40707;
  --report-teal: #03989e;
}
body[data-page="player"].reportMode .portalBrand h1 {
  font-size: clamp(19px, 1.5vw, 25px);
}

body[data-page="player"].reportMode .portalModules {
  min-height: 50px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(11, 17, 26, 0.82);
  backdrop-filter: blur(18px);
}

body[data-page="player"].reportMode .portalModuleTab {
  padding: 8px 16px;
  border-radius: 10px;
}

body[data-page="player"].reportMode .portalModuleTab.active {
  background: linear-gradient(135deg, var(--report-red), var(--report-teal));
  box-shadow: 0 8px 20px rgba(3, 152, 158, 0.2);
}

body[data-page="player"].reportMode .reportPortal {
  border-color: rgba(119, 142, 178, 0.24);
  border-radius: 18px;
  background: rgba(11, 17, 25, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body[data-page="player"].reportMode .reportPortal > .panelHead {
  min-height: 68px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(117, 139, 175, 0.2);
  background: linear-gradient(90deg, rgba(180, 7, 7, 0.13), rgba(3, 152, 158, 0.07), transparent 55%);
}

body[data-page="player"].reportMode #createReportButton {
  border-color: rgba(3, 152, 158, 0.48);
  color: #f7f5ff;
  background: linear-gradient(135deg, rgba(180, 7, 7, 0.88), rgba(3, 152, 158, 0.82));
  box-shadow: 0 9px 24px rgba(3, 152, 158, 0.16);
}

body[data-page="player"].reportMode .reportPortalLayout {
  grid-template-columns: minmax(250px, 0.58fr) minmax(620px, 2.4fr);
  gap: 0;
  border: 0;
}

body[data-page="player"].reportMode .reportPortalList,
body[data-page="player"].reportMode .reportPortalDetail {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="player"].reportMode .reportPortalList {
  gap: 8px;
  padding: 14px;
  border-right: 1px solid rgba(117, 139, 175, 0.2);
  background: linear-gradient(180deg, rgba(18, 26, 38, 0.72), rgba(10, 16, 24, 0.38));
}

body[data-page="player"].reportMode .reportPortalItem {
  position: relative;
  padding: 13px 14px;
  border: 1px solid rgba(117, 139, 175, 0.16);
  border-radius: 13px;
  background: rgba(18, 27, 40, 0.72);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

body[data-page="player"].reportMode .reportPortalItem:hover {
  transform: translateY(-1px);
  border-color: rgba(3, 152, 158, 0.48);
  background: rgba(26, 36, 53, 0.92);
}

body[data-page="player"].reportMode .reportPortalItem.active {
  border-color: rgba(3, 152, 158, 0.7);
  background: linear-gradient(120deg, rgba(180, 7, 7, 0.2), rgba(3, 152, 158, 0.14));
  box-shadow: inset 3px 0 var(--report-red), 0 10px 26px rgba(0, 0, 0, 0.16);
}

.reportPortalItemTop,
.reportPortalItemMeta,
.reportEvidenceHead,
.reportEvidenceInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reportPortalItemTop strong {
  min-width: 0;
  overflow: hidden;
  color: #f2f5fb;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reportListStatus {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(130, 147, 174, 0.28);
  border-radius: 999px;
  color: #aebbd0 !important;
  font-size: 10px !important;
  line-height: 1.2;
}

.reportPortalItemMeta {
  justify-content: flex-start;
  margin-top: 9px;
  color: #8290a6;
  font-size: 11px;
}

.reportUnread {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--report-red);
  font-size: 10px;
}

body[data-page="player"].reportMode .reportPortalDetail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  min-width: 0;
  padding: 0;
}

.reportConversationPane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background:
    radial-gradient(circle at 92% 8%, rgba(100, 72, 211, 0.09), transparent 30%),
    #0c131c;
}

.reportConversationPane .reportDetailHead {
  min-height: 72px;
  padding: 15px 20px;
  border-bottom-color: rgba(117, 139, 175, 0.18);
}

.reportConversationPane .reportDetailHead h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.reportConversationPane .reportMessages {
  display: flex;
  min-height: 0;
  padding: 20px;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
}

.reportConversationPane .reportMessage {
  width: fit-content;
  min-width: 170px;
  max-width: min(76%, 720px);
  padding: 10px 13px;
  border: 1px solid rgba(127, 146, 176, 0.14);
  border-radius: 14px 14px 14px 4px;
  color: #edf2fa;
  background: #182434;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.reportConversationPane .reportMessage.player {
  border-color: rgba(127, 104, 232, 0.22);
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, #332763, #27204d);
}

.reportConversationPane .reportMessage small {
  color: #91a2bb;
  font-size: 11px;
}

.reportConversationPane .reportComposer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid rgba(117, 139, 175, 0.18);
  background: rgba(10, 16, 24, 0.96);
}

.reportConversationPane .reportComposer textarea {
  min-height: 54px;
  max-height: 110px;
  padding: 14px 15px;
  resize: none;
  border-color: rgba(121, 142, 176, 0.28);
  border-radius: 13px;
  background: #0c131c;
}

.reportConversationPane .reportComposer button {
  min-width: 92px;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #7256df, #276f82);
}

.reportEvidencePane {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 17px;
  flex-direction: column;
  border-left: 1px solid rgba(117, 139, 175, 0.2);
  background: linear-gradient(180deg, #111a27, #0c131c);
}

.reportEvidenceHead {
  flex: 0 0 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(117, 139, 175, 0.16);
}

.reportEvidenceHead h3 {
  margin: 3px 0 0;
  font-size: 15px;
}

.reportEvidenceCount {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(134, 113, 245, 0.38);
  border-radius: 10px;
  color: #c5baff;
  background: rgba(111, 82, 220, 0.15);
  font-weight: 800;
}

.reportEvidencePane .reportProviders {
  margin: 12px 0 4px;
  line-height: 1.5;
}

body[data-page="player"].reportMode .reportEvidencePane .reportEvidence {
  grid-template-columns: 1fr;
  margin-top: 8px;
}

.reportEvidencePane .reportEvidence input,
.reportEvidencePane .reportEvidence button {
  min-height: 42px;
  border-radius: 11px;
}

.reportEvidencePane .reportEvidence button {
  border-color: rgba(129, 111, 230, 0.35);
  color: #dcd6ff;
  background: rgba(99, 74, 190, 0.16);
}

body[data-page="player"].reportMode .reportEvidencePane .reportEvidenceList {
  min-height: 0;
  max-height: none;
  margin-top: 13px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.reportEvidencePane .reportEvidenceItem {
  align-items: center;
  padding: 10px;
  border-color: rgba(117, 139, 175, 0.18);
  border-radius: 11px;
  background: rgba(18, 28, 41, 0.72);
}

.reportEvidencePreview {
  position: relative;
  width: 78px;
  height: 54px;
  padding: 0;
  flex: 0 0 78px;
  overflow: hidden;
  border: 1px solid rgba(151, 134, 255, 0.42);
  border-radius: 10px;
  background: #080d14;
  cursor: pointer;
}

.reportEvidencePreview:hover {
  border-color: #a998ff;
  transform: translateY(-1px);
}

.reportEvidencePreview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.reportEvidencePlay {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 10, 16, 0.82);
  transform: translate(-50%, -50%);
  font-size: 11px;
}

.evidencePreviewModal {
  width: min(1120px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.evidencePreviewModal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
}

.evidencePreviewPanel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #0d141e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.evidencePreviewHeader {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
}

.evidencePreviewBody {
  width: 100%;
  max-height: 78dvh;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #04070b;
}

.evidencePreviewBody img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.evidencePreviewBody iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reportMessage {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.reportMessage.player {
  flex-direction: row-reverse;
  background: transparent;
}

.reportMessageContent {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #1a2432;
}

.reportMessage.player .reportMessageContent {
  background: #28214d;
}

.reportChatAvatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #d9d3ff;
  background: #182332;
  font-size: 12px;
  font-weight: 850;
}

.reportChatAvatar img { width: 100%; height: 100%; object-fit: cover; }
.reportTypingIndicator { display: flex; align-items: flex-end; gap: 8px; }
.reportTypingDots { display: flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 14px; border-radius: 14px; background: #1a2432; }
.reportTypingDots i { width: 6px; height: 6px; border-radius: 50%; background: #a7b4c7; animation: reportTypingBounce 1.1s infinite ease-in-out; }
.reportTypingDots i:nth-child(2) { animation-delay: 140ms; }
.reportTypingDots i:nth-child(3) { animation-delay: 280ms; }
@keyframes reportTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.reportEvidenceInfo {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
}

.reportEvidenceInfo strong {
  color: #e9eef7;
  font-size: 12px;
}

.evidenceStatus {
  color: #8999b0;
  font-size: 10px;
}

.evidenceStatus.valid {
  color: #69d5a7;
}

.evidenceStatus.invalid,
.evidenceStatus.unavailable {
  color: #ff8491;
}

.reportEvidenceEmpty {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(122, 143, 174, 0.24);
  border-radius: 12px;
  color: #748399;
  text-align: center;
  font-size: 12px;
}

body[data-page="player"].reportMode .reportCreateForm {
  grid-column: 1 / -1;
  width: min(780px, calc(100% - 40px));
  margin: 20px auto;
  padding: 22px;
  border: 1px solid rgba(120, 141, 175, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 34, 0.92);
}

@media (max-width: 1250px) {
  body[data-page="player"].reportMode .reportPortalLayout {
    grid-template-columns: 230px minmax(560px, 1fr);
  }

  body[data-page="player"].reportMode .reportPortalDetail {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

@media (max-width: 850px) {
  body[data-page="player"].reportMode .reportPortalLayout {
    grid-template-columns: 1fr;
  }

  body[data-page="player"].reportMode .reportPortalList {
    max-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(117, 139, 175, 0.2);
  }

  body[data-page="player"].reportMode .reportPortalDetail {
    grid-template-columns: 1fr;
  }

  .reportEvidencePane {
    max-height: 260px;
    border-top: 1px solid rgba(117, 139, 175, 0.2);
    border-left: 0;
  }
}
body[data-page="player"].reportMode .portalKicker,
body[data-page="player"].reportMode .reportEvidenceHead .eyebrow { color: #25b7bd; }
body[data-page="player"].reportMode .reportConversationPane { background: radial-gradient(circle at 92% 8%, rgba(3,152,158,.1), transparent 30%), #0c131c; }
body[data-page="player"].reportMode .reportMessage.player { border: 1px solid rgba(180,7,7,.24); background: linear-gradient(135deg,#501317,#2d171a); }
body[data-page="player"].reportMode .reportComposer button,
body[data-page="player"].reportMode .reportEvidencePane .reportEvidence button { background: linear-gradient(135deg,var(--report-red),var(--report-teal)); }
body[data-page="player"].reportMode .reportEvidenceItem a { color: #39bec3; }
.reportDetailStates{display:flex;align-items:flex-end;flex-direction:column;gap:7px}.reportAssigneeBadge{padding:6px 9px;border:1px solid color-mix(in srgb,#03989e 58%,var(--line));border-radius:99px;background:color-mix(in srgb,#03989e 12%,transparent);color:#8ce4e8;font-size:12px;font-weight:750}

/* Player team center */
body[data-page="player"].teamMode main { width: min(1500px, calc(100% - 32px)); }
body[data-page="player"].teamMode { height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
body[data-page="player"].teamMode .playerPage { height: auto; min-height: 100dvh; }
.teamPortal { overflow: hidden; }
.teamPortalHead { padding: 20px 24px; }
.teamPortalHead h2 { margin: 2px 0 0; font-size: 25px; }
.teamPortalCharacter { display: flex; align-items: end; gap: 10px; }
.teamPortalCharacter label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.teamPortalCharacter select { min-width: 230px; }
.teamPortalApp { min-height: 550px; background: radial-gradient(circle at 87% 0, rgba(35,209,139,.07), transparent 31%), #0b1017; }
.teamPortalShell { min-height: 550px; }
.teamSubnav { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid var(--line); background: rgba(15,21,29,.88); }
.teamSubnavButton { min-height: 42px; padding: 0 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 750; cursor: pointer; }
.teamSubnavButton:hover,.teamSubnavButton.active { color: var(--ink); border-bottom-color: var(--primary); }
.teamView { padding: 18px; }
.teamOverview,.teamDiscover,.teamApplicationList { display: grid; gap: 16px; }
.teamHero { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 16px; padding: 24px; border: 1px solid rgba(35,209,139,.2); border-radius: 18px; background: linear-gradient(135deg,rgba(35,209,139,.1),rgba(13,19,28,.94) 54%); }
.teamHeroIdentity h3 { margin: 13px 0 6px; font-size: 28px; }
.teamHeroIdentity p { max-width: 750px; margin: 0; color: var(--muted); }
.teamRoleCard { display: grid; align-content: center; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,10,15,.48); }
.teamRoleCard small,.teamRoleCard span { color: var(--muted); }.teamRoleCard strong { font-size: 18px; }
.teamTypeBadge { display: inline-flex; width: fit-content; padding: 5px 8px; border: 1px solid rgba(35,209,139,.4); border-radius: 99px; color: #6de5b5; background: rgba(35,209,139,.1); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.teamTypeBadge.illegal { border-color: rgba(255,92,87,.38); color: #ff9e9a; background: rgba(255,92,87,.1); }
.teamSection { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16,22,30,.74); }.teamSection>h3 { margin: 0 0 14px; }
.teamParentList { display: flex; flex-wrap: wrap; gap: 10px; }.teamParentCard { display: grid; gap: 3px; min-width: 180px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }.teamParentCard span { color: var(--muted); font-size: 11px; }
.teamAnnouncement { display: grid; gap: 10px; padding: 15px; border-top: 1px solid var(--line); }.teamAnnouncement:first-of-type { border-top: 0; }.teamAnnouncement>div { display: flex; justify-content: space-between; gap: 12px; }.teamAnnouncement small,.teamAnnouncement p { color: var(--muted); }.teamAnnouncement p { margin: 0; white-space: pre-wrap; }
.teamEmpty { display: grid; place-items: center; gap: 7px; min-height: 150px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); text-align: center; }.teamEmpty strong { color: var(--ink); font-size: 17px; }
.teamViewToolbar { display: flex; gap: 10px; justify-content: flex-end; }.teamViewToolbar input { min-width: 300px; }.teamViewToolbar select { width: 145px; }
.teamDiscoverGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }.teamDiscoverGrid>.teamEmpty { grid-column: 1/-1; }
.teamDiscoverCard { display: grid; align-content: start; gap: 11px; min-height: 230px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(16,23,32,.82); transition: border-color .16s,transform .16s; }.teamDiscoverCard:hover { border-color: rgba(35,209,139,.3); transform: translateY(-2px); }.teamDiscoverCard h3,.teamDiscoverCard p { margin: 0; }.teamDiscoverCard p { min-height: 42px; color: var(--muted); }.teamDiscoverCard .button { margin-top: auto; }
.teamDiscoverTop { display: flex; align-items: center; justify-content: space-between; }.teamMemberCount { color: var(--muted); font-size: 11px; }
.teamApplicationCard,.teamReviewCard,.teamMemberRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(16,22,30,.78); }.teamApplicationCard>div,.teamReviewCard>div:first-child,.teamMemberRow>div:first-child { display: grid; gap: 5px; }.teamMemberRow small,.teamReviewCard small { color: var(--muted); }
.teamStatus { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 99px; background: rgba(126,145,172,.13); color: var(--muted); font-size: 11px; font-weight: 750; }.teamStatus.accepted { color: #6de5b5; }.teamStatus.rejected { color: #ff9e9a; }.teamStatus.submitted,.teamStatus.reviewing { color: #8ec5ff; }
.teamApplicationForm { max-width: 850px; margin: 0 auto; padding: 22px; }.teamFormHead { display: flex; justify-content: space-between; margin-bottom: 18px; }.teamFormHead h3 { margin: 3px 0 0; font-size: 24px; }.teamApplicationForm form { display: grid; gap: 14px; }.teamFormField { display: grid; gap: 7px; }.teamFormField>span { font-weight: 750; }.teamFormField>small { color: var(--muted); }.teamFormField textarea { resize: vertical; }
.teamChatLayout { display: grid; grid-template-columns: 245px minmax(0,1fr); min-height: 470px; padding: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.teamChannelList { display: grid; align-content: start; gap: 5px; padding: 12px; border-right: 1px solid var(--line); background: rgba(8,13,19,.7); }.teamChannelList .teamEmpty { min-height: 200px; padding: 15px; }
.teamChannel { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; min-height: 52px; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }.teamChannel small { color: #647287; font-size: 10px; }.teamChannel:hover,.teamChannel.active { border-color: rgba(35,209,139,.25); background: rgba(35,209,139,.08); color: var(--ink); }
.teamConversation { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-width: 0; height: 470px; }.teamConversation>.teamEmpty { align-self: stretch; grid-row: 1/-1; border: 0; }
.teamConversationHead { display: flex; justify-content: space-between; padding: 15px 17px; border-bottom: 1px solid var(--line); }.teamConversationHead span { color: var(--muted); font-size: 12px; }
.teamMessageList { overflow-y: auto; padding: 16px; }.teamMessage { display: grid; gap: 5px; padding: 11px 0; border-bottom: 1px solid rgba(126,145,172,.1); }.teamMessage>div { display: flex; align-items: baseline; gap: 8px; }.teamMessage span,.teamMessage time { color: var(--muted); font-size: 10px; }.teamMessage time { margin-left: auto; }.teamMessage p { margin: 0; color: #ccd5e2; white-space: pre-wrap; overflow-wrap: anywhere; }
.teamChatComposer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 12px; border-top: 1px solid var(--line); }.teamChatComposer textarea { min-height: 44px; resize: none; }
.teamMessageLoader { position: sticky; top: 0; z-index: 1; padding: 7px; border-radius: 8px; background: rgba(12,19,27,.94); color: var(--muted); font-size: 11px; text-align: center; }
.teamMembersView { display: grid; gap: 14px; }.teamMemberHierarchy { display: grid; gap: 8px; }.teamHierarchyHeading { margin: 12px 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: #78e5bc; font-size: 14px; }
.teamMemberDirectoryRow { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(220px,1.4fr) auto; align-items: center; gap: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(16,22,30,.78); }.teamMemberDirectoryRow>div { display: grid; gap: 4px; }.teamMemberDirectoryRow small,.teamMemberMeta { color: var(--muted); }.teamSyncStatus { padding: 5px 8px; border-radius: 99px; background: rgba(126,145,172,.12); color: var(--muted); font-size: 10px; font-weight: 800; }.teamSyncStatus.synced { color: #6de5b5; }.teamSyncStatus.pending { color: #ffd27d; }.teamSyncStatus.failed { color: #ff9e9a; }
.teamManageGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.teamManagePanel { align-content: start; }.teamReviewCard+.teamReviewCard,.teamMemberRow+.teamMemberRow { margin-top: 8px; }.teamInlineActions { display: flex!important; gap: 7px!important; }.teamMemberRow select { width: 155px; margin-left: auto; }
.teamManageHint { margin: -5px 0 13px; color: var(--muted); }.teamMemberInviteSearch { display: grid; grid-template-columns: minmax(180px,1fr) 170px auto; gap: 8px; }.teamMemberInviteResults { display: grid; gap: 8px; margin-top: 12px; }.teamMemberInviteResults>.teamMemberRow { margin-top: 0; }
.teamChannelManagement { grid-column: 1/-1; padding: 0; overflow: hidden; }.teamChannelManagementList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px; }.teamChannelEditor,.teamChannelCreate { display: grid; align-content: start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #0d1319; }.teamChannelEditorHead,.teamChannelWebhookChecks { display: flex; align-items: center; gap: 10px; }.teamChannelEditorHead input { flex: 1; }.teamChannelRules { display: grid; gap: 8px; }.teamChannelRule { display: grid; grid-template-columns: 125px minmax(150px,1fr) auto auto auto; align-items: center; gap: 7px; }.teamRuleCheck { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }.teamRuleCheck input { width: auto; accent-color: var(--primary); }.teamChannelCreate { margin: 0 16px 16px; }.teamChannelCreate h4 { margin: 0; }
.teamReviewCard { flex-wrap: wrap; }.teamReviewAnswers { display: grid!important; flex: 1 0 100%; gap: 10px!important; padding: 13px; border-top: 1px solid var(--line); }.teamReviewAnswers>div { display: grid; gap: 5px; }.teamReviewAnswers p { margin: 0; color: var(--muted); white-space: pre-wrap; }
@media(max-width:1000px){.teamDiscoverGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.teamManageGrid{grid-template-columns:1fr}.teamHero{grid-template-columns:1fr}.teamChatLayout{grid-template-columns:190px minmax(0,1fr)}.teamChannelManagementList{grid-template-columns:1fr}}
@media(max-width:700px){body[data-page="player"].teamMode main{width:min(100% - 16px,1500px)}.teamPortalHead,.teamPortalCharacter{align-items:stretch;flex-direction:column}.teamPortalCharacter select{min-width:0;width:100%}.teamSubnav{overflow-x:auto}.teamView{padding:10px}.teamDiscoverGrid{grid-template-columns:1fr}.teamViewToolbar{align-items:stretch;flex-direction:column}.teamViewToolbar input,.teamViewToolbar select{width:100%;min-width:0}.teamChatLayout{grid-template-columns:1fr}.teamChannelList{grid-template-columns:repeat(2,minmax(0,1fr));border-right:0;border-bottom:1px solid var(--line)}.teamConversation{height:430px}.teamApplicationCard,.teamMemberRow{align-items:stretch;flex-direction:column}.teamMemberRow select{width:100%;margin-left:0}.teamMemberInviteSearch{grid-template-columns:1fr}.teamMemberDirectoryRow{grid-template-columns:1fr}.teamChannelRule{grid-template-columns:1fr}.teamChannelWebhookChecks{align-items:flex-start;flex-direction:column}}
/* Shared application interview and visual form builder */
.teamInterview,.teamFormBuilder{border:1px solid var(--line,#293544);border-radius:16px;background:#10161d;overflow:hidden}
.teamInterview{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:calc(100dvh - var(--team-interview-top,420px) - 14px);min-height:0}
.teamInterview>.teamFormHead{align-items:center;margin:0;padding:17px 20px;border-bottom:1px solid var(--line,#293544);background:rgba(17,24,33,.96)}
.teamInterview>.teamFormHead>div{display:grid;grid-template-columns:auto auto;align-items:end;column-gap:12px}
.teamInterview>.teamFormHead h3{grid-column:1;margin:3px 0 0;font-size:22px}
.teamInterviewProgress{grid-column:2;grid-row:2;padding:4px 8px;border:1px solid rgba(35,209,139,.24);border-radius:99px;color:#71dfb6;background:rgba(35,209,139,.08);font-size:10px;font-weight:800}
.teamInterviewBody{display:grid;grid-template-columns:minmax(0,1fr) clamp(250px,23vw,340px);min-height:0;overflow:hidden}
.teamInterviewConversation.interviewChat{min-height:0;max-height:none;margin:0;padding:22px;overflow-x:hidden;overflow-y:auto;border:0;border-radius:0;overscroll-behavior:contain;background:radial-gradient(circle at 15% 0,rgba(131,108,255,.07),transparent 35%),linear-gradient(145deg,#0b1117,#101820)}
.teamInterviewBubble{width:min(78%,680px);padding:12px 15px;border-radius:14px;background:#1a2530;border:1px solid #2a3948}
.teamInterviewBubble.applicant{align-self:flex-end;background:#103027;border-color:#1b7458}
.teamInterviewBubble small{display:block;color:#6fe3ba;font-weight:700;margin-bottom:4px}.teamInterviewBubble p{margin:0;white-space:pre-wrap}
.teamInterviewAssistant{position:relative;min-height:0;overflow:hidden;border-left:1px solid var(--line,#293544);background:radial-gradient(circle at 50% 28%,rgba(35,209,139,.12),transparent 58%),#0d1319}
.teamInterviewAssistant .teamAgentCharacter{width:100%;height:100%;min-height:0;overflow:hidden}
.teamInterviewAssistant .teamAgentCharacter img{top:8px;right:auto;bottom:0;left:50%;width:min(100%,420px);height:calc(100% - 8px);margin:0;border:0;border-radius:0;object-fit:contain;object-position:center bottom;box-shadow:none;transform:translateX(-50%)}
.teamInterviewAssistant .teamAgentCharacter figcaption{right:16px;bottom:16px;left:16px;text-align:left}
.teamInterviewComposer{padding:16px 20px;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;border-top:1px solid var(--line,#293544);background:rgba(13,19,25,.97)}
.teamInterviewComposer>small{color:#8d9aa8}.teamInterviewComposer textarea,.teamInterviewComposer>input{width:100%;min-height:48px}.teamInterviewComposer textarea{min-height:110px;max-height:220px;resize:vertical}.teamInterviewComposer>.button{justify-self:end;min-width:150px}
.teamInterviewChoices{display:flex;gap:10px;flex-wrap:wrap}.teamInterviewChoices label{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #31404f;border-radius:11px;color:#b8c3ce;background:rgba(10,15,21,.7);cursor:pointer;transition:border-color .15s,background .15s,color .15s}.teamInterviewChoices label:hover{border-color:rgba(35,209,139,.38);color:#fff}.teamInterviewChoices label:has(input:checked){border-color:#23d18b;color:#8ff0c9;background:rgba(35,209,139,.11)}.teamInterviewChoices input{width:auto!important;accent-color:#23d18b}.teamInterviewRadioChoices label{min-width:120px;justify-content:center;font-weight:800}
.teamBuilderHeading,.teamBuilderStageHead,.teamPreviewActions{display:flex;align-items:center;justify-content:space-between;gap:12px}.teamBuilderHeading{padding:18px 20px;border-bottom:1px solid #293544}.teamBuilderHeading h3{margin:0}.teamBuilderHeading small{color:#8d9aa8}
.teamBuilderGeneral{padding:18px 20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.teamBuilderGeneral label{display:flex;flex-direction:column;gap:6px}.teamBuilderGeneral label:last-child{grid-column:1/-1}.teamBuilderGeneral span,.teamBuilderRequired span{font-weight:700;color:#b8c3ce}
.teamBuilderStages{padding:0 20px 20px;display:grid;gap:14px}.teamBuilderStage{border:1px solid #293544;border-radius:13px;overflow:hidden;background:#0d1319;padding-bottom:13px}.teamBuilderStageHead{padding:12px;background:#151d25;border-bottom:1px solid #293544}.teamBuilderStageHead>input{font-weight:800;font-size:1rem}
.teamBuilderQuestion{display:grid;grid-template-columns:minmax(220px,1fr) 170px 110px auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #202b36}.teamBuilderQuestion>.teamBuilderOptions{grid-column:1/-1}.teamBuilderStage>button{margin:12px 12px 0}
.teamBuilderRequired{display:flex!important;flex-direction:row!important;align-items:center;gap:7px}.teamBuilderRequired input{width:auto}
.teamFormPreview{width:min(1320px,94vw);height:min(780px,82dvh);max-height:82dvh;padding:0;border:1px solid #344352;border-radius:18px;background:#10161d;color:inherit;box-shadow:0 28px 90px rgba(0,0,0,.58)}.teamFormPreview::backdrop{background:#020508d9;backdrop-filter:blur(5px)}.teamFormPreview .teamPreviewShell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0}.teamFormPreview .teamFormHead{min-height:82px;padding:16px 22px;border-bottom:1px solid #293544;background:linear-gradient(110deg,rgba(180,14,22,.16),rgba(12,24,31,.97) 42%)}.teamFormPreview .teamFormHead h3{margin:3px 0 0;font-size:25px}.teamFormPreview .teamInterviewBody{grid-template-columns:minmax(0,1fr) minmax(300px,34%);min-height:0;overflow:hidden}.teamFormPreview .teamInterviewConversation{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-height:0;overflow-x:hidden;overflow-y:auto;padding:26px;background:radial-gradient(circle at 15% 0,rgba(131,108,255,.08),transparent 38%),linear-gradient(145deg,#0b1117,#101820)}.teamFormPreview .teamInterviewBubble{width:min(78%,760px);padding:15px 17px;font-size:15px;line-height:1.55}.teamFormPreview .teamInterviewAssistant{display:grid;align-content:center;justify-items:center;gap:8px;min-height:0;padding:18px;border-left:1px solid #293544;background:radial-gradient(circle at 50% 28%,rgba(35,209,139,.14),transparent 55%),#0d1319}.teamFormPreview .teamInterviewAssistant>img{width:min(240px,88%);max-height:calc(100% - 68px);object-fit:contain;object-position:center bottom}.teamFormPreview .teamInterviewAssistant>strong{font-size:17px}.teamFormPreview .teamInterviewAssistant>span{color:#8d9aa8;font-size:12px}.teamPreviewActions{min-height:74px;padding:14px 22px;border-top:1px solid #293544;justify-content:flex-end}
.teamFormPreview .teamPreviewInterview{border:0;border-radius:0}.teamFormPreview .teamInterviewConversation.interviewChat{align-items:stretch}.teamFormPreview .teamPreviewComposer{max-height:240px;padding:14px 20px}.teamPreviewComposerActions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.teamPreviewComposerActions .button{min-width:120px}.teamFormPreview .teamPreviewComposer textarea{min-height:76px;max-height:120px}.teamFormPreview .teamPreviewComposer .teamInterviewChoices{min-height:48px;align-items:center}.teamFormPreview .interviewMessage{width:auto}.teamFormPreview .interviewMessageBody{max-width:100%}
.teamAgentCharacter .teamAgentFallbackImage{opacity:1;transition:opacity .18s ease}.teamAgentCharacter .teamAgentCustomImage{opacity:0;transition:opacity .18s ease}.teamAgentCharacter.hasCustomImage .teamAgentFallbackImage{opacity:0}.teamAgentCharacter.hasCustomImage .teamAgentCustomImage{opacity:1}
@media(max-width:850px){.teamInterviewBody{grid-template-columns:1fr;min-height:0}.teamInterviewConversation.interviewChat{min-height:0;max-height:none}.teamInterviewAssistant{display:none}.teamBuilderGeneral{grid-template-columns:1fr}.teamBuilderQuestion{grid-template-columns:1fr}.teamInterviewComposer{grid-template-columns:1fr}}

/* Unified player portal shell, persistent character switcher and team chat bubbles. */
body[data-page="player"][data-portal-mode="player"] {
  isolation: isolate;
  background: #06080c;
}
body[data-page="player"][data-portal-mode="player"]::before,
body[data-page="player"][data-portal-mode="player"]::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}
body[data-page="player"][data-portal-mode="player"]::before {
  background: url("/assets/login-city-bg.png") center / cover no-repeat;
  filter: brightness(1.4) saturate(1.08) contrast(1.04);
  opacity: .85;
}
body[data-page="player"][data-portal-mode="player"]::after {
  background:
    linear-gradient(90deg,rgba(3,5,8,.48),rgba(3,6,9,.20) 48%,rgba(3,5,8,.52)),
    linear-gradient(180deg,rgba(3,5,8,.20),rgba(3,5,8,.36) 66%,rgba(3,5,8,.62)),
    radial-gradient(circle at 50% 38%,rgba(35,209,139,.06),transparent 31%);
  background-size:auto;
  background-position:center;
}
body[data-page="player"][data-portal-mode="player"] .whitelistFxCanvas { display:block;z-index:100;opacity:.62;pointer-events:none; }
body[data-page="player"][data-portal-mode="player"] .playerPage { position:relative;z-index:2;width:min(1760px,100%); }
body[data-page="player"][data-portal-mode="player"] .portalTopbar,
body[data-page="player"][data-portal-mode="player"] .portalCharacterBar,
body[data-page="player"][data-portal-mode="player"] .portalModules,
body[data-page="player"][data-portal-mode="player"] .panel { backdrop-filter:blur(16px); }

.portalCharacterBar {
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  flex:0 0 auto;
  min-height:112px;
  margin:0 0 10px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(10,16,24,.92);
  box-shadow:0 16px 42px rgba(0,0,0,.28);
}
.portalCharacterBar[hidden] { display:none; }
.portalCharacterBarHead { display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:4px;padding:14px 16px;border-right:1px solid var(--line);background:linear-gradient(135deg,rgba(35,209,139,.09),rgba(131,108,255,.04)); }
.portalCharacterBarHead>div { display:grid;gap:3px; }
.portalCharacterBarHead small { color:var(--primary);font-size:9px;font-weight:900;letter-spacing:.12em; }
.portalCharacterBarHead strong { color:var(--ink-strong);font-size:14px; }
.portalCharacterBarHead .button { min-height:28px;margin-top:7px;padding:4px 9px;font-size:10px; }
.portalCharacterGrid { display:flex;align-items:stretch;gap:9px;min-width:0;padding:9px;overflow-x:auto;scrollbar-gutter:stable; }
.portalCharacterGrid .characterCard { grid-template-columns:52px minmax(150px,1fr);flex:1 0 min(290px,72vw);min-width:230px;max-width:380px;gap:10px;padding:9px;border:1px solid var(--line);border-radius:11px;background:rgba(17,24,34,.86); }
.portalCharacterGrid .characterPortrait { width:52px;height:66px; }
.portalCharacterGrid .characterCardContent { gap:5px; }
.portalCharacterGrid .characterCardHeading strong { font-size:13px; }
.portalCharacterGrid .characterCitizenId,.portalCharacterGrid .characterCardBalance { font-size:9px!important; }
.portalCharacterGrid .characterCardMeta { gap:4px; }
.portalCharacterGrid .characterCardMeta span { padding:3px 5px;font-size:9px; }
.portalModules { flex:0 0 auto;margin-bottom:10px;background:rgba(10,16,24,.88);backdrop-filter:blur(16px); }
.portalModuleTab { min-width:112px; }
.portalModuleTab.active { color:#eafff7;background:linear-gradient(135deg,rgba(35,209,139,.25),rgba(46,115,172,.2));box-shadow:inset 0 0 0 1px rgba(35,209,139,.16); }

body[data-page="player"].teamMode,
body[data-page="player"].reportMode { height:100dvh;min-height:0;overflow:hidden; }
body[data-page="player"].teamMode .playerPage,
body[data-page="player"].reportMode .playerPage { width:min(1760px,100%);height:100dvh;min-height:0;overflow:hidden;padding:28px clamp(24px,3vw,56px) 28px; }
body[data-page="player"].teamMode .teamPortal { display:flex;min-height:0;flex:1 1 auto;flex-direction:column;margin-bottom:0;overflow:hidden; }
body[data-page="player"].teamMode .teamPortalApp { min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain; }
body[data-page="player"].teamMode .teamPortalShell { min-height:100%; }
body[data-page="player"].teamMode main { width:min(1760px,100%); }
body[data-page="player"].reportMode .reportPortal { margin-bottom:0; }

.teamMessageList { display:flex;flex-direction:column;gap:10px; }
.teamMessage { display:flex;align-items:flex-end;gap:9px;width:100%;padding:0;border:0; }
.teamMessage.own { justify-content:flex-start;flex-direction:row-reverse; }
.teamMessage.other { justify-content:flex-start; }
.teamChatAvatar { position:relative;display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;overflow:hidden;border:1px solid var(--line-strong);border-radius:50%;background:#172230; }
.teamChatAvatar img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.teamMessage .teamChatAvatarFallback,.teamTypingIndicator .teamChatAvatarFallback { display:grid;width:100%;height:100%;place-items:center;color:#8ff0c9;background:linear-gradient(135deg,#183329,#24203d);font-size:11px;font-weight:900; }
.teamChatAvatarFallback[hidden] { display:none; }
.teamMessage>.teamMessageBubble { display:grid;align-items:initial;gap:5px;width:fit-content;max-width:min(72%,720px);padding:10px 12px;border:1px solid #293746;border-radius:14px 14px 14px 4px;background:#182431;box-shadow:0 8px 24px rgba(0,0,0,.12); }
.teamMessage.own .teamMessageBubble { border-color:rgba(35,209,139,.28);border-radius:14px 14px 4px 14px;background:linear-gradient(135deg,#12372c,#152c2a); }
.teamMessageMeta { display:flex;align-items:baseline;gap:7px; }
.teamMessageMeta span,.teamMessageMeta time { color:var(--muted);font-size:9px; }
.teamMessageMeta time { margin-left:auto; }
.teamMessageBubble p { margin:0;color:#d9e3ef;white-space:pre-wrap;overflow-wrap:anywhere; }
.teamTypingIndicator { display:flex;align-items:center;gap:9px; }
.teamTypingBubble { display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #293746;border-radius:14px 14px 14px 4px;background:#182431;color:var(--muted);font-size:10px; }
.teamTypingDots { display:flex;gap:3px; }
.teamTypingDots i { width:5px;height:5px;border-radius:50%;background:#9fb0c4;animation:teamTypingBounce 1.1s infinite ease-in-out; }
.teamTypingDots i:nth-child(2) { animation-delay:.14s; }.teamTypingDots i:nth-child(3) { animation-delay:.28s; }
@keyframes teamTypingBounce { 0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1} }

@media(max-width:850px){
  body[data-page="player"].teamMode,body[data-page="player"].reportMode{height:auto;min-height:100dvh;overflow:auto}
  body[data-page="player"].teamMode .playerPage,body[data-page="player"].reportMode .playerPage{height:auto;min-height:100dvh;overflow:visible;padding:10px}
  .portalCharacterBar{grid-template-columns:1fr;top:0}.portalCharacterBarHead{align-items:center;justify-content:space-between;flex-direction:row;padding:8px 10px;border-right:0;border-bottom:1px solid var(--line)}
  .portalCharacterBarHead .button{margin-top:0}.portalCharacterGrid{padding:7px}.portalCharacterGrid .characterCard{flex-basis:240px}
  .portalModules{position:sticky;top:145px;z-index:19}.portalModuleTab{min-width:max-content}
  body[data-page="player"].teamMode .teamPortal{overflow:visible}.teamMessageBubble{max-width:82%}
}

/* Player portal compact red/teal polish. */
body[data-page="player"][data-portal-mode="player"] .playerPage,
body[data-page="player"].teamMode .playerPage,
body[data-page="player"].reportMode .playerPage { padding:18px clamp(16px,2vw,34px); }
body[data-page="player"][data-portal-mode="player"] .portalTopbar {
  min-height:64px;
  margin-bottom:10px;
  padding:8px 16px;
  border-radius:16px;
}
.portalCharacterBar { min-height:92px;margin-bottom:8px;border-radius:16px; }
.portalCharacterBarHead { padding:10px 14px;background:linear-gradient(135deg,rgba(190,12,22,.18),rgba(0,139,148,.10)); }
.portalCharacterBarHead small { color:#f15158; }
.portalCharacterGrid { padding:7px; }
.portalCharacterGrid .characterCard { padding:8px; }
.portalCharacterGrid .characterPortrait { height:58px; }
.portalCharacterGrid .characterCard.selected {
  border-color:rgba(231,39,49,.86);
  background:linear-gradient(135deg,rgba(157,9,18,.42),rgba(1,125,134,.25));
  box-shadow:inset 3px 0 0 #e72731,0 0 0 1px rgba(0,170,177,.16),0 10px 22px rgba(106,4,10,.20);
}
.portalCharacterGrid .characterCard.selected .characterPortrait { border-color:#e72731;box-shadow:0 0 0 2px rgba(0,169,179,.20); }
.portalCharacterGrid .characterCard.selected .characterCardHeading strong { color:#fff; }
.portalModules { min-height:50px;margin-bottom:8px;padding:5px;border-radius:15px; }
.portalModuleTab { min-width:0;padding:8px 16px; }
.portalModuleTab.active { color:#fff;background:linear-gradient(135deg,#ad0e16,#087e88);box-shadow:inset 0 0 0 1px rgba(249,86,94,.32),0 5px 14px rgba(117,7,13,.20); }
body[data-page="player"][data-portal-mode="player"]:not(.reportMode) .portalKicker { color:#ef4a52; }

body[data-page="player"].teamMode .teamPortalHead { min-height:68px;padding:13px 18px; }
body[data-page="player"].teamMode .teamPortalHead h2 { font-size:19px; }
body[data-page="player"].teamMode .teamSubnav { padding:6px 12px 0; }
body[data-page="player"].teamMode .teamSubnavButton { min-height:38px;padding:8px 13px; }
body[data-page="player"].teamMode .teamView { padding:12px; }
body[data-page="player"][data-portal-mode="player"] #characterPanel > .panelHead { min-height:68px;padding:13px 18px; }

@media(min-width:851px){
  body[data-page="player"].teamMode .teamPortalApp { display:flex; }
  body[data-page="player"].teamMode .teamPortalShell.teamMessagesView { display:grid;grid-template-rows:auto minmax(0,1fr);width:100%;min-height:100%; }
  body[data-page="player"].teamMode .teamPortalShell.teamMessagesView .teamView { display:flex;min-height:0; }
  body[data-page="player"].teamMode .teamPortalShell.teamMessagesView .teamChatLayout { flex:1;min-height:0;height:100%; }
  body[data-page="player"].teamMode .teamPortalShell.teamMessagesView .teamConversation { height:auto;min-height:0; }
}
@media(max-width:850px){
  body[data-page="player"].teamMode .playerPage,body[data-page="player"].reportMode .playerPage { padding:10px; }
  .portalCharacterBar { min-height:0; }
}

/* Character identity and full-size team workspace. */
.characterDetailIdentity { display:flex;align-items:center;gap:14px;min-width:0; }
.characterDetailPortrait { position:relative;display:grid;flex:0 0 70px;width:70px;height:70px;place-items:center;overflow:hidden;border:1px solid rgba(231,39,49,.75);border-radius:14px;background:linear-gradient(135deg,#30131a,#12333a);box-shadow:0 0 0 3px rgba(0,154,164,.14); }
.characterDetailPortrait img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.characterDetailPortraitFallback { color:#fff;font-size:24px;font-weight:900; }
.characterDetailPortraitFallback[hidden] { display:none; }

@media(min-width:851px){
  body[data-page="player"].teamMode .teamPortalApp { display:flex;min-height:0; }
  body[data-page="player"].teamMode .teamPortalShell { display:grid;grid-template-rows:auto minmax(0,1fr);flex:1 1 auto;width:100%;min-width:0;min-height:100%; }
  body[data-page="player"].teamMode .teamView { display:block;width:100%;min-width:0;min-height:0;overflow:auto; }
  body[data-page="player"].teamMode .teamView>.teamOverview,
  body[data-page="player"].teamMode .teamView>.teamDiscover,
  body[data-page="player"].teamMode .teamView>.teamApplicationList,
  body[data-page="player"].teamMode .teamView>.teamMembersView,
  body[data-page="player"].teamMode .teamView>.teamManageGrid { width:100%;min-width:0;min-height:0;align-content:start; }
  body[data-page="player"].teamMode .teamView>.teamOverview,
  body[data-page="player"].teamMode .teamView>.teamDiscover,
  body[data-page="player"].teamMode .teamView>.teamApplicationList,
  body[data-page="player"].teamMode .teamView>.teamMembersView { min-height:0;align-content:start; }
  body[data-page="player"].teamMode .teamMembersView { grid-template-rows:auto; }
  body[data-page="player"].teamMode .teamMemberHierarchy { min-width:0;align-content:start; }
  body[data-page="player"].teamMode .teamMemberHierarchy>.teamEmpty,
  body[data-page="player"].teamMode .teamApplicationList>.teamEmpty,
  body[data-page="player"].teamMode .teamDiscoverGrid>.teamEmpty { width:100%;min-height:150px; }
  body[data-page="player"].teamMode .teamManageGrid { align-content:start;grid-auto-rows:auto; }
  body[data-page="player"].teamMode .teamManagePanel { min-width:0; }
  body[data-page="player"].teamMode .teamPortalShell.teamMessagesView .teamView { display:flex; }
  body[data-page="player"].teamMode .teamPortalShell.teamMessagesView .teamChatLayout { flex:1;min-height:0;height:100%; }
  body[data-page="player"].teamMode .teamPortalShell.teamMessagesView .teamConversation { height:auto;min-height:0; }
}
@media(max-width:700px){
  .characterDetailIdentity { align-items:flex-start; }
  .characterDetailPortrait { flex-basis:54px;width:54px;height:54px;border-radius:11px; }
}

@media(min-width:851px){
  body[data-page="player"].teamMode .teamPortalApp:has(>.teamInterview) { overflow:hidden; }
  body[data-page="player"].teamMode .teamPortalApp>.teamInterview { flex:1 1 auto;width:100%;max-width:none;height:100%;min-height:0; }
  body[data-page="player"].teamMode .teamInterviewBody { min-height:0; }
  body[data-page="player"].teamMode .teamInterviewConversation.interviewChat { min-height:0;overflow-y:auto; }
}

/* Keep the profile menu above the sticky character and navigation bars. */
body[data-page="player"] .portalTopbar { position:relative;z-index:60;overflow:visible; }
body[data-page="player"] .portalTopbar .profileMenu { z-index:70; }
body[data-page="player"] .portalTopbar .profileDropdown { z-index:80; }

/* Approved-player header navigation and compact profile character switcher. */
body[data-page="player"][data-portal-mode="player"] .portalTopbar {
  grid-template-columns:minmax(230px,1fr) auto minmax(230px,1fr);
  column-gap:18px;
}
body[data-page="player"][data-portal-mode="player"] .portalTopbar>.portalModules {
  position:static;
  grid-column:2;
  align-self:center;
  justify-self:center;
  min-height:0;
  margin:0;
  padding:3px;
  border-color:rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(5,11,17,.48);
  backdrop-filter:none;
}
body[data-page="player"][data-portal-mode="player"] .portalTopbar>.portalModules .portalModuleTab {
  min-width:0;
  padding:8px 12px;
  white-space:nowrap;
}
body[data-page="player"][data-portal-mode="player"] .profileDropdown {
  width:min(260px,calc(100vw - 32px));
  padding:8px;
  border-radius:15px;
  background:rgba(10,16,24,.98);
  box-shadow:0 24px 65px rgba(0,0,0,.52);
}
body[data-page="player"][data-portal-mode="player"] .profileCharacterPicker {
  display:block;
}
body[data-page="player"][data-portal-mode="player"] .profileCharacterPicker[hidden] {
  display:none;
}
.profileCharacterPickerHead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 7px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.profileCharacterPickerHead>div { display:grid;gap:2px; }
.profileCharacterPickerHead small { color:#f15158;font-size:9px;font-weight:900;letter-spacing:.12em; }
.profileCharacterPickerHead strong { color:var(--ink-strong);font-size:14px; }
.profileCharacterRefresh {
  display:grid;
  width:32px;
  height:32px;
  place-items:center;
  padding:0;
  border:1px solid var(--line-strong);
  border-radius:9px;
  color:var(--muted-strong);
  background:rgba(255,255,255,.04);
  cursor:pointer;
}
.profileCharacterRefresh:hover { color:#fff;border-color:rgba(231,39,49,.65);background:rgba(231,39,49,.12); }
.profileCharacterRefresh svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
.profileCharacterGrid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:6px;
  padding:7px 0;
  overflow:visible;
}
.profileCharacterGrid .characterCard {
  grid-template-columns:42px minmax(0,1fr);
  width:100%;
  min-width:0;
  gap:9px;
  padding:7px;
  border-radius:10px;
  text-align:left;
}
.profileCharacterGrid .characterPortrait { width:42px;height:50px;border-radius:8px; }
.profileCharacterGrid .characterCardContent { min-width:0;gap:4px; }
.profileCharacterGrid .characterCardHeading strong { font-size:12px; }
.profileCharacterGrid .characterCitizenId,.profileCharacterGrid .characterCardBalance { font-size:9px!important; }
.profileCharacterGrid .characterCardMeta { grid-template-columns:minmax(0,1fr);justify-items:start;min-width:0;gap:4px; }
.profileCharacterGrid .characterCardMeta span { flex:0 1 auto;max-width:100%;padding:2px 6px;font-size:9px; }
.profileCharacterGrid .characterCard.selected {
  border-color:rgba(231,39,49,.86);
  background:linear-gradient(135deg,rgba(157,9,18,.42),rgba(1,125,134,.25));
  box-shadow:inset 3px 0 0 #e72731,0 0 0 1px rgba(0,170,177,.13);
}
body[data-page="player"][data-portal-mode="player"] .profileDropdown>form {
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
}
body[data-page="player"][data-portal-mode="player"] .profileDropdown:has(>.profileCharacterPicker[hidden]) { width:180px; }
body[data-page="player"][data-portal-mode="player"] .profileCharacterPicker[hidden]+form { padding-top:0;border-top:0; }
.socialPortalToolbar .pozAccountBar[hidden] { display:none; }
.socialPortalToolbar:has(>.pozAccountBar[hidden]) { min-width:42px; }
body[data-page="player"][data-portal-mode="player"] .profileLogout {
  min-height:42px;
  border-color:rgba(255,83,96,.8);
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,#b80e1b,#e33140 56%,#a70a14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 20px rgba(157,9,18,.28);
  font-size:12px;
  font-weight:900;
  letter-spacing:.045em;
  text-shadow:0 1px 1px rgba(0,0,0,.25);
}
body[data-page="player"][data-portal-mode="player"] .profileLogout:hover {
  border-color:#ff8a92;
  background:linear-gradient(135deg,#d71625,#f04755 56%,#c30d1c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 24px rgba(190,12,22,.42);
  transform:translateY(-1px);
}
body[data-page="player"][data-portal-mode="player"] .profileLogout:active { transform:translateY(0); }

@media(max-width:1200px) and (min-width:851px) {
  body[data-page="player"][data-portal-mode="player"] .portalTopbar { grid-template-columns:minmax(190px,1fr) auto minmax(150px,1fr);column-gap:10px; }
  body[data-page="player"][data-portal-mode="player"] .portalTopbar>.portalModules .portalModuleTab { gap:6px;padding:8px; }
  body[data-page="player"][data-portal-mode="player"] .portalTopbar>.portalModules .portalModuleTab svg { width:17px;height:17px; }
  body[data-page="player"][data-portal-mode="player"] .profileUserName { max-width:120px; }
}
.portalMenuToggle { display:none; }
@media(max-width:850px) {
  body[data-page="player"][data-portal-mode="player"] .portalTopbar {
    grid-template-columns:minmax(0,1fr) auto;
    row-gap:8px;
  }
  body[data-page="player"][data-portal-mode="player"] .portalTopbar>.portalModules {
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    left:0;
    grid-column:auto;
    grid-row:auto;
    justify-self:stretch;
    width:100%;
    max-width:none;
    min-width:0;
    overflow:visible;
    z-index:85;
    padding:10px;
    border:1px solid var(--line-strong);
    border-radius:14px;
    background:rgba(10,16,24,.98);
    box-shadow:0 20px 45px rgba(0,0,0,.5);
  }
  body[data-page="player"][data-portal-mode="player"] .portalTopbar>.portalModules.mobileOpen:not([hidden]) { display:grid;grid-template-columns:minmax(0,1fr);gap:5px; }
  body[data-page="player"][data-portal-mode="player"] .portalTopbar>.portalModules .portalModuleTab { justify-content:flex-start;min-height:44px;padding:10px 14px; }
  body[data-page="player"][data-portal-mode="player"] .portalMenuToggle { display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--line-strong);border-radius:11px;color:var(--ink-strong);background:rgba(255,255,255,.04);cursor:pointer; }
  body[data-page="player"][data-portal-mode="player"] .portalMenuToggle[aria-expanded="true"] { border-color:#e33140;background:linear-gradient(135deg,rgba(184,14,27,.55),rgba(8,126,136,.35)); }
  .portalMenuToggle svg { width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round; }
  body[data-page="player"][data-portal-mode="player"] .portalTopbar .profileMenu { grid-column:2;grid-row:1; }
  body[data-page="player"][data-portal-mode="player"] .profileUserName { display:none; }
}

/* Poz: phone-native social feed, embedded in the player portal. */
.pozPortal { overflow:hidden; }
.pozPortalHead { display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:10px; }
.pozPortalHead h2 { margin:0; }
.pozPortalActions { display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:10px; }
.pozAccountBar { display:flex;gap:7px;max-width:min(58vw,720px);overflow-x:auto;padding:2px;scrollbar-width:thin; }
.pozNavigationBar { position:relative;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:64px;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(3,12,15,.72);overflow:visible; }
.pozNavigation { display:flex;align-items:center;justify-content:center;gap:clamp(18px,5vw,68px);min-width:0;min-height:64px;padding:7px 16px; }
.pozNavigationButton { position:relative;display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;padding:0;border:1px solid transparent;border-radius:14px;color:#91a5a9;background:transparent;cursor:pointer; }
.pozNavigationButton svg { width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
.pozNavigationButton:hover,.pozNavigationButton.active { color:#fff;border-color:rgba(239,57,79,.38);background:rgba(239,57,79,.12); }
.pozNavigationButton.active::after { content:"";position:absolute;right:9px;bottom:5px;left:9px;height:2px;border-radius:999px;background:#ef394f; }
.pozNotificationBadge { position:absolute;top:1px;right:0;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid #061014;border-radius:999px;color:#fff;background:#ef394f;font-size:10px;line-height:1;font-weight:850;box-shadow:0 3px 10px rgba(239,57,79,.38); }
.pozNavigationLabel { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap; }
.pozNavigationAvatar { position:relative;display:grid;place-items:center;width:28px;height:28px;overflow:hidden;border:2px solid currentColor;border-radius:50%;background:linear-gradient(145deg,#48151f,#0d4c54); }
.pozNavigationAvatar img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.pozNavigationAvatar .pozAvatarFallback { font-size:11px; }
.pozAccountChip { display:flex;align-items:center;gap:7px;flex:0 0 auto;min-width:0;padding:5px 9px;border:1px solid rgba(255,255,255,.11);border-radius:999px;color:#dce7e9;background:rgba(7,20,24,.68);cursor:pointer; }
.pozAccountChip.active { border-color:#ef394f;background:linear-gradient(135deg,rgba(178,17,37,.58),rgba(4,116,127,.38));box-shadow:0 0 0 2px rgba(239,57,79,.12); }
.pozAccountChip .pozAccountIdentity { max-width:105px; }
.pozRefresh { flex:0 0 auto; }
.portalPanelTools { display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(7,14,21,.72); }
.reportPanelTools { min-height:58px; }
.socialPortalToolbar { position:relative;z-index:30;display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:93px;min-height:58px;overflow:visible; }
.socialPortalToolbar .pozAccountBar { position:relative;display:block;flex:0 0 42px;width:42px;height:42px;overflow:visible;padding:0; }
.socialPortalToolbar .pozAccountBar.empty { width:auto;max-width:min(70vw,620px);flex-basis:auto; }
.socialPortalToolbar .pozAccountBar.empty .pozEmpty { margin:0;padding:8px 10px;white-space:nowrap; }
.socialPortalToolbar .pozAccountChip { position:absolute;top:0;right:0;z-index:1;width:42px;height:42px;padding:3px;border-radius:50%;opacity:0;pointer-events:none;transform:translateY(0) scale(.94);transition:transform .16s ease,opacity .16s ease,border-color .16s ease; }
.socialPortalToolbar .pozAccountChip.active { z-index:22;opacity:1;pointer-events:auto;transform:none; }
.socialPortalToolbar .pozAccountBar.open { z-index:60; }
.socialPortalToolbar .pozAccountBar.open .pozAccountChip:not(.active) { z-index:20;opacity:1;pointer-events:auto;transform:translateY(calc(var(--account-index) * 48px));box-shadow:0 10px 24px rgba(0,0,0,.42); }
.socialPortalToolbar .pozAccountAvatar { width:34px;height:34px; }
.socialPortalToolbar .pozRefresh { display:grid;place-items:center;width:42px;height:42px;min-height:42px;padding:0;border-radius:12px; }
.socialPortalToolbar .pozRefresh svg { width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
.pozAccountIdentity,.pozPostIdentity { display:grid;min-width:0;text-align:left; }
.pozAccountIdentity strong,.pozPostIdentity strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.pozAccountIdentity small,.pozPostIdentity small { color:#94a9ad; }
.pozAvatar,.pozAccountAvatar,.pozCommentAvatar,.pozProfileAvatar { position:relative;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;border:1px solid rgba(239,57,79,.45);border-radius:50%;background:linear-gradient(145deg,#48151f,#0d4c54); }
.pozAvatar { width:42px;height:42px; }
.pozAccountAvatar { width:34px;height:34px; }
.pozCommentAvatar { width:30px;height:30px; }
.pozProfileAvatar { width:74px;height:74px; }
.pozAvatar img,.pozAccountAvatar img,.pozCommentAvatar img,.pozProfileAvatar img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.pozAvatarFallback { color:#fff;font-weight:800; }
.pozApp { height:min(68vh,760px);min-height:320px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px;background:radial-gradient(circle at 50% 0,rgba(5,116,126,.10),transparent 35%); }
.pozFeed { display:grid;gap:18px;width:min(100%,680px);margin:0 auto; }
.pozPost { overflow:hidden;border:1px solid rgba(255,255,255,.10);border-radius:18px;background:rgba(5,15,18,.86);box-shadow:0 16px 40px rgba(0,0,0,.20); }
.pozPostHeader { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px; }
.pozPostAuthor,.pozInlineProfile { border:0;color:inherit;background:none;cursor:pointer; }
.pozPostAuthor { display:flex;align-items:center;gap:10px;min-width:0;padding:0; }
.pozPostMeta { flex:0 0 auto;color:#789095;font-size:12px; }
.pozMedia { display:grid;gap:2px;overflow:hidden;background:#020607; }
.pozMedia img,.pozMedia video { display:block;width:100%;max-height:620px;object-fit:contain;background:#020607; }
.pozMediaCount2,.pozMediaCount3,.pozMediaCount4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pozMediaCount2 img,.pozMediaCount2 video,.pozMediaCount3 img,.pozMediaCount3 video,.pozMediaCount4 img,.pozMediaCount4 video { height:300px;object-fit:cover; }
.pozCaption { margin:0;padding:13px 15px 4px;white-space:pre-wrap;overflow-wrap:anywhere; }
.pozActions { display:flex;gap:8px;padding:11px 13px; }
.pozAction { border:1px solid rgba(255,255,255,.09);border-radius:999px;padding:7px 11px;color:#c6d4d6;background:rgba(255,255,255,.04);cursor:pointer; }
.pozAction.active { color:#ff5368;border-color:rgba(255,83,104,.42);background:rgba(255,83,104,.10); }
.pozComments:empty { display:none; }
.pozComments { border-top:1px solid rgba(255,255,255,.07);padding:12px 14px; }
.pozCommentList { display:grid;gap:10px;margin-bottom:12px; }
.pozComment { display:flex;align-items:flex-start;gap:9px; }
.pozComment.focused { margin:-5px;padding:9px;border:1px solid rgba(239,57,79,.52);border-radius:11px;background:rgba(239,57,79,.10);box-shadow:0 0 0 3px rgba(239,57,79,.06); }
.pozCommentContent { min-width:0; }
.pozCommentContent p { margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#d3dfe1; }
.pozCommentMeta { display:flex;align-items:center;gap:10px;margin-top:4px;color:#789095; }
.pozCommentLike { padding:0;border:0;color:#91a5a8;background:none;cursor:pointer; }
.pozCommentLike.active { color:#ff5368; }
.pozInlineProfile { padding:0;color:#fff;font-weight:750; }
.pozCommentForm { display:flex;gap:8px; }
.pozCommentForm input { flex:1;min-width:0; }
.pozProfile { width:min(100%,680px);margin:0 auto 18px;padding:18px;border:1px solid rgba(255,255,255,.10);border-radius:18px;background:rgba(5,15,18,.86); }
.pozBack { margin-bottom:16px; }
.pozProfileIdentity { display:flex;align-items:center;gap:16px; }
.pozProfileIdentity h3 { margin:0;font-size:22px; }
.pozProfileIdentity p,.pozProfileBio { margin:3px 0 0;color:#aebfc2; }
.pozProfileStats { display:flex;flex-wrap:wrap;gap:14px;margin:16px 0;color:#c9d7d9; }
.lafSalPortal .pozNavigationButton.active,.lafSalPortal .pozAction.active { color:#63d6ff; }
.lafSalPortal .pozAccountChip.active,.lafSalPortal .pozPost { border-color:rgba(65,183,230,.28); }
.lafSalProfileHeader { display:block;width:100%;height:170px;margin:-18px -18px 16px;width:calc(100% + 36px);object-fit:cover;border-radius:16px 16px 0 0; }
.pozFollow { margin-top:12px; }
.pozProfileActions { display:flex;flex-wrap:wrap;gap:8px; }
.pozStoryStrip { display:flex;gap:10px;width:min(100%,680px);margin:0 auto 16px;padding:4px 0 10px;overflow-x:auto;scrollbar-width:thin; }
.pozStoryBubble { position:relative;display:block;flex:0 0 auto;width:104px;height:154px;overflow:hidden;padding:0;border:2px solid #ef394f;border-radius:14px;color:#fff;background:#071418;cursor:pointer;box-shadow:0 9px 24px rgba(0,0,0,.24); }
.pozStoryBubble.seen { border-color:#536266;opacity:.78; }
.pozStoryPreview { display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease; }
.pozStoryBubble:hover .pozStoryPreview { transform:scale(1.035); }
.pozStoryBubbleFooter { position:absolute;right:0;bottom:0;left:0;display:flex;align-items:center;gap:6px;padding:28px 7px 7px;background:linear-gradient(transparent,rgba(0,0,0,.92)); }
.pozStoryMiniAvatar { position:relative;display:grid;place-items:center;flex:0 0 auto;width:24px;height:24px;overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:linear-gradient(145deg,#48151f,#0d4c54); }
.pozStoryMiniAvatar img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.pozStoryMiniAvatar .pozAvatarFallback { font-size:9px; }
.pozStoryBubble small { min-width:0;overflow:hidden;color:#fff;text-overflow:ellipsis;white-space:nowrap;font-weight:750;text-shadow:0 1px 3px #000; }
.pozStoryGrid { display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px;width:min(100%,920px);margin:0 auto; }
.pozStoryCard { position:relative;overflow:hidden;min-height:230px;padding:0;border:2px solid rgba(239,57,79,.72);border-radius:16px;color:#fff;background:#020607;cursor:pointer;text-align:left; }
.pozStoryCard.seen { border-color:rgba(255,255,255,.16); }
.pozStoryCard > img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.78;transition:transform .2s ease; }
.pozStoryCard:hover > img { transform:scale(1.025); }
.pozStoryCopy { position:absolute;inset:auto 0 0;display:grid;padding:42px 11px 11px;background:linear-gradient(transparent,rgba(0,0,0,.88)); }
.pozStoryCopy small { color:#c1ced0; }
.pozStoryDialog { width:min(94vw,620px);max-height:92vh;padding:0;border:1px solid rgba(255,255,255,.15);border-radius:18px;color:#fff;background:#030809;box-shadow:0 25px 80px rgba(0,0,0,.65); }
.pozStoryDialog::backdrop { background:rgba(0,0,0,.82);backdrop-filter:blur(5px); }
.pozStoryHeader { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px; }
.pozStoryClose { width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:50%;color:#fff;background:rgba(255,255,255,.07);cursor:pointer;font-size:25px; }
.pozStoryImage { display:block;width:100%;max-height:78vh;object-fit:contain;background:#000; }
.pozDiscover,.pozNotifications,.pozConversationList,.pozChat { width:min(100%,760px);margin:0 auto; }
.pozSearchForm,.pozMessageForm { display:flex;gap:9px; }
.pozSearchForm { margin-bottom:14px; }
.pozSearchForm input { flex:1;min-width:0; }
.pozPeople,.pozRequestList,.pozNotificationList,.pozConversationList { display:grid;gap:9px; }
.pozPerson,.pozNotification,.pozConversation { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(5,15,18,.84); }
.pozPersonIdentity,.pozNotificationIdentity,.pozConversation { min-width:0;border:0;color:inherit;background:none;cursor:pointer;text-align:left; }
.pozPersonIdentity,.pozNotificationIdentity { display:flex;align-items:center;gap:10px;padding:0; }
.pozPersonActions { display:flex;flex:0 0 auto;gap:7px; }
.pozPersonActionIcon,.pozSearchSubmit { flex:0 0 auto;width:42px;height:42px;min-height:42px;padding:0;border-radius:12px; }
.pozPersonActionIcon svg,.pozSearchSubmit svg { width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
.pozSearchSubmit { border-color:rgba(239,57,79,.38);color:#fff;background:rgba(178,17,37,.22); }
.pozNotifications h3 { margin:6px 0 10px; }
.pozNotifications .pozRequestList { margin-bottom:24px; }
.pozNotificationCopy,.pozConversationCopy { display:grid;min-width:0;gap:2px; }
.pozNotificationCopy span,.pozConversationCopy p { margin:0;color:#bdcacc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.pozNotificationCopy small,.pozConversationCopy small,.pozConversation time { color:#789095;font-size:12px; }
.pozNotificationPhoto { width:54px;height:54px;flex:0 0 auto;border-radius:9px;object-fit:cover; }
.pozNotificationPhoto { cursor:pointer; }
.pozFocusedPost { display:grid;gap:10px;width:min(100%,680px);margin:0 auto; }
.pozFocusedPost > .pozBack { justify-self:start;margin-bottom:2px; }
.pozConversation { width:100%; }
.pozConversationCopy { flex:1; }
.pozConversation time { flex:0 0 auto; }
.pozChat { display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(5,15,18,.84); }
.pozChatHeader { display:flex;align-items:center;gap:13px;padding:12px;border-bottom:1px solid rgba(255,255,255,.08); }
.pozMessageStream { display:flex;flex-direction:column;gap:8px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;scrollbar-gutter:stable; }
.pozMessage { align-self:flex-start;max-width:min(78%,560px);padding:9px 12px;border:1px solid rgba(255,255,255,.08);border-radius:14px 14px 14px 4px;background:rgba(255,255,255,.07);overflow-wrap:anywhere; }
.pozMessage.mine { align-self:flex-end;border-color:rgba(239,57,79,.24);border-radius:14px 14px 4px 14px;background:rgba(178,17,37,.25); }
.pozMessage p { margin:0;white-space:pre-wrap; }
.pozMessage small { display:block;margin-top:4px;color:#81979a;font-size:11px; }
.pozMessage img { display:block;max-width:100%;max-height:360px;margin-top:7px;border-radius:9px;object-fit:contain; }
.pozMessageForm { position:relative;z-index:1;align-items:center;padding:12px;border-top:1px solid rgba(255,255,255,.08);background:#071115; }
.pozMessageForm textarea,.pozCommentForm textarea { flex:1;min-width:0; }
.pozMessageForm textarea { min-height:44px;max-height:96px;resize:none;font-family:inherit; }
.pozMessageSend { flex:0 0 auto;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;color:#fff;border-color:rgba(239,57,79,.48);background:rgba(178,17,37,.28); }
.pozMessageSend:hover { border-color:#ef394f;background:rgba(178,17,37,.45); }
.pozMessageSend svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.pozLoadMore { grid-column:1/-1;padding:18px;text-align:center;color:#81979a; }
.pozLoadMore.error { color:#ff8997; }
.pozOlderMessages { align-self:center;padding:7px 12px;border:1px solid rgba(255,255,255,.11);border-radius:999px;color:#b8c7c9;background:rgba(255,255,255,.05);cursor:pointer; }
.pozEmptyState,.pozLoading,.pozError,.pozEmpty { padding:28px;text-align:center;color:#9eb1b4; }
.pozError { color:#ff8997; }
.pozSecurity { display:grid;justify-items:center;gap:10px;width:min(100%,520px);margin:38px auto;padding:28px;border:1px solid rgba(255,255,255,.10);border-radius:18px;text-align:center;background:rgba(5,15,18,.86); }
.pozSecurity h3,.pozSecurity p { margin:0; }
.pozSecurity p { color:#9eb1b4; }
.pozSecuritySilent { margin:18px auto;padding:0;border:0;background:transparent; }
.pozSecuritySilent .pozSecurityError { padding:12px 16px;border:1px solid rgba(255,83,104,.35);border-radius:12px;color:#ff8997;background:rgba(178,17,37,.12); }
.pozTurnstileMount { min-height:65px; }
@media(max-width:620px){
  .pozPortalHead { align-items:flex-start; }
  .pozPortalActions { max-width:72%; }
  .pozAccountBar { max-width:100%; }
  .pozAccountChip .pozAccountIdentity { display:none; }
  .pozRefresh { padding-inline:10px; }
  .pozNavigationBar { padding-inline:6px; }
  .pozNavigation { justify-content:space-around;gap:4px;padding-inline:4px; }
  .socialPortalToolbar { min-width:89px;gap:5px; }
  .pozNavigationButton { width:44px;height:44px; }
  .pozApp { height:66vh;min-height:280px;padding:10px; }
  .pozFeed { gap:12px; }
  .pozPost { border-radius:13px; }
  .pozMediaCount2 img,.pozMediaCount2 video,.pozMediaCount3 img,.pozMediaCount3 video,.pozMediaCount4 img,.pozMediaCount4 video { height:210px; }
  .pozCommentForm { align-items:stretch; }
  .pozPerson,.pozNotification,.pozConversation { padding:10px; }
  .pozPerson { align-items:flex-start; }
  .pozPersonActions { flex-direction:column; }
  .pozNotificationIdentity { min-width:0; }
  .pozConversation time { display:none; }
  .pozMessage { max-width:88%; }
  .pozMessageForm { align-items:center; }
}

/* Compact vehicle rows and four desktop columns with one scroll per section. */
.characterDashboardGrid .vehicleGrid { grid-template-columns:minmax(0,1fr);gap:8px;padding:12px; }
.characterDashboardGrid .vehicleCard { display:grid;grid-template-columns:48px minmax(0,1fr);gap:7px 10px;padding:10px;align-items:center; }
.characterDashboardGrid .characterVehicleVisual { grid-column:1;grid-row:1 / 3;width:48px;height:48px;margin:0;font-size:26px; }
.characterDashboardGrid .vehicleCardHead { grid-column:2;min-width:0;gap:5px; }
.characterDashboardGrid .vehicleCardHead strong { font-size:12px;overflow-wrap:anywhere; }
.characterDashboardGrid .vehiclePlate { font-size:9px;padding:3px 5px; }
.characterDashboardGrid .vehicleCardDetails { grid-column:2;gap:4px; }
.characterDashboardGrid .vehicleCardDetails span { font-size:9px;padding:3px 5px; }
@media(min-width:851px) {
  body[data-page="player"][data-portal-mode="player"] #characterPanel:not([hidden]) { display:flex;overflow:hidden;margin-bottom:0; }
  body[data-page="player"][data-portal-mode="player"] #characterDetail { display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;gap:12px;padding:0 12px 12px;overflow:hidden; }
  #characterDetail .characterDetailOverview { flex:0 0 auto;gap:12px;padding:12px; }
  #characterDetail .characterDetailTitle h2 { font-size:24px;margin:4px 0; }
  #characterDetail .characterQuickFact { padding:6px 9px; }
  #characterDetail .characterDashboardGrid { flex:1;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:10px;align-items:stretch; }
  #characterDetail .characterDashboardGrid .characterDetailSection { height:100%;min-height:0;margin:0; }
  #characterDetail .characterDetailSectionHead { display:grid;align-content:center;gap:4px;min-height:66px;padding:10px 12px; }
  #characterDetail .characterDetailSectionHead span { font-size:10px; }
  #characterDetail .inventoryGrid { grid-template-columns:minmax(0,1fr);padding:12px; }
  #characterDetail .inventoryItem { padding:9px;gap:8px; }
  #characterDetail .characterBagImage { width:44px;height:44px;margin:8px auto 0; }
  #characterDetail .characterVitals { display:flex;flex-direction:column;gap:10px;padding:12px; }
  #characterDetail .characterBodyScan { flex:1 0 100px;min-height:100px;max-height:280px;width:100%;height:auto; }
  #characterDetail .healthGrid { flex:0 0 auto;width:100%;gap:6px; }
  #characterDetail .healthMetric { padding:8px; }
}

.characterIcon { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
#characterDetail .characterDetailSectionHead { position:relative;padding-right:52px; }
#characterDetail .characterDetailSectionHead>.characterIcon { position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#42bdb8; }
#characterDetail .characterQuickFact { position:relative;padding-right:36px; }
.characterQuickFact>.characterIcon { position:absolute;right:9px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#819fa5; }
#characterDetail .characterVitals { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px; }
#characterDetail .characterBodyScan { width:100%;height:100%;min-height:180px;max-height:360px; }
#characterDetail .healthGrid { grid-template-columns:minmax(0,1fr); }
/* Let the active approved-player workspace consume the remaining viewport. */
body[data-page="player"][data-portal-mode="player"] #pozPanel:not([hidden]),
body[data-page="player"][data-portal-mode="player"] #lafSalPanel:not([hidden]) {
  display:flex;
  min-height:0;
  flex:1 1 auto;
  flex-direction:column;
  margin-bottom:0;
}
body[data-page="player"][data-portal-mode="player"] #pozPanel:not([hidden]) .pozApp,
body[data-page="player"][data-portal-mode="player"] #lafSalPanel:not([hidden]) .pozApp {
  height:auto;
  min-height:0;
  flex:1 1 auto;
}
