:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #171f2a;
  --line: #263241;
  --text: #edf3f8;
  --muted: #8f9dac;
  --blue: #7db7ff;
  --green: #7ee29a;
  --yellow: #f0c86b;
  --red: #ff827c;
  --hot-red: #ff4b4b;
  --deep-red: #4b080b;
  --ember: #ffb35c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 75, 75, 0.08), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(255, 179, 92, 0.08), transparent 20rem),
    radial-gradient(circle at 10% 90%, rgba(130, 16, 23, 0.22), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid #3d5066;
  border-radius: 6px;
  background: #1c6fb8;
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
}

button:hover {
  filter: brightness(1.08);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

button.ghost {
  background: #182331;
  color: var(--text);
}

input,
select {
  min-height: 40px;
  width: 100%;
  border: 1px solid #334457;
  border-radius: 6px;
  background: #0d131b;
  color: var(--text);
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(125, 183, 255, 0.2);
}

.shell {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 0 24px;
}

.entrance-view {
  min-height: calc(100vh - 40px);
  padding: 16px 0 0;
}

.entrance-frame {
  position: relative;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 75, 75, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 75, 75, 0.16), transparent 18rem),
    radial-gradient(circle at 86% 14%, rgba(255, 179, 92, 0.08), transparent 17rem),
    linear-gradient(180deg, rgba(15, 8, 10, 0.98), rgba(4, 7, 9, 0.98));
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(255, 60, 60, 0.08);
  padding: 34px;
}

.entrance-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(255, 75, 75, 0.42) 36%, transparent 50% 100%),
    linear-gradient(245deg, transparent 0 50%, rgba(255, 179, 92, 0.2) 66%, transparent 78% 100%);
  opacity: 0.32;
  pointer-events: none;
  animation: entranceGlowSweep 9s ease-in-out infinite;
}

.entrance-frame::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.entrance-frame > * {
  position: relative;
  z-index: 1;
}

.entrance-header,
.entrance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.entrance-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 28px;
}

.entrance-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.entrance-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 75, 75, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 75, 75, 0.22), transparent 56%),
    #070a0d;
  color: #fff;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(255, 75, 75, 0.12);
}

.entrance-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.entrance-brand h1 {
  font-size: 22px;
}

.brand-logo {
  position: relative;
  overflow: visible;
}

.logo-mascot {
  position: absolute;
  top: -15px;
  right: -10px;
  z-index: 3;
  width: 31px;
  height: 22px;
  border: 1px solid rgba(255, 178, 178, 0.42);
  border-radius: 16px 14px 12px 9px;
  background:
    radial-gradient(circle at 70% 36%, #ffe8d4 0 2px, transparent 3px),
    linear-gradient(135deg, #ff6a5e, #a80f18 70%);
  box-shadow:
    0 0 14px rgba(255, 75, 75, 0.34),
    0 8px 12px rgba(0, 0, 0, 0.28);
  transform-origin: 20% 100%;
  animation: mascotPeek 3.8s ease-in-out infinite;
}

.logo-mascot::before {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 1px;
  width: 15px;
  height: 7px;
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(135deg, transparent 0 22%, #fff2df 23% 34%, transparent 35% 48%, #fff2df 49% 60%, transparent 61%),
    rgba(20, 2, 4, 0.72);
}

.logo-mascot::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 8px;
  border-radius: 9px 2px 9px 9px;
  background: #d9272d;
  box-shadow: 0 0 10px rgba(255, 75, 75, 0.26);
}

.logo-mascot span {
  position: absolute;
  right: 8px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #110305;
  box-shadow: 0 0 0 1px rgba(255, 235, 218, 0.4);
}

.brand-wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  isolation: isolate;
  overflow: visible;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(255, 75, 75, 0.28),
    0 0 44px rgba(0, 0, 0, 0.9);
}

.brand-wordmark::before,
.brand-wordmark::after {
  content: "";
  position: absolute;
  inset: -0.34em -0.2em -0.28em;
  z-index: -1;
  pointer-events: none;
  filter: blur(16px);
}

.brand-wordmark::before {
  background:
    radial-gradient(circle at 24% 45%, rgba(255, 35, 35, 0.34), transparent 48%),
    radial-gradient(circle at 72% 48%, rgba(118, 0, 8, 0.28), transparent 56%);
  animation: wordmarkRedMist 5.8s ease-in-out infinite;
}

.brand-wordmark::after {
  background:
    radial-gradient(circle at 42% 40%, rgba(0, 0, 0, 0.8), transparent 56%),
    radial-gradient(circle at 88% 62%, rgba(255, 75, 75, 0.16), transparent 46%);
  animation: wordmarkBlackMist 7.2s ease-in-out infinite;
}

.brand-dino {
  position: relative;
  color: #ff5a53;
}

.brand-lovers {
  position: relative;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255, 95, 95, 0.22),
    0 0 18px rgba(255, 75, 75, 0.24);
}

.brand-lovers::before {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.06em;
  bottom: -0.045em;
  height: 0.08em;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(174, 8, 15, 0.68) 10% 16%, transparent 20% 33%, rgba(218, 19, 27, 0.62) 36% 43%, transparent 47% 62%, rgba(132, 4, 10, 0.72) 66% 74%, transparent 78%);
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.58;
  animation: bloodDripPulse 2.8s ease-in-out infinite;
}

.brand-lovers::after {
  content: "";
  position: absolute;
  left: 0.38em;
  bottom: -0.28em;
  width: 0.07em;
  height: 0.28em;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, rgba(229, 28, 36, 0.95), rgba(112, 0, 7, 0.92));
  box-shadow:
    0.83em -0.03em 0 -0.015em rgba(151, 4, 12, 0.86),
    1.67em 0.02em 0 -0.022em rgba(207, 18, 25, 0.86),
    2.34em -0.04em 0 -0.026em rgba(124, 2, 9, 0.78);
  opacity: 0.68;
  transform-origin: top;
  animation: bloodDripPulse 2.8s ease-in-out infinite;
}

.compact-wordmark {
  font-size: 22px;
}

.app-wordmark {
  font-size: clamp(26px, 2.7vw, 40px);
}

.entrance-discord,
.auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 75, 75, 0.28);
  border-radius: 12px;
  background: rgba(7, 10, 13, 0.76);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  padding: 0 20px;
}

.entrance-discord:hover,
.auth-back:hover {
  border-color: rgba(255, 75, 75, 0.55);
  box-shadow: 0 0 22px rgba(255, 75, 75, 0.16);
  filter: none;
}

.entrance-discord.disabled {
  opacity: 0.72;
  cursor: default;
}

.entrance-hero {
  padding: 46px 4px 28px;
}

.entrance-kicker {
  margin: 0 0 10px;
  color: #aeb7bf;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entrance-hero h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
}

.entrance-hero .hero-wordmark {
  font-size: 1em;
}

.entrance-cluster {
  border: 1px solid rgba(255, 75, 75, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 75, 75, 0.1), transparent 16rem),
    rgba(6, 10, 12, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 36px rgba(255, 75, 75, 0.06);
  padding: 22px;
}

.entrance-cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.entrance-cluster-head div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.entrance-cluster-head h3 {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
}

.entrance-cluster-head p {
  margin: 0;
  color: var(--muted);
}

.entrance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 75, 75, 0.36);
  border-radius: 999px;
  background: rgba(255, 75, 75, 0.1);
  color: #ffb1b1;
  font-size: 12px;
  font-weight: 900;
  padding: 0 14px;
  text-transform: uppercase;
}

.entrance-pill.live {
  border-color: rgba(255, 94, 94, 0.58);
  background: rgba(255, 75, 75, 0.14);
  color: #ffd1d1;
}

.entrance-pill.offline {
  border-color: rgba(255, 179, 92, 0.38);
  background: rgba(255, 179, 92, 0.1);
  color: #ffd08c;
}

.server-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 54px;
  align-items: center;
  gap: 18px;
  width: min(760px, 100%);
  min-height: 150px;
  margin-top: 18px;
  border: 1px solid rgba(255, 75, 75, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 75, 75, 0.12), rgba(255, 75, 75, 0.02) 42%, transparent),
    rgba(8, 12, 15, 0.94);
  color: var(--text);
  text-align: left;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(255, 75, 75, 0.08);
  padding: 22px 24px;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle, rgba(255, 75, 75, 0.18), transparent 34%),
    conic-gradient(from 140deg, transparent, rgba(255, 75, 75, 0.22), transparent 38%);
  opacity: 0.55;
  transform: translate3d(-18%, -10%, 0) rotate(0deg);
  animation: serverGlowBreath 7s ease-in-out infinite;
}

.server-card > * {
  position: relative;
  z-index: 1;
}

.server-card:hover {
  border-color: rgba(255, 75, 75, 0.5);
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(255, 75, 75, 0.18);
}

.server-live-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5252;
  box-shadow:
    0 0 0 7px rgba(255, 75, 75, 0.12),
    0 0 20px rgba(255, 75, 75, 0.45);
}

.server-live-dot.offline {
  background: var(--ember);
  box-shadow:
    0 0 0 7px rgba(255, 179, 92, 0.12),
    0 0 20px rgba(255, 179, 92, 0.3);
}

.server-card-main,
.server-card-stats {
  display: grid;
  gap: 8px;
}

.server-card-main strong {
  font-size: 24px;
}

.server-card-main span,
.server-card-stats span {
  color: #aeb7bf;
}

.server-card-stats {
  min-width: 190px;
  justify-items: end;
  font-size: 14px;
}

.server-card-stats strong {
  color: #fff;
  font-size: 20px;
}

.server-card-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 75, 75, 0.22);
  border-radius: 12px;
  background: rgba(4, 7, 9, 0.56);
  color: #fff;
  font-size: 24px;
}

.entrance-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding-top: 22px;
  color: #aeb7bf;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 75, 75, 0.16);
  margin-top: 22px;
  padding: 18px 4px 2px;
  color: #8f9dac;
  font-size: 13px;
}

.app-discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 75, 75, 0.3);
  border-radius: 10px;
  background: rgba(7, 10, 14, 0.82);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  padding: 0 16px;
  box-shadow: 0 0 20px rgba(255, 75, 75, 0.08);
}

.app-discord-link:hover {
  border-color: rgba(255, 95, 95, 0.58);
  box-shadow: 0 0 24px rgba(255, 75, 75, 0.18);
}

.app-discord-link.disabled {
  opacity: 0.68;
  pointer-events: none;
}

@keyframes entranceGlowSweep {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(-8%) translateY(0);
  }
  50% {
    opacity: 0.44;
    transform: translateX(8%) translateY(2%);
  }
}

@keyframes mascotPeek {
  0%,
  100% {
    transform: translateY(4px) rotate(-7deg);
  }
  38% {
    transform: translateY(-2px) rotate(5deg);
  }
  64% {
    transform: translateY(1px) rotate(-2deg);
  }
}

@keyframes wordmarkRedMist {
  0%,
  100% {
    opacity: 0.48;
    transform: translate3d(-4%, 0, 0) scale(0.96);
  }
  50% {
    opacity: 0.82;
    transform: translate3d(5%, -3%, 0) scale(1.08);
  }
}

@keyframes wordmarkBlackMist {
  0%,
  100% {
    opacity: 0.46;
    transform: translate3d(5%, 2%, 0) scale(1.02);
  }
  50% {
    opacity: 0.74;
    transform: translate3d(-4%, -2%, 0) scale(1.14);
  }
}

@keyframes bloodDripPulse {
  0%,
  100% {
    opacity: 0.54;
    transform: scaleY(0.82);
  }
  45% {
    opacity: 0.9;
    transform: scaleY(1.1);
  }
  70% {
    opacity: 0.7;
    transform: scaleY(0.94);
  }
}

@keyframes serverGlowBreath {
  0%,
  100% {
    opacity: 0.38;
    transform: translate3d(-20%, -14%, 0) rotate(0deg) scale(0.98);
  }
  50% {
    opacity: 0.72;
    transform: translate3d(10%, 6%, 0) rotate(18deg) scale(1.06);
  }
}

.login-view {
  display: grid;
  min-height: calc(100vh - 48px);
  place-items: center;
}

body.auth-loading #appView,
body.auth-loading #loginView,
body.auth-loading #entranceView,
body.auth-logged-out #appView,
body.auth-logged-in #loginView,
body.auth-logged-in #entranceView {
  display: none !important;
}

.login-panel {
  width: min(460px, 100%);
  border: 1px solid rgba(255, 75, 75, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 75, 75, 0.12), transparent 18rem),
    rgba(14, 18, 24, 0.96);
  box-shadow:
    var(--shadow),
    0 0 34px rgba(255, 75, 75, 0.08);
  padding: 28px;
}

.auth-back {
  width: auto;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  font-size: 13px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 75, 75, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 75, 75, 0.78), transparent 56%),
    linear-gradient(315deg, rgba(255, 179, 92, 0.4), transparent 52%),
    #101923;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entrance-view .eyebrow {
  color: #ff7777;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.muted,
.panel-header p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.login-form[hidden] {
  display: none;
}

.steam-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(125, 183, 255, 0.54);
  border-radius: 6px;
  background: linear-gradient(180deg, #244f78, #18344f);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.steam-signin:hover {
  filter: brightness(1.08);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin-top: 18px;
}

.auth-tabs button {
  min-height: 34px;
  border-color: #26384c;
  background: #101720;
  color: var(--muted);
  padding: 0 8px;
}

.auth-tabs button.active {
  border-color: rgba(125, 183, 255, 0.7);
  background: #1c6fb8;
  color: #fff;
}

.message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--red);
}

.toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5000;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(125, 183, 255, 0.78);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 60%),
    rgba(7, 10, 14, 0.94);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(255, 75, 75, 0.08);
  color: #f6f9fb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 12px;
  animation: toastIn 180ms ease-out both;
}

.toast.ok {
  border-left-color: #7ee29a;
}

.toast.error {
  border-left-color: #ff827c;
}

.toast.warn {
  border-left-color: #f0c86b;
}

.toast.leaving {
  animation: toastOut 240ms ease-in both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-menu {
  position: relative;
  z-index: 1100;
}

.notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  border-radius: 999px;
  background: #1c6fb8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(420px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d131b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.notification-panel-head h2 {
  margin-bottom: 4px;
  font-size: 17px;
}

.notification-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.notification-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.module-nav button {
  border: 1px solid #26384c;
  border-radius: 6px;
  background: #101720;
  color: var(--muted);
  min-height: 34px;
  padding: 7px 11px;
  text-decoration: none;
}

.module-nav button:hover {
  border-color: #3d5066;
  color: var(--text);
}

.module-nav button.active {
  border-color: rgba(125, 183, 255, 0.7);
  background: #1c6fb8;
  color: #fff;
}

.view-panel {
  display: grid;
  gap: 10px;
}

.view-panel[hidden] {
  display: none;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat {
  padding: 10px 12px;
}

.stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  font-size: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
  gap: 10px;
}

.wide {
  grid-column: span 1;
}

.full-row {
  grid-column: 1 / -1;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.panel-header p {
  margin-bottom: 0;
  font-size: 13px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid rgba(38, 50, 65, 0.76);
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

td {
  color: #dce6ef;
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  background: #223248;
}

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

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
}

.account-form {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.account-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-empty,
.profile-card {
  margin: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d131b;
  padding: 12px;
}

.profile-card {
  display: grid;
  gap: 10px;
}

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

.profile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-status-note {
  margin: -2px 0 0;
  font-size: 13px;
}

.profile-quick-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 118, 118, 0.24);
  border-radius: 8px;
  background: rgba(74, 18, 24, 0.2);
  padding: 8px 10px;
}

.danger-button {
  min-height: 36px;
  border-color: rgba(255, 118, 118, 0.48);
  background: #8d2630;
}

.danger-button:hover:not(:disabled) {
  background: #a5303b;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #31435a;
  border-radius: 999px;
  min-height: 24px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.pill.online {
  border-color: rgba(126, 226, 154, 0.55);
  color: var(--green);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kv {
  border: 1px solid rgba(38, 50, 65, 0.7);
  border-radius: 6px;
  background: #101720;
  padding: 8px;
}

.kv span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kv strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 15px;
}

.profile-actions {
  display: grid;
  gap: 8px;
}

.action-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(125, 183, 255, 0.24);
  border-radius: 8px;
  background: #101720;
  padding: 10px;
}

.action-box.disabled {
  border-color: rgba(38, 50, 65, 0.72);
  opacity: 0.76;
}

.action-box strong,
.action-box span {
  display: block;
}

.action-box span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.action-button {
  min-width: 78px;
}

.growth-action {
  display: grid;
  grid-template-columns: minmax(76px, 96px) 58px;
  gap: 8px;
  justify-content: end;
}

.growth-action input {
  min-width: 0;
  text-align: right;
}

.teleport-box {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.teleport-save-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 8px;
}

.teleport-delete-row {
  display: flex;
  justify-content: flex-end;
}

.danger-outline {
  border-color: rgba(255, 118, 118, 0.42);
  color: #ff9999;
}

.teleport-grid {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.teleport-grid label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.teleport-grid button {
  grid-column: 4;
  min-height: 36px;
}

.vitals-box {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.vitals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.vital-control {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) 96px 58px;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: 8px;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  padding: 8px 10px;
}

.vital-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vital-control input {
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  text-align: right;
}

.vital-control button {
  width: 58px;
  min-width: 0;
  min-height: 36px;
  padding: 0;
}

.action-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.inventory-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inventory-section {
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  padding: 10px;
}

.inventory-section h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.inventory-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 75, 75, 0.05), transparent 62%),
    #0a1017;
  padding: 8px;
}

.inventory-item + .inventory-item {
  margin-top: 8px;
}

.inventory-item-copy {
  min-width: 0;
  flex: 1 1 170px;
}

.inventory-item strong,
.inventory-item span {
  display: block;
  overflow-wrap: anywhere;
}

.inventory-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.inventory-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inventory-item button {
  flex: 0 0 auto;
}

#appView .inventory-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  background: rgba(9, 13, 18, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 16px rgba(0, 0, 0, 0.18);
  padding: 0;
}

.inventory-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#appView .inventory-icon-button.apply {
  border-color: rgba(91, 255, 137, 0.38);
  color: #8cffab;
  box-shadow: 0 0 16px rgba(91, 255, 137, 0.12);
}

#appView .inventory-icon-button.rename {
  border-color: rgba(82, 169, 255, 0.38);
  color: #8fc7ff;
  box-shadow: 0 0 16px rgba(82, 169, 255, 0.12);
}

#appView .inventory-icon-button.delete {
  border-color: rgba(255, 82, 82, 0.4);
  color: #ff8585;
  box-shadow: 0 0 16px rgba(255, 82, 82, 0.12);
}

#appView .inventory-icon-button.confirming {
  background: rgba(91, 10, 14, 0.95);
  box-shadow:
    0 0 18px rgba(255, 82, 82, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.inventory-rename-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  width: 100%;
}

.inventory-rename-row input {
  min-height: 34px;
}

#appView .inventory-mini-button {
  min-height: 34px;
  border-radius: 8px;
  box-shadow: none;
  padding: 0 10px;
}

#appView .inventory-mini-button.save {
  border-color: rgba(91, 255, 137, 0.34);
  background: rgba(32, 115, 61, 0.8);
}

#appView .inventory-mini-button.cancel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(13, 18, 24, 0.92);
}

.request-balance {
  min-width: 112px;
  border: 1px solid rgba(125, 183, 255, 0.24);
  border-radius: 6px;
  background: #101720;
  padding: 7px 10px;
  text-align: right;
}

.request-balance span,
.request-balance strong {
  display: block;
}

.request-balance span {
  color: var(--muted);
  font-size: 12px;
}

.request-balance strong {
  margin-top: 2px;
  font-size: 18px;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.request-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(70px, 1fr) auto auto;
  align-content: start;
  gap: 8px;
  min-height: 176px;
  border: 1px solid rgba(173, 51, 49, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(173, 51, 49, 0.15), transparent 58%),
    linear-gradient(135deg, rgba(255, 75, 75, 0.06), transparent 64%),
    #080d12;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 18px rgba(173, 51, 49, 0.08);
  padding: 10px;
}

.request-card::before {
  content: "Request";
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-card:hover,
.request-card:focus-within {
  border-color: rgba(255, 96, 96, 0.52);
  box-shadow:
    0 0 24px rgba(173, 51, 49, 0.18),
    inset 0 0 28px rgba(173, 51, 49, 0.08);
}

.request-card.ready {
  border-color: rgba(103, 255, 146, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(103, 255, 146, 0.03),
    0 0 20px rgba(103, 255, 146, 0.08);
}

.request-card.cooldown {
  border-color: rgba(147, 82, 255, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(147, 82, 255, 0.16), transparent 58%),
    #080d12;
  box-shadow:
    inset 0 0 0 1px rgba(147, 82, 255, 0.04),
    0 0 20px rgba(147, 82, 255, 0.1);
}

.request-card.locked {
  opacity: 0.78;
  border-style: dashed;
  border-color: rgba(106, 116, 128, 0.44);
  background: rgba(8, 13, 18, 0.82);
}

.request-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 76, 76, 0.14), transparent 58%),
    #05090d;
}

.request-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 54, 54, 0.24), transparent 62%),
    linear-gradient(180deg, rgba(7, 10, 14, 0.02), rgba(7, 10, 14, 0.34));
  pointer-events: none;
}

.request-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.02);
}

.request-thumb span {
  position: relative;
  z-index: 2;
  color: #ffc7c7;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255, 75, 75, 0.48);
}

.request-thumb img + span {
  display: none;
}

.request-card.ready .request-thumb {
  border-color: rgba(103, 255, 146, 0.22);
  box-shadow:
    inset 0 0 22px rgba(103, 255, 146, 0.05),
    0 0 16px rgba(103, 255, 146, 0.08);
}

.request-card.ready .request-thumb::before {
  background:
    radial-gradient(circle at 50% 60%, rgba(103, 255, 146, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(7, 10, 14, 0.02), rgba(7, 10, 14, 0.28));
}

.request-card.cooldown .request-thumb {
  border-color: rgba(147, 82, 255, 0.26);
  box-shadow:
    inset 0 0 24px rgba(147, 82, 255, 0.06),
    0 0 16px rgba(147, 82, 255, 0.1);
}

.request-card.cooldown .request-thumb img,
.request-card.locked .request-thumb img {
  opacity: 0.58;
  filter: saturate(0.72) contrast(0.96);
}

.request-card.ready .request-thumb span {
  color: #b8ffc9;
  text-shadow: 0 0 16px rgba(91, 255, 137, 0.42);
}

.request-card.cooldown .request-thumb span {
  color: #d7bdff;
  text-shadow: 0 0 18px rgba(147, 82, 255, 0.65);
}

.request-card.locked .request-thumb span {
  color: var(--muted);
  text-shadow: none;
}

.request-card-main h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.request-card-hint {
  display: inline-block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.request-option {
  display: grid;
  gap: 4px;
}

.request-option span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.request-option select {
  min-height: 30px;
  border-color: rgba(173, 51, 49, 0.28);
  border-radius: 7px;
  background: rgba(5, 9, 13, 0.92);
  color: #f8eef0;
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
}

.request-card.ready .request-option select {
  border-color: rgba(103, 255, 146, 0.22);
}

.request-cooldown {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(7, 10, 14, 0.86);
  color: #dfe7ef;
  font-size: 10px;
  font-weight: 900;
  padding: 0 6px;
}

.request-card.ready .request-cooldown {
  border-color: rgba(103, 255, 146, 0.24);
  color: #a8ffc0;
}

.request-card.cooldown .request-cooldown {
  border-color: rgba(160, 130, 255, 0.36);
  color: #cabdff;
}

.request-price-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  border-radius: 7px;
  border-color: rgba(255, 75, 75, 0.24);
  background:
    linear-gradient(180deg, rgba(173, 51, 49, 0.88), rgba(119, 31, 34, 0.88)),
    #7a2225;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 16px rgba(173, 51, 49, 0.14);
  font-size: 13px;
  font-weight: 900;
}

.request-card.ready .request-price-button {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 18px rgba(91, 255, 137, 0.12);
}

.request-card.cooldown .request-price-button,
.request-card.locked .request-price-button {
  background: rgba(13, 18, 24, 0.92);
  color: var(--muted);
  box-shadow: none;
}

.request-price-button.confirming {
  filter: brightness(1.16);
  box-shadow:
    0 0 18px rgba(255, 179, 92, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.bonez-icon.request-bonez {
  width: 19px;
  height: 11px;
  animation-duration: 2.2s;
}

.bonez-icon.request-bonez::before,
.bonez-icon.request-bonez::after {
  top: 1px;
  width: 9px;
  height: 9px;
}

.bonez-icon.request-bonez span {
  top: 4px;
  height: 3px;
}

.request-message {
  margin: 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.request-message:empty {
  display: none;
}

.request-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px 10px;
}

.request-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  padding: 12px;
}

.request-panel[hidden] {
  display: none;
}

.request-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.request-panel-head h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.request-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.request-player-list,
.request-location-list,
.request-inbox-stack {
  display: grid;
  gap: 8px;
}

.request-player-row,
.request-location-row,
.request-inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #101720;
  padding: 9px 10px;
}

.request-player-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.request-player-main img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 183, 255, 0.3);
  border-radius: 6px;
  background: #101720;
}

.request-player-main strong,
.request-player-main span,
.request-location-row strong,
.request-location-row span,
.request-inbox-row strong,
.request-inbox-row span {
  display: block;
  overflow-wrap: anywhere;
}

.request-player-main span,
.request-location-row span,
.request-inbox-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.request-inbox-actions {
  display: flex;
  gap: 8px;
}

.request-inbox-actions button,
.request-player-row button {
  min-height: 32px;
  padding: 0 11px;
}

.request-sent {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(38, 50, 65, 0.72);
  margin-top: 10px;
  padding-top: 10px;
}

.request-sent h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.request-sent-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.accounts-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.accounts-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, auto);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  min-height: 72px;
  padding: 10px 12px;
}

.account-row.master {
  border-color: rgba(126, 226, 154, 0.32);
}

.account-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-main img,
.account-avatar-placeholder {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 183, 255, 0.3);
  border-radius: 6px;
  background: #101720;
}

.account-main strong,
.account-main span {
  display: block;
  overflow-wrap: anywhere;
}

.account-main span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.account-main .account-metrics {
  color: var(--blue);
  font-weight: 700;
}

.account-tools {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 0;
}

.account-role-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.account-role-controls .pill {
  min-width: 74px;
  justify-content: center;
  text-align: center;
}

.account-profile-button,
.account-apply-button,
.account-role-select {
  min-height: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 13px;
}

.account-profile-button {
  width: 78px;
  border-color: rgba(125, 183, 255, 0.42);
  background: #142131;
  color: var(--blue);
  font-weight: 700;
}

.account-role-select {
  width: 96px;
  padding: 0 28px 0 10px;
}

.account-apply-button {
  width: 58px;
  padding: 0;
}

.account-points-controls {
  display: grid;
  grid-template-columns: 72px 62px 82px 58px;
  gap: 8px;
  align-items: center;
}

.account-points-input,
.account-point-button {
  min-height: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
}

.account-points-input {
  padding: 0 8px;
  text-align: right;
}

.account-point-button {
  padding: 0;
}

.account-protected {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 92px;
  border: 1px solid rgba(126, 226, 154, 0.2);
  border-radius: 6px;
  background: rgba(126, 226, 154, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.heatmap-panel {
  overflow: hidden;
}

.heatmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(38, 50, 65, 0.76);
  padding: 10px 12px;
}

.heatmap-toolbar .action-message {
  min-height: 0;
}

.heatmap-frame {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 220px);
  min-height: 460px;
  overflow: auto;
  background: #070b10;
}

.heatmap-frame img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.heatmap-frame canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.skin-editor-status {
  border-bottom: 1px solid rgba(38, 50, 65, 0.76);
  padding: 10px 12px;
}

.skin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 0;
  min-height: 620px;
}

.skin-preview {
  position: relative;
  min-height: 620px;
  border-right: 1px solid var(--line);
  background: #070b10;
}

.skin-preview canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.skin-preview-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(125, 183, 255, 0.26);
  border-radius: 8px;
  background: rgba(13, 19, 27, 0.86);
  padding: 9px 10px;
}

.skin-preview-meta strong,
.skin-preview-meta span {
  display: block;
  overflow-wrap: anywhere;
}

.skin-preview-meta span {
  color: var(--muted);
  font-size: 12px;
}

.skin-controls {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.skin-form-row {
  display: grid;
  gap: 6px;
}

.skin-form-row label,
.skin-color-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.skin-color-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.skin-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 94px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  padding: 8px;
}

.skin-color-row label,
.skin-color-row span {
  display: block;
  overflow-wrap: anywhere;
}

.skin-color-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.skin-color-row input[type="color"] {
  width: 48px;
  min-width: 48px;
  padding: 2px;
}

.skin-color-row input[type="text"] {
  min-width: 0;
  padding: 0 8px;
  text-transform: uppercase;
}

.skin-drafts {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(38, 50, 65, 0.72);
  padding-top: 10px;
}

.skin-drafts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skin-drafts-head h3 {
  margin: 0;
  font-size: 16px;
}

.skin-drafts-head button {
  min-height: 32px;
}

.skin-design-list {
  display: grid;
  gap: 8px;
}

.skin-design-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #101720;
  padding: 8px 10px;
}

.skin-design-row strong,
.skin-design-row span {
  display: block;
  overflow-wrap: anywhere;
}

.skin-design-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.skin-design-row button {
  min-height: 32px;
}

.skin-design-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ok-text {
  color: var(--green);
}

.audit-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 260px;
}

.audit-actions {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding: 14px;
}

.audit-action {
  display: block;
  height: auto;
  min-height: 56px;
  border-color: #26384c;
  background: #101720;
  padding: 10px;
  text-align: left;
}

.audit-action strong,
.audit-action span {
  display: block;
}

.audit-action span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.audit-entries {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.audit-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.audit-title strong {
  color: var(--text);
}

.audit-entry {
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  padding: 12px;
}

.audit-entry.ok {
  border-color: rgba(126, 226, 154, 0.28);
}

.audit-entry.bad {
  border-color: rgba(255, 130, 124, 0.36);
}

.audit-entry pre {
  max-height: 220px;
  overflow: auto;
  margin: 10px 0 0;
  color: #aeb9c5;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.audit-empty {
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  color: var(--muted);
  padding: 14px;
}

.storage-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(38, 50, 65, 0.5);
  border-bottom: 1px solid rgba(38, 50, 65, 0.5);
  padding: 10px 12px;
}

.storage-toolbar .action-message {
  min-height: 0;
}

.storage-summary {
  padding: 12px 12px 0;
}

.storage-access-notice {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(173, 51, 49, 0.45);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(173, 51, 49, 0.2), transparent 36%),
    #0d131b;
  box-shadow: inset 0 0 24px rgba(173, 51, 49, 0.08);
  color: var(--muted);
  padding: 16px;
}

.storage-access-notice strong {
  color: var(--text);
  font-size: 18px;
}

.storage-overview {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 8px;
}

.snapshot-list {
  display: block;
  padding: 12px;
}

.storage-slot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.snapshot-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  padding: 12px;
}

.snapshot-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.snapshot-head strong,
.snapshot-head span {
  display: block;
}

.snapshot-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.snapshot-kv {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mutation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mutation-chip,
.empty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(90, 145, 201, 0.35);
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(28, 96, 154, 0.16);
  color: #c8def4;
  font-size: 12px;
  font-weight: 700;
}

.empty-chip {
  border-color: rgba(105, 116, 128, 0.35);
  background: rgba(105, 116, 128, 0.12);
  color: var(--muted);
}

.snapshot-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.snapshot-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.snapshot-actions button {
  min-height: 34px;
}

.storage-slot-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 176px;
  border: 1px solid rgba(173, 51, 49, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(173, 51, 49, 0.15), transparent 58%),
    linear-gradient(135deg, rgba(255, 75, 75, 0.06), transparent 64%),
    #080d12;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 18px rgba(173, 51, 49, 0.08);
  padding: 10px;
}

.storage-slot-card > * {
  position: relative;
  z-index: 1;
}

.storage-slot-card.occupied::before,
.storage-slot-card.occupied::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 12px;
  z-index: 0;
}

.storage-slot-card.occupied::before {
  inset: -14px;
  background:
    radial-gradient(circle at 18% 34%, rgba(255, 35, 35, 0.2), transparent 34%),
    radial-gradient(circle at 76% 24%, rgba(255, 70, 70, 0.16), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(173, 20, 25, 0.24), transparent 48%);
  filter: blur(12px);
  opacity: 0.52;
  animation: storageMistPulse 4.4s ease-in-out infinite;
}

.storage-slot-card.occupied::after {
  inset: -9px;
  background:
    linear-gradient(120deg, transparent 10%, rgba(255, 55, 55, 0.13) 34%, transparent 58%),
    linear-gradient(260deg, transparent 8%, rgba(143, 13, 20, 0.14) 42%, transparent 70%);
  filter: blur(9px);
  opacity: 0.34;
  transform: translate3d(-3px, 0, 0);
  animation: storageMistDrift 6.2s ease-in-out infinite;
}

@keyframes storageMistPulse {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.985);
  }

  48% {
    opacity: 0.68;
    transform: scale(1.025);
  }
}

@keyframes storageMistDrift {
  0%,
  100% {
    opacity: 0.24;
    transform: translate3d(-5px, 2px, 0) scale(1);
  }

  45% {
    opacity: 0.46;
    transform: translate3d(6px, -3px, 0) scale(1.03);
  }

  72% {
    opacity: 0.36;
    transform: translate3d(2px, 4px, 0) scale(0.99);
  }
}

.storage-slot-card:focus-visible,
.storage-slot-card:hover {
  border-color: rgba(255, 96, 96, 0.52);
  box-shadow:
    0 0 24px rgba(173, 51, 49, 0.18),
    inset 0 0 28px rgba(173, 51, 49, 0.08);
}

.storage-slot-card.empty {
  border-style: dashed;
  border-color: rgba(106, 116, 128, 0.44);
  background: rgba(8, 13, 18, 0.82);
  color: var(--muted);
}

.storage-slot-card.expansion {
  border-color: rgba(147, 82, 255, 0.42);
  background:
    radial-gradient(circle at 50% 12%, rgba(147, 82, 255, 0.2), transparent 56%),
    #080d12;
  box-shadow:
    0 0 24px rgba(147, 82, 255, 0.12),
    inset 0 0 28px rgba(147, 82, 255, 0.08);
}

.storage-slot-index {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dino-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 76, 76, 0.14), transparent 58%),
    #05090d;
}

.dino-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

.dino-thumb span {
  color: #ffc7c7;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255, 75, 75, 0.48);
}

.dino-thumb.placeholder span {
  color: var(--muted);
  font-size: 30px;
}

.dino-thumb.relic span {
  color: #d7bdff;
  text-shadow: 0 0 18px rgba(147, 82, 255, 0.65);
}

.storage-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.storage-slot-card strong,
.storage-slot-card span,
.storage-card-copy em {
  overflow-wrap: anywhere;
}

.storage-slot-card > strong,
.storage-card-copy strong {
  color: var(--text);
  font-size: 15px;
}

.storage-slot-card > span,
.storage-card-copy span,
.storage-card-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.storage-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.storage-hover-panel {
  position: absolute;
  z-index: 12;
  left: 8px;
  right: 8px;
  bottom: calc(100% - 14px);
  display: none;
  gap: 6px;
  border: 1px solid rgba(173, 51, 49, 0.46);
  border-radius: 8px;
  background: rgba(7, 10, 14, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 0 28px rgba(173, 51, 49, 0.16);
  padding: 10px;
}

.storage-slot-card:hover .storage-hover-panel,
.storage-slot-card:focus-within .storage-hover-panel {
  display: grid;
}

.storage-hover-panel > strong {
  font-size: 14px;
}

.storage-hover-panel div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(38, 50, 65, 0.5);
  padding-top: 5px;
}

.storage-hover-panel div span {
  color: var(--muted);
  font-size: 11px;
}

.storage-hover-panel div strong {
  color: #dce6ef;
  font-size: 11px;
  text-align: right;
}

.storage-rename-row {
  position: absolute;
  z-index: 14;
  left: 8px;
  right: 8px;
  bottom: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(82, 169, 255, 0.34);
  border-radius: 8px;
  background: rgba(7, 10, 14, 0.98);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(82, 169, 255, 0.18);
  padding: 8px;
}

.storage-rename-row input {
  grid-column: 1 / -1;
  min-height: 42px;
  font-size: 16px;
  font-weight: 800;
}

.storage-rename-row .inventory-mini-button {
  min-height: 36px;
  width: 100%;
}

.events-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.profile-card > .events-list {
  padding: 0;
}

.profile-events {
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #101720;
}

.profile-events summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-events .events-list {
  padding: 0 10px 10px;
}

.event {
  border: 1px solid rgba(38, 50, 65, 0.72);
  border-radius: 8px;
  background: #0d131b;
  padding: 12px;
}

.event-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.event-type {
  color: var(--blue);
  font-weight: 700;
}

.event-meta {
  color: var(--muted);
  font-size: 12px;
}

.event-raw {
  margin-top: 8px;
  color: #aeb9c5;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.error-text {
  color: var(--red);
}

/* Logged-in community hub remodel */
body.auth-logged-in {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 75, 75, 0.14), transparent 26rem),
    radial-gradient(circle at 100% 0%, rgba(255, 179, 92, 0.08), transparent 22rem),
    linear-gradient(180deg, #080b0f, #050709 46%, #07090c);
}

#appView.app-shell {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 75, 75, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 75, 75, 0.1), transparent 24rem),
    rgba(9, 13, 17, 0.92);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.46),
    0 0 36px rgba(255, 75, 75, 0.06);
  padding: 16px;
}

#appView.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255, 75, 75, 0.08) 42%, transparent 58% 100%);
  opacity: 0.24;
}

#appView.app-shell > * {
  position: relative;
  z-index: 1;
}

#appView .topbar {
  position: relative;
  z-index: 80;
  align-items: center;
  border: 1px solid rgba(255, 75, 75, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 75, 75, 0.11), rgba(255, 75, 75, 0.02) 42%, transparent),
    rgba(7, 10, 14, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  padding: 14px 16px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 75, 75, 0.42);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 179, 92, 0.28), transparent 56%),
    linear-gradient(145deg, rgba(255, 75, 75, 0.24), rgba(21, 4, 7, 0.2)),
    #07090c;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(255, 75, 75, 0.12);
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.app-logo.brand-logo {
  overflow: visible;
}

#appView .eyebrow {
  color: #ff7777;
}

.app-subtitle {
  margin: 4px 0 0;
  color: #9ca7b2;
  font-size: 13px;
}

#appView .top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

#appView button,
#appView .steam-signin {
  border-color: rgba(255, 75, 75, 0.34);
  background: linear-gradient(180deg, #b6323a, #7a171f);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

#appView button:hover {
  border-color: rgba(255, 104, 104, 0.62);
  filter: brightness(1.05);
}

#appView button.ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(13, 18, 24, 0.9);
  color: #f1f5f8;
}

.currency-stack {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-chip,
.account-chip {
  border: 1px solid rgba(255, 75, 75, 0.18);
  border-radius: 12px;
  background: rgba(7, 10, 14, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.currency-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  min-height: 46px;
  justify-content: center;
  overflow: visible;
  padding: 7px 12px;
}

.account-chip small,
.hub-card span,
.hub-card small {
  color: #9ca7b2;
  font-size: 12px;
}

.currency-chip strong {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.relic-chip {
  isolation: isolate;
  border-color: rgba(176, 94, 255, 0.28);
  background:
    radial-gradient(circle at 28% 24%, rgba(190, 112, 255, 0.18), transparent 54%),
    rgba(9, 8, 16, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(149, 65, 255, 0.08);
}

.relic-chip::before,
.relic-chip::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.relic-chip::before {
  inset: -12px -16px -14px -18px;
  z-index: 0;
  background:
    radial-gradient(circle at 38% 50%, rgba(190, 112, 255, 0.28), transparent 42%),
    radial-gradient(circle at 76% 42%, rgba(111, 43, 190, 0.2), transparent 46%);
  filter: blur(11px);
  opacity: 0.56;
  animation: relicHaze 4.4s ease-in-out infinite;
}

.relic-chip::after {
  inset: auto -10px -9px 12px;
  z-index: 0;
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(181, 105, 255, 0.22), transparent);
  filter: blur(7px);
  animation: relicSeep 3.8s ease-in-out infinite;
}

.bonez-icon {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 16px;
  transform: rotate(-12deg);
  animation: bonezBreath 2.8s ease-in-out infinite;
}

.bonez-icon::before,
.bonez-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff6d7, #d19b54 72%);
  box-shadow:
    0 0 0 1px rgba(255, 215, 142, 0.32),
    0 0 14px rgba(255, 179, 92, 0.2);
}

.bonez-icon::before {
  left: 0;
  box-shadow:
    6px 0 0 -2px #e5b875,
    0 0 0 1px rgba(255, 215, 142, 0.32),
    0 0 14px rgba(255, 179, 92, 0.2);
}

.bonez-icon::after {
  right: 0;
  box-shadow:
    -6px 0 0 -2px #e5b875,
    0 0 0 1px rgba(255, 215, 142, 0.32),
    0 0 14px rgba(255, 179, 92, 0.2);
}

.bonez-icon span {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 6px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d19b54, #fff0c4 50%, #d19b54);
}

.relic-icon {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: 20px;
  height: 28px;
  clip-path: polygon(48% 0, 90% 24%, 70% 100%, 34% 88%, 11% 30%);
  background:
    linear-gradient(145deg, #f6e7ff 0 12%, #b96cff 26%, #6b1bb5 68%, #210530 100%);
  box-shadow:
    0 0 0 1px rgba(222, 182, 255, 0.42),
    0 0 18px rgba(181, 105, 255, 0.44),
    0 0 32px rgba(129, 53, 222, 0.22);
  animation: relicShardPulse 3.2s ease-in-out infinite;
}

.relic-icon::after {
  content: "";
  position: absolute;
  inset: 4px 6px auto 7px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 244, 255, 0.72);
  filter: blur(2.5px);
}

.icon-button {
  width: 48px;
  min-width: 48px;
  min-height: 46px;
  padding: 0;
  border-radius: 12px;
}

.mailbox-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu {
  position: relative;
  z-index: 1100;
}

.account-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px;
  appearance: none;
  color: #fff;
  text-align: left;
}

#appView .account-chip {
  border-color: rgba(255, 75, 75, 0.18);
  background: rgba(7, 10, 14, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1200;
  min-width: 176px;
  border: 1px solid rgba(255, 75, 75, 0.22);
  border-radius: 12px;
  background: #090d12;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(255, 75, 75, 0.12);
  padding: 6px;
}

.account-menu-action {
  width: 100%;
  justify-content: flex-start;
}

#appView .account-menu-action {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(13, 18, 24, 0.92);
  box-shadow: none;
  color: #fff;
}

.account-chip-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 75, 75, 0.36);
  border-radius: 50%;
  background: #111820;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.account-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-chip-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.account-chip-text strong,
.account-chip-text small {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip-text small {
  text-transform: capitalize;
}

@keyframes bonezBreath {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg) scale(1);
    filter: drop-shadow(0 0 2px rgba(255, 179, 92, 0.14));
  }
  50% {
    transform: translateY(-1px) rotate(-7deg) scale(1.08);
    filter: drop-shadow(0 0 7px rgba(255, 179, 92, 0.35));
  }
}

@keyframes relicShardPulse {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg) scale(1);
    filter: drop-shadow(0 0 5px rgba(181, 105, 255, 0.28));
  }
  50% {
    transform: translateY(-1px) rotate(3deg) scale(1.12);
    filter: drop-shadow(0 0 14px rgba(194, 124, 255, 0.62));
  }
}

@keyframes relicHaze {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(-2px, 1px, 0) scale(0.96);
  }
  45% {
    opacity: 0.78;
    transform: translate3d(5px, -2px, 0) scale(1.08);
  }
  72% {
    opacity: 0.5;
    transform: translate3d(-6px, 3px, 0) scale(1.02);
  }
}

@keyframes relicSeep {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(-8px) scaleX(0.82);
  }
  50% {
    opacity: 0.6;
    transform: translateX(9px) scaleX(1.12);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate3d(10px, -6px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(12px, -4px, 0) scale(0.98);
  }
}

#appView .notification-count {
  background: #ff4b4b;
}

#appView .notification-panel {
  z-index: 1000;
  border-color: rgba(255, 75, 75, 0.2);
  border-radius: 12px;
  background: #090e13;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(255, 75, 75, 0.1);
}

#appView .module-nav {
  position: relative;
  z-index: 20;
  align-items: center;
  border: 1px solid rgba(255, 75, 75, 0.14);
  border-radius: 14px;
  background: rgba(6, 9, 12, 0.72);
  margin: 12px 0;
  padding: 8px;
}

.nav-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #ff9a9a;
  font-size: 11px;
  font-weight: 900;
  padding: 0 8px;
  text-transform: uppercase;
}

#appView .module-nav button {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #aeb7bf;
  min-height: 36px;
  padding: 0 12px;
}

#appView .module-nav button:hover {
  background: rgba(255, 75, 75, 0.08);
  color: #fff;
}

#appView .module-nav button.active {
  border-color: rgba(255, 75, 75, 0.48);
  background: rgba(255, 75, 75, 0.16);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 75, 75, 0.11);
}

.hub-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.hub-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 75, 75, 0.15);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 75, 75, 0.08), transparent 56%),
    rgba(11, 15, 20, 0.9);
  padding: 12px;
}

.hub-card.server {
  border-color: rgba(255, 75, 75, 0.24);
}

.hub-card.server::after {
  content: "";
  position: absolute;
  inset: auto -18% -68% 30%;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 75, 75, 0.13);
  filter: blur(24px);
}

.hub-card strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-size: 22px;
}

.hub-card small {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appView .stat,
#appView .panel {
  border-color: rgba(255, 75, 75, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(18, 24, 31, 0.92), rgba(10, 15, 20, 0.94)),
    #0b1015;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 34px rgba(0, 0, 0, 0.2);
}

#appView .panel-header {
  border-bottom-color: rgba(255, 75, 75, 0.13);
  padding: 14px 16px;
}

#appView .panel-header h2 {
  font-size: 20px;
}

#appView .stat {
  padding: 13px 14px;
}

#appView .stat span,
#appView th {
  color: #9ca7b2;
}

#appView .stat strong {
  font-size: 22px;
}

#appView .profile-empty,
#appView .profile-card,
#appView .inventory-section,
#appView .request-panel,
#appView .request-card,
#appView .request-player-row,
#appView .request-location-row,
#appView .request-inbox-row,
#appView .event,
#appView .kv,
#appView .action-box,
#appView .vital-control {
  border-color: rgba(255, 75, 75, 0.12);
  background: rgba(7, 11, 15, 0.78);
}

#appView .request-balance {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-color: rgba(255, 75, 75, 0.22);
  background: rgba(7, 10, 14, 0.78);
}

#appView .table-wrap {
  background: rgba(5, 8, 11, 0.32);
}

#appView td,
#appView th {
  border-bottom-color: rgba(255, 75, 75, 0.1);
}

#appView input,
#appView select {
  border-color: rgba(255, 75, 75, 0.18);
  background: #070b10;
}

#appView input:focus,
#appView select:focus {
  border-color: rgba(255, 75, 75, 0.58);
  outline-color: rgba(255, 75, 75, 0.16);
}

@media (max-width: 920px) {
  .shell {
    width: min(100% - 20px, 1380px);
    padding-top: 14px;
  }

  .entrance-frame {
    min-height: calc(100vh - 28px);
    padding: 22px;
  }

  .entrance-header,
  .entrance-footer,
  .entrance-cluster-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .entrance-hero {
    padding: 34px 0 24px;
  }

  .entrance-hero h2 {
    font-size: clamp(42px, 13vw, 72px);
  }

  .server-card {
    grid-template-columns: 16px minmax(0, 1fr) 44px;
    gap: 14px;
  }

  .server-card-stats {
    grid-column: 2 / -1;
    justify-items: start;
    min-width: 0;
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #appView.app-shell {
    padding: 10px;
  }

  #appView .topbar {
    align-items: stretch;
  }

  .app-brand {
    align-items: flex-start;
  }

  #appView .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .currency-stack,
  .currency-chip,
  .account-menu,
  .account-chip {
    min-width: 0;
  }

  .currency-stack {
    grid-column: 1 / -1;
  }

  .currency-chip {
    flex: 1;
  }

  .account-chip {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
  }

  .account-menu,
  .notification-menu,
  .notification-button {
    width: 100%;
  }

  .hub-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
  }

  .status-grid,
  .content-grid,
  .kv-grid,
    .audit-layout,
    .storage-overview,
    .inventory-grid,
    .skin-editor-layout,
    .request-grid,
    .request-workspace,
    .snapshot-list {
    grid-template-columns: 1fr;
  }

  .audit-actions {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .action-box,
  .growth-action,
  .profile-quick-actions,
  .teleport-save-row,
  .teleport-grid {
    grid-template-columns: 1fr;
  }

  .teleport-grid select,
  .teleport-grid button {
    grid-column: auto;
  }

  .teleport-delete-row {
    justify-content: stretch;
  }

  .teleport-delete-row button {
    width: 100%;
  }

  .vital-control {
    grid-template-columns: 1fr;
  }

  .request-player-row,
  .request-inbox-row,
  .request-panel-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .request-panel-head,
  .request-inbox-actions {
    flex-direction: column;
  }

  .account-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-role-controls {
    justify-content: flex-start;
  }

  .account-tools {
    justify-items: stretch;
  }

  .account-points-controls {
    grid-template-columns: minmax(72px, 1fr) repeat(3, minmax(56px, 1fr));
  }

  .storage-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .storage-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .request-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .heatmap-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .heatmap-frame {
    max-height: 70vh;
    min-height: 360px;
  }

  .skin-preview {
    min-height: 460px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skin-preview canvas {
    min-height: 460px;
  }

  .skin-preview-meta,
  .skin-drafts-head {
    align-items: stretch;
    flex-direction: column;
  }

  .skin-color-row {
    grid-template-columns: minmax(0, 1fr) 48px 90px;
  }
}

@media (max-width: 560px) {
  .hub-strip {
    grid-template-columns: 1fr;
  }

  #appView .module-nav {
    align-items: stretch;
    flex-direction: column;
  }

  #appView .module-nav button,
  .nav-label {
    width: 100%;
    justify-content: center;
  }

  #appView .top-actions {
    grid-template-columns: 1fr;
  }

  .storage-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-logo {
    width: 42px;
    height: 42px;
  }
}
