:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #0b0d10;
  color: #f3f5f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  width: 100vw;
  height: 100vh;
}

.pvpland-root {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  background: #101418;
}

.game-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.join-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: rgba(10, 12, 14, 0.68);
  padding: 20px;
  pointer-events: auto;
}

.join-box {
  width: min(380px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 24, 28, 0.94);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.join-box h1 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-tab {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfe5eb;
}

.auth-tab.is-selected {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.18);
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  color: #b9c0c8;
  font-size: 13px;
}

.name-input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #f3f5f7;
  background: #0f1317;
  padding: 0 10px;
  outline: none;
}

.name-input:focus {
  border-color: #67a7ff;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: var(--swatch);
  padding: 0;
}

.look-channel-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 14px;
}

.look-channel-row {
  display: grid;
  gap: 7px;
}

.look-editor {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.color-swatch.is-selected {
  border-color: #f3f5f7;
  box-shadow: 0 0 0 2px rgba(103, 167, 255, 0.55);
}

.play-button {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 6px;
  background: #67a7ff;
  color: #07101b;
  font-weight: 700;
}

.hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  padding: 14px;
}

.hud-top,
.hud-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hud-top {
  top: 14px;
}

.hud-top-left,
.hud-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}

.hud-top-left > *,
.hud-top-right > * {
  pointer-events: auto;
}

.hud-top-left {
  flex: 1 1 auto;
}

.hud-top-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.server-restart-banner {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(680px, calc(100vw - 28px));
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 180, 120, 0.28);
  border-radius: 8px;
  background: rgba(38, 20, 14, 0.88);
  color: #ffd3b6;
  backdrop-filter: blur(10px);
}

.hud-top-notice-stack {
  position: fixed;
  top: 58px;
  left: 50%;
  z-index: 1200;
  transform: translateX(-50%);
  display: grid;
  gap: 6px;
  pointer-events: none;
  width: min(680px, calc(100vw - 28px));
}

.hud-top-toast {
  pointer-events: auto;
  min-height: 34px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-top-toast.is-system {
  border-color: rgba(120, 180, 255, 0.28);
  background: rgba(14, 22, 38, 0.88);
  color: #dbe8ff;
}

.hud-top-toast.is-loading {
  border-color: rgba(103, 167, 255, 0.38);
  background: rgba(15, 33, 58, 0.94);
  color: #d7e7ff;
}

.hud-error-banner {
  border-color: rgba(255, 120, 120, 0.34);
  background: rgba(42, 16, 16, 0.9);
  color: #ffd1d1;
}

.toast-text {
  flex: 1 1 auto;
  min-width: 0;
}

.toast-dismiss {
  pointer-events: auto;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  line-height: 1;
  font-size: 18px;
  cursor: pointer;
}

.toast-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
}

.server-restart-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-restart-countdown {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 180, 120, 0.15);
  color: #fff0e6;
  font-variant-numeric: tabular-nums;
}

.server-pin-banner {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 210, 255, 0.28);
  border-radius: 8px;
  background: rgba(14, 22, 38, 0.9);
  color: #d8f1ff;
  backdrop-filter: blur(10px);
}

.server-pin-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-pin-countdown {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(120, 210, 255, 0.16);
  color: #eff9ff;
  font-variant-numeric: tabular-nums;
}

.server-pin-detail {
  color: #92b9c8;
  font-size: 12px;
  white-space: nowrap;
}

.debug-panel {
  pointer-events: auto;
  position: absolute;
  left: 14px;
  top: 60px;
  width: 340px;
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 8px;
}

.debug-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #dfe5eb;
  font-size: 13px;
}

.debug-panel-fps {
  color: #8dd3ff;
  font-variant-numeric: tabular-nums;
}

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

.debug-panel-cell {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9c0c8;
  font-size: 11px;
}

.debug-panel-cell strong {
  color: #f3f5f7;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.debug-panel-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #b9c0c8;
  font-size: 11px;
}

.debug-panel-counts span {
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.debug-panel-section {
  display: grid;
  gap: 8px;
}

.debug-panel-section-title {
  color: #dfe5eb;
  font-size: 12px;
  font-weight: 700;
}

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

.debug-panel-settings {
  display: grid;
  gap: 6px;
}

.debug-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9c0c8;
  font-size: 11px;
}

.debug-setting input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(10, 12, 15, 0.95);
  color: #f3f5f7;
  font-size: 12px;
}

.debug-setting input:focus {
  border-color: rgba(103, 167, 255, 0.5);
  outline: none;
}

.debug-panel-actions {
  display: flex;
  justify-content: flex-end;
}

.debug-reset-button {
  min-width: 128px;
  height: 30px;
}

.hud-bottom {
  bottom: 14px;
  align-items: end;
  flex-wrap: wrap;
}

.hud-minimap-status {
  pointer-events: none;
  position: absolute;
  right: 263px;
  top: 60px;
  display: grid;
  gap: 8px;
}

.hud-minimap-status > * {
  pointer-events: auto;
}

.status-pill,
.health-box,
.death-box,
.toast,
.hotbar,
.utility-inventory,
.chat-bar,
.biome-palette {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 15, 18, 0.74);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.status-pill {
  min-width: 130px;
  padding: 8px 10px;
  color: #b9c0c8;
  font-size: 13px;
}

.gold-wallet {
  position: relative;
  pointer-events: auto;
  display: inline-flex;
  align-items: flex-start;
}

.gold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.gold-pill.is-open {
  border-color: #f7c948;
  background: rgba(247, 201, 72, 0.14);
  color: #ffe69a;
}

.gold-wallet-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 150px;
  padding: 8px;
  border: 1px solid rgba(247, 201, 72, 0.28);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.gold-wallet-action {
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7edf3;
  text-align: left;
  padding: 0 10px;
}

.gold-wallet-action:hover {
  border-color: rgba(247, 201, 72, 0.36);
  background: rgba(247, 201, 72, 0.12);
}

.view-settings-wallet {
  margin-left: 8px;
}

.view-settings-menu {
  min-width: 224px;
  right: 0;
  left: auto;
}

.view-settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
}

.view-settings-toggle span {
  white-space: nowrap;
}

.view-settings-toggle input {
  margin: 0;
}

.hud-button {
  pointer-events: auto;
  min-width: 104px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.74);
  color: #dfe5eb;
}

.hud-button.is-selected {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.18);
}

.hud-button.is-destructive {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
  color: #ffd4d4;
}

.hud-button.is-destructive:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(239, 68, 68, 0.20);
}

.music-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.74);
  backdrop-filter: blur(10px);
}

.music-now-playing {
  min-width: 140px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dfe5eb;
  font-size: 12px;
}

.music-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.music-control-button {
  min-width: 40px;
  width: 40px;
  padding: 0;
}

.music-volume-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9c0c8;
  font-size: 12px;
}

.music-volume-slider {
  width: 110px;
}

.music-volume-value {
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.health-box {
  width: 220px;
  padding: 9px;
}

.health-label {
  margin-bottom: 6px;
  color: #dfe5eb;
  font-size: 13px;
}

.health-track {
  height: 10px;
  overflow: hidden;
  background: #2d343b;
  border-radius: 999px;
}

.health-fill {
  height: 100%;
  width: var(--hp, 100%);
  background: #43a047;
}

.skills-panel {
  pointer-events: auto;
  position: absolute;
  left: 14px;
  top: 60px;
  bottom: auto;
  width: 304px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 74px);
  z-index: 4;
}

.skills-mastery-list {
  display: grid;
  gap: 4px;
  max-height: min(34vh, 340px);
  overflow: auto;
  padding-right: 4px;
}

.minimap-panel {
  pointer-events: auto;
  position: absolute;
  right: 14px;
  top: 60px;
  width: 244px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 8px;
}

.world-map-panel {
  pointer-events: auto;
  position: absolute;
  right: 14px;
  top: 372px;
  width: 360px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 15, 18, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 8px;
}

.world-map-panel.is-inline {
  position: static;
  right: auto;
  top: auto;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.world-map-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

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

.minimap-title {
  color: #dfe5eb;
  font-size: 13px;
  font-weight: 700;
}

.minimap-subtitle {
  color: #84909a;
  font-size: 11px;
  margin-top: 2px;
}

.minimap-toggle {
  min-width: 56px;
  height: 28px;
}

.minimap-canvas {
  display: block;
  width: 100%;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #071015;
  image-rendering: pixelated;
}

.world-map-canvas {
  display: block;
  width: 100%;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #071015;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
}

.world-map-action-popover {
  position: absolute;
  z-index: 5;
  min-width: 150px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 11, 15, 0.96);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 8px;
}

.world-map-action-title {
  color: #dfe5eb;
  font-size: 12px;
  font-weight: 700;
  word-break: break-word;
}

.world-map-action-row {
  display: flex;
  gap: 6px;
}

.world-map-action-button {
  flex: 1 1 0;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
  font-size: 16px;
  line-height: 1;
}

.world-map-action-button:hover {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.16);
}

.skills-header,
.skills-subhead {
  color: #dfe5eb;
  font-size: 13px;
  font-weight: 700;
}

.skills-subhead {
  margin-top: 6px;
  color: #b9c0c8;
  font-size: 12px;
  font-weight: 600;
}

.skills-sort-controls {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.skills-sort-button {
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 999px;
}

.skills-row.is-updated {
  animation: skills-row-pulse 650ms ease-out;
}

@keyframes skills-row-pulse {
  0% {
    transform: translateX(0);
    background: transparent;
  }
  25% {
    transform: translateX(2px);
    background: rgba(103, 167, 255, 0.16);
  }
  100% {
    transform: translateX(0);
    background: transparent;
  }
}

.skills-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c7d0d9;
  font-size: 12px;
  line-height: 1.2;
  position: relative;
  overflow: visible;
}

.skills-row-label {
  min-width: 0;
  flex: 1 1 auto;
}

.skills-row-value {
  flex: 0 0 auto;
  color: #f5f7fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.75),
    1px -1px 0 rgba(0, 0, 0, 0.75),
    -1px 1px 0 rgba(0, 0, 0, 0.75),
    1px 1px 0 rgba(0, 0, 0, 0.75);
}

.skills-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.skills-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #67a7ff;
}

.skills-detail {
  color: #84909a;
  font-size: 11px;
  line-height: 1.2;
  margin-top: -2px;
  margin-bottom: 4px;
}

.skills-row-note {
  color: #84909a;
  font-size: 11px;
  line-height: 1.2;
  margin-top: -2px;
  margin-bottom: 4px;
}

.skills-empty {
  color: #84909a;
  font-size: 12px;
}

.skills-value-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.skills-floating-value {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--skills-accent, #67a7ff);
  color: #f5f7fa;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow:
    -2px -2px 0 rgba(0, 0, 0, 0.82),
    2px -2px 0 rgba(0, 0, 0, 0.82),
    -2px 2px 0 rgba(0, 0, 0, 0.82),
    2px 2px 0 rgba(0, 0, 0, 0.82),
    0 -3px 0 rgba(0, 0, 0, 0.72),
    0 3px 0 rgba(0, 0, 0, 0.72);
  background: rgba(11, 14, 17, 0.24);
  animation: skills-floating-value-lifetime 6500ms linear forwards;
}

.skills-floating-value-mastery {
  color: #dee8f7;
}

.skills-floating-value.is-loss {
  color: #ffd4d4;
  border-color: rgba(255, 100, 100, 0.82);
  background: rgba(42, 10, 10, 0.34);
}

@keyframes skills-floating-value-lifetime {
  0%,
  76.92% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(6px);
  }
}

.hotbar {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(9, minmax(34px, 54px));
  gap: 4px;
  width: min(540px, calc(100vw - 28px));
  padding: 6px;
}

.hotbar-slot {
  position: relative;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
  font-size: 11px;
  overflow: hidden;
  text-align: center;
}

.hotbar-item-graphic {
  position: absolute;
  left: 5px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

.hotbar-label {
  display: block;
  margin-top: 15px;
  padding: 0 4px 0 30px;
  line-height: 1.1;
  text-align: left;
}

.hotbar-slot.is-empty .hotbar-label {
  padding-left: 4px;
  text-align: center;
}

.hotbar-count {
  display: block;
  color: #b9c0c8;
  font-size: 10px;
  margin-top: 1px;
  padding-left: 30px;
  text-align: left;
}

.hotbar-slot.is-empty .hotbar-count {
  padding-left: 4px;
  text-align: center;
}

.hotbar-slot-action {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.24);
  color: #dfe5eb;
  font-size: 10px;
}

.hotbar-slot.is-assigned {
  border-color: rgba(255, 208, 92, 0.3);
}

.hotkey {
  position: absolute;
  top: 3px;
  left: 5px;
  color: #84909a;
  font-size: 10px;
}

.hotbar-slot.is-selected {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(103, 167, 255, 0.34);
}

.hotbar-slot.is-empty {
  cursor: default;
  opacity: 0.45;
}

.utility-inventory {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: min(552px, calc(100vw - 28px));
  min-height: 34px;
  padding: 6px;
}

.utility-item,
.utility-empty {
  min-width: 104px;
  min-height: 30px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #c7d0d9;
  font-size: 12px;
  padding: 0;
  overflow: hidden;
}

.utility-empty {
  display: grid;
  place-items: center;
  color: #84909a;
}

.utility-item-main,
.utility-item-drop,
.utility-item-pin {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.utility-item-main {
  flex: 1;
  text-align: left;
  padding: 4px 8px;
}

.utility-item-drop {
  width: 28px;
  flex: 0 0 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #ff9f9f;
}

.utility-item-pin {
  width: auto;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffd06b;
}

.utility-item.is-selected {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.16);
}

.combat-loadout-panel {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0 14px;
  grid-template-columns: 100px 1fr 240px;
  align-items: end;
  box-sizing: border-box;
}

.combat-loadout-side {
  pointer-events: auto;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 15, 18, 0.36);
  backdrop-filter: blur(4px);
}

.combat-loadout-left {
  align-self: end;
  width: 100px;
}

.combat-loadout-right {
  pointer-events: auto;
  align-self: end;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 8px;
  width: 240px;
}

.combat-loadout-spacer {
  pointer-events: none;
}

.combat-slot-card,
.combat-slot-card *,
.combat-slot-button,
.combat-slot-button * {
  pointer-events: auto;
}

.combat-loadout-context-backdrop,
.combat-loadout-context-menu,
.combat-loadout-context-menu * {
  pointer-events: auto;
}

.combat-loadout-spacer {
  min-height: 1px;
}

.combat-loadout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.combat-loadout-title {
  color: #f3f5f7;
  font-size: 14px;
  font-weight: 700;
}

.combat-loadout-note,
.combat-loadout-help {
  color: #8d97a1;
  font-size: 12px;
  line-height: 1.25;
}

.combat-loadout-help {
  max-width: 280px;
  text-align: right;
}

.combat-loadout-layout {
  display: grid;
  grid-template-columns: minmax(176px, 210px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.combat-loadout-column,
.combat-loadout-overflow {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.combat-loadout-section-title {
  color: #b9c0c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.combat-loadout-stack {
  display: grid;
  gap: 6px;
}

.combat-loadout-grid-2x4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.combat-loadout-overflow-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.combat-slot-card {
  display: grid;
  gap: 4px;
  cursor: grab;
}

.combat-slot-button {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f5f7;
  text-align: left;
  overflow: hidden;
}

.combat-slot-graphic {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

.combat-slot-card.is-selected .combat-slot-button {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(103, 167, 255, 0.22);
}

.combat-slot-card.is-dragging {
  opacity: 0.65;
  cursor: grabbing;
}

.combat-slot-card.is-empty .combat-slot-button {
  opacity: 0.72;
}

.combat-slot-card.is-overflow .combat-slot-button {
  min-height: 58px;
}

.combat-slot-card.is-projectile .combat-slot-button {
  border-color: rgba(255, 208, 92, 0.24);
}

.combat-slot-card.is-projectile.is-selected .combat-slot-button {
  border-color: #ffcf8a;
  background: rgba(255, 207, 138, 0.16);
  box-shadow: 0 0 0 2px rgba(255, 207, 138, 0.18);
}

.combat-slot-key {
  position: absolute;
  top: 4px;
  left: 5px;
  color: #84909a;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.combat-slot-count {
  position: absolute;
  top: 4px;
  right: 5px;
  padding: 0;
  color: #b9c0c8;
  font-size: 10px;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.combat-slot-card.is-empty .combat-slot-count {
  display: none;
}

.combat-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.combat-slot-hotkey,
.combat-slot-clear {
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dfe5eb;
  font-size: 10px;
}

.combat-slot-clear {
  color: #ffb0b0;
}

.combat-loadout-context-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
}

.combat-loadout-context-menu {
  position: fixed;
  z-index: 41;
  display: grid;
  gap: 6px;
  min-width: 188px;
  max-width: 220px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(12, 17, 22, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.combat-loadout-context-title {
  color: #f3f5f7;
  font-size: 13px;
  font-weight: 700;
}

.combat-loadout-context-subtitle {
  color: #8d97a1;
  font-size: 11px;
}

.combat-loadout-context-action {
  width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f5f7;
  text-align: left;
}

.combat-loadout-context-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.chat-bar {
  pointer-events: auto;
  position: relative;
  width: 100%;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.chat-input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0f1317;
  color: #f3f5f7;
  padding: 0 10px;
  outline: none;
}

.chat-input:focus {
  border-color: #67a7ff;
}

.chat-hint {
  color: #84909a;
  font-size: 11px;
  line-height: 1.2;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-suggestion,
.chat-suggestion-empty {
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #dfe5eb;
  font-size: 11px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
}

.chat-suggestion {
  pointer-events: auto;
}

.chat-suggestion-empty {
  color: #84909a;
}

.hud-message-stack {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 148px;
  transform: translateX(-50%);
  display: grid;
  gap: 6px;
  width: min(560px, calc(100vw - 28px));
}

.toast.is-error {
  border-color: rgba(255, 120, 120, 0.42);
  color: #ffb3b3;
}

.biome-palette {
  pointer-events: auto;
  position: absolute;
  right: 14px;
  top: 60px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 288px;
  max-height: calc(100vh - 74px);
  overflow: auto;
  padding: 8px;
  align-items: baseline;
  align-content: baseline;
}

.item-settings-panel {
  display: grid;
  gap: 8px;
}

.item-settings-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.manage-panel {
  display: grid;
  gap: 8px;
}

.manage-button-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.manage-button-list .biome-button {
  min-width: 0;
}

.manage-modal {
  width: min(940px, 100%);
}

.manage-content-modal {
  width: min(1180px, 100%);
}

.manage-content-modal .object-editor-head {
  margin-bottom: 8px;
}

.manage-content-modal .manage-members-grid {
  gap: 14px;
}

.manage-content-modal .manage-members-list,
.manage-content-modal .manage-member-details {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.manage-content-modal .manage-member-details {
  max-height: min(68vh, 720px);
  overflow-y: auto;
  padding-right: 12px;
}

.manage-content-modal .group-editor {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.manage-content-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(103, 167, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.manage-content-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.manage-content-summary-title {
  font-size: 18px;
  font-weight: 700;
}

.manage-content-summary-meta {
  color: #aeb7c1;
  font-size: 12px;
}

.manage-content-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.manage-content-section + .manage-content-section {
  margin-top: 10px;
}

.manage-content-section .edit-section-title {
  margin-top: 0;
}

.manage-content-section .group-offset {
  margin-top: 0;
}

.manage-content-section .group-offset-input {
  width: 100%;
}

.manage-content-modal .manage-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 12px;
  padding-top: 10px;
  background: linear-gradient(to top, rgba(12, 15, 18, 0.98), rgba(12, 15, 18, 0.82));
}

.manage-modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.manage-quest-fields {
  grid-template-columns: 1fr 1fr;
}

.manage-modal-fields .group-offset {
  min-width: 0;
}

.manage-modal-fields .group-offset-input {
  width: 100%;
}

.shop-speech-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.shop-speech-field {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  width: 100%;
}

.shop-speech-field .group-offset-input {
  width: 100%;
  min-height: 78px;
  resize: vertical;
}

.shop-definition-row,
.shop-definition-top-row,
.shop-definition-ingredient-row {
  display: grid;
  gap: 10px;
  align-items: end;
  margin: 6px 0;
}

.shop-definition-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 140px) auto;
}

.shop-definition-top-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 140px);
}

.shop-definition-ingredient-row {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 120px) auto;
}

.shop-definition-row .group-offset,
.shop-definition-top-row .group-offset,
.shop-definition-ingredient-row .group-offset {
  align-items: stretch;
  flex-direction: column;
  gap: 5px;
  white-space: normal;
  min-width: 0;
}

.shop-definition-row .group-offset-input,
.shop-definition-top-row .group-offset-input,
.shop-definition-ingredient-row .group-offset-input {
  width: 100%;
  min-width: 0;
}

.shop-definition-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}

.shop-recipe-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.shop-recipe-card .group-offset {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
}

.shop-recipe-card .group-offset-input {
  width: 100%;
  min-width: 0;
}

.shop-recipe-card .shop-definition-top-row,
.shop-recipe-card .shop-ingredients-list,
.shop-recipe-card .shop-recipe-actions,
.shop-recipe-card .edit-section-title {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.shop-recipe-card .edit-section-title {
  margin-top: 2px;
}

.shop-ingredients-list {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.shop-recipe-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.icon-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.manage-pin-message {
  min-height: 110px;
  resize: vertical;
  padding: 10px;
}

.manage-quest-dialog {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 10px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
}

.manage-quest-dialog-group {
  display: grid;
  gap: 6px;
  align-items: start;
}

.manage-quest-dialog-group .group-offset-input {
  width: 100%;
}

.manage-members-modal {
  width: min(1120px, 100%);
}

.manage-members-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.manage-members-list,
.manage-member-details {
  display: grid;
  gap: 8px;
}

.manage-members-list {
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-right: 6px;
}

.manage-members-rows {
  display: grid;
  gap: 8px;
}

.manage-member-row {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dfe5eb;
}

.manage-member-button {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.manage-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.manage-member-row.is-selected {
  border-color: rgba(103, 167, 255, 0.48);
  background: rgba(103, 167, 255, 0.12);
}

.manage-member-row-head,
.manage-member-card-head,
.manage-member-skill-head,
.manage-member-mastery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.manage-member-row-meta,
.manage-member-stat-line,
.manage-member-skill-meta,
.manage-member-mastery-meta,
.manage-member-card-meta {
  color: #8d97a1;
  font-size: 12px;
}

.manage-member-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.manage-member-card-name {
  font-size: 18px;
  font-weight: 700;
}

.manage-member-stat-block,
.manage-member-skill-list,
.manage-member-mastery-list {
  display: grid;
  gap: 8px;
}

.manage-member-skill-row,
.manage-member-mastery-row {
  display: grid;
  gap: 6px;
}

.manage-content-links {
  display: grid;
  gap: 8px;
}

.manage-content-links .manage-member-row {
  align-items: center;
}

.manage-content-links .manage-member-row input[type="checkbox"] {
  margin: 0;
}

.manage-content-links .manage-member-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-status {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.member-status.is-online {
  color: #9ef3b4;
  background: rgba(61, 150, 86, 0.18);
}

.member-status.is-offline {
  color: #d4d9de;
  background: rgba(255, 255, 255, 0.08);
}

.manage-status {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.manage-status-label {
  color: #84909a;
  font-size: 11px;
}

.manage-status-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffd3b6;
}

.manage-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.item-settings-id-row {
  display: grid;
  grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.item-settings-id-input {
  width: 100%;
  min-width: 0;
  height: 42px;
}

.item-settings-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.item-settings-definition {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  text-align: left;
}

.item-settings-definition .item-graphic {
  flex: 0 0 24px;
}

.item-settings-definition-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.1;
}

.item-settings-editor {
  display: grid;
  gap: 8px;
}

.item-settings-field {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 10px 10px;
  white-space: normal;
  min-width: 0;
}

.item-settings-field--representation {
  align-items: start;
}

.item-settings-field-label {
  color: #d5dbe2;
  font-size: 13px;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-settings-editor .group-offset,
.item-settings-actions .group-offset {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  white-space: normal;
}

.item-settings-editor .group-offset-input,
.item-settings-field .group-offset-input,
.item-settings-id-row .group-offset-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
}

.item-settings-field input[type='checkbox'] {
  justify-self: start;
  width: auto;
  margin-left: 2px;
}

.item-settings-actions .group-offset-input {
  height: 34px;
}

.item-settings-representation-picker {
  position: relative;
  min-width: 0;
}

.item-settings-representation-toggle {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  display: block;
  flex: 0 0 60px;
}

.item-settings-representation-toggle .object-part-preview {
  width: 100%;
  height: 100%;
}

.object-picker-portal {
  position: fixed;
  z-index: 2000;
  width: min(610px, calc(100vw - 48px));
  max-width: min(610px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(11, 15, 18, 0.98);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}

.object-picker-portal-content {
  width: 100%;
  display: grid;
  gap: 8px;
}

.object-picker-search-row {
  display: grid;
}

.object-picker-search {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0f1317;
  color: #f3f5f7;
}

.object-picker-portal .object-part {
  width: 60px;
  height: 60px;
}

.item-settings-representation-grid {
  grid-template-columns: repeat(auto-fill, minmax(55px, 55px));
  gap: 8px;
  width: 100%;
  max-height: min(60vh, 420px);
  overflow: auto;
  padding-right: 2px;
}

.item-settings-representation-grid .object-part-card {
  width: 60px;
  height: 60px;
}

.item-settings-representation-grid .object-part-actions {
  display: none;
}

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

.item-settings-actions .group-offset {
  display: grid;
  grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 1 1 100%;
}

.audio-panel {
  display: grid;
  gap: 8px;
}

.audio-upload-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.audio-upload-card .manage-content-summary,
.audio-upload-card .manage-content-section {
  padding: 0;
  border: 0;
  background: transparent;
}

.audio-file-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0f1317;
  color: #dfe5eb;
}

.audio-file-input::file-selector-button {
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3f5f7;
}

.audio-file-field {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  width: 100%;
}

.audio-file-name {
  color: #8d97a1;
  font-size: 12px;
}

.audio-asset-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.audio-asset-groups {
  display: grid;
  gap: 10px;
}

.audio-asset-group {
  display: grid;
  gap: 8px;
}

.audio-asset-group-title {
  color: #b9c0c8;
  font-size: 12px;
  font-weight: 700;
}

.audio-asset-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.audio-asset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.audio-asset-meta {
  color: #8d97a1;
  font-size: 11px;
  word-break: break-word;
}

.audio-asset-category {
  color: #ffd06b;
  font-size: 11px;
  text-transform: uppercase;
}

.audio-asset-link {
  color: #8fdaf0;
  font-size: 11px;
  text-decoration: none;
}

.zone-settings-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.zone-setting-row {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.zone-setting-row[data-zone-select] {
  cursor: pointer;
}

.zone-setting-row.is-selected {
  border-color: rgba(103, 167, 255, 0.42);
  background: rgba(103, 167, 255, 0.08);
}

.zone-setting-row.is-current {
  border-color: rgba(143, 230, 188, 0.36);
}

.zone-setting-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #b9c0c8;
  font-size: 12px;
}

.zone-setting-grid {
  display: grid;
  gap: 8px;
}

.zone-setting-grid label {
  display: grid;
  gap: 4px;
  color: #b9c0c8;
  font-size: 12px;
}

.zone-setting-grid input[type="number"] {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0f1317;
  color: #f3f5f7;
  padding: 0 8px;
}

.zone-music-section {
  display: grid;
  gap: 6px;
}

.zone-music-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #b9c0c8;
  font-size: 12px;
}

.zone-music-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zone-music-pill {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8dde2;
  font-size: 12px;
  cursor: pointer;
}

.zone-music-pill.is-selected {
  border-color: rgba(103, 167, 255, 0.62);
  background: rgba(103, 167, 255, 0.16);
  color: #f6fbff;
}

.zone-setting-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.zone-setting-actions .world-map-action-button {
  min-width: 66px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.zone-create-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zone-create-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.zone-create-form {
  display: grid;
  gap: 8px;
}

.zone-create-form label {
  display: grid;
  gap: 4px;
  color: #b9c0c8;
  font-size: 12px;
}

.zone-create-form input[type="text"],
.zone-create-form input[type="number"] {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0f1317;
  color: #f3f5f7;
  padding: 0 8px;
}

.zones-editor {
  width: min(1440px, calc(100vw - 40px));
  max-height: min(92vh, 920px);
  overflow-x: hidden;
}

.zones-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 380px);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.zones-editor-map,
.zones-editor-side {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.zones-editor-map .world-map-canvas {
  height: 640px;
}

.zones-editor-side .zone-settings-list {
  max-height: 72vh;
}

.edit-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  max-height:175px;
}

.edit-section-title {
  color: #b9c0c8;
  font-size: 12px;
  margin-top: 4px;
}

.edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.biome-button {
  flex: 1 1 84px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
  font-size: 12px;
  text-transform: capitalize;
}

.biome-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 60px));
  gap: 8px;
  width: 100%;
}

.biome-button.is-selected {
  border-color: #ffeb3b;
  background: rgba(255, 235, 59, 0.16);
}

.object-tools {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.object-header-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.warp-direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.object-list {
  width: 100%;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.object-part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(55px, 55px));
  gap: 8px;
  width: 100%;
}

.object-part-card {
  width: 60px;
  height: 60px;
  position: relative;
}

.object-part {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.object-part.is-selected {
  border-color: #ffeb3b;
  background: rgba(255, 235, 59, 0.12);
}

.object-part-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.object-part-preview-fallback {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: rgba(255, 255, 255, 0.04);
}

.active-object-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.active-object-preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 180ms ease;
  object-fit: contain;
  image-rendering: pixelated;
}

.active-object-preview-frame.is-active {
  opacity: 1;
}

.object-part-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.object-part-card:hover .object-part-actions,
.object-part-card:focus-within .object-part-actions {
  opacity: 1;
  pointer-events: auto;
}

.object-part-action {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(12, 15, 18, 0.92);
  color: #f3f5f7;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.wall-control-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.wall-panel-section {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.wall-panel-subsection {
  display: grid;
  gap: 6px;
}

.wall-mode-tools,
.wall-target-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wall-mode-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 40px;
  min-width: 40px;
  width: 40px;
  height: 32px;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.wall-mode-button .bi {
  font-size: 17px;
}

.wall-color-host {
  width: 100%;
  min-width: 0;
}

.wall-list {
  width: 100%;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.warp-tile-list {
  width: 100%;
  display: grid;
  gap: 6px;
}

.warp-tile-row {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.warp-tile-row.is-selected {
  border-color: rgba(103, 167, 255, 0.45);
  background: rgba(103, 167, 255, 0.12);
}

.warp-tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #dfe5eb;
  font-size: 12px;
}

.warp-tile-head strong {
  font-weight: 700;
  word-break: break-word;
}

.warp-tile-head span {
  color: #ffb48b;
  font-size: 11px;
  text-transform: capitalize;
}

.warp-tile-meta {
  color: #84909a;
  font-size: 11px;
}

.wall-row {
  grid-template-columns: 1fr;
}

.object-group-name {
  width: 100%;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0f1317;
  color: #f3f5f7;
  padding: 0 9px;
  font-size: 12px;
  outline: none;
}

.object-group-name:focus {
  border-color: #67a7ff;
}

.object-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.object-row.is-selected .object-select {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.18);
}

.object-select,
.object-edit {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
  min-height: 40px;
}

.object-select {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 6px 9px;
}

.object-name {
  font-size: 12px;
  line-height: 1.1;
}

.object-meta {
  color: #84909a;
  font-size: 11px;
}

.object-edit {
  min-width: 24px;
  font-size: 14px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  align-self: center;
}

.object-editor-backdrop {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 12, 0.72);
  padding: 20px;
}

.object-editor {
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 15, 18, 0.96);
  border-radius: 8px;
  padding: 14px;
}

.object-editor.object-editor-large {
  width: min(1220px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  padding: 16px;
}

.object-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.object-editor-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.object-editor-title {
  color: #f3f5f7;
  font-size: 18px;
  font-weight: 700;
}

.object-editor-status {
  margin-top: 4px;
  font-size: 12px;
  color: #9aa6b2;
}

.object-editor-status.is-dirty {
  color: #fbbf24;
}

.object-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #dfe5eb;
  font-size: 13px;
}

.biome-palette .object-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
}

.biome-palette .object-toggle input {
  margin-top: 2px;
}

.biome-choice {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  padding: 0;
  display: block;
  overflow: hidden;
  position: relative;
}

.biome-choice-preview {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.biome-choice-preview-fallback {
  background-size: cover;
}

.object-range {
  width: 100%;
  margin-top: 6px;
}

.object-editor-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 260px;
  gap: 14px;
  align-items: start;
}

.object-editor.object-editor-large .object-editor-grid {
  grid-template-columns: minmax(560px, 1fr) 300px;
}

.actor-editor {
  width: min(900px, 100%);
}

.actor-editor-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.actor-canvas-column {
  display: grid;
  gap: 10px;
}

.actor-frame-row,
.actor-state-toolbar,
.actor-state-edit {
  display: grid;
  gap: 8px;
  align-items: center;
}

.actor-frame-row {
  grid-template-columns: 64px 1fr 64px 96px;
}

.actor-origin-row {
  display: grid;
  grid-template-columns: 90px 90px;
  gap: 8px;
  margin-top: 10px;
}

.actor-state-toolbar {
  grid-template-columns: 1fr 92px;
}

.actor-state-edit {
  grid-template-columns: 70px 1fr 70px;
}

.actor-layer-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.actor-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  row-gap: 9px;
  column-gap: 8px;
  align-items: start;
  min-height: 106px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px;
}

.actor-layer-row.is-selected {
  border-color: #ffeb3b;
  background: rgba(255, 235, 59, 0.12);
}

.actor-layer-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 50px 50px 58px 76px;
  gap: 6px;
  min-width: 0;
}

.actor-visible-toggle {
  display: flex;
  align-items: end;
  gap: 5px;
  color: #84909a;
  font-size: 11px;
  min-height: 48px;
}

.actor-channel-list,
.actor-state-row {
  display: grid;
  gap: 6px;
  color: #dfe5eb;
  font-size: 12px;
}

.actor-channel-list {
  max-height: 150px;
  overflow: auto;
  padding-right: 4px;
}

.actor-channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 72px;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 6px 0;
}

.actor-channel-colors {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.actor-channel-color {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.actor-channel-color input[type='color'] {
  width: 34px;
  height: 28px;
}

.actor-channel-opacity {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #b9c0c8;
  font-size: 11px;
}

.actor-channel-opacity-input {
  width: 100%;
}

.actor-state-list {
  display: grid;
  gap: 8px;
}

.actor-state-row {
  grid-template-columns: 92px 1fr 70px;
  align-items: center;
}

.mob-editor {
  width: min(960px, 100%);
}

.ai-editor {
  width: min(860px, 100%);
}

.mob-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mob-ai-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  align-content: start;
}

.mob-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mob-stat-grid .group-offset {
  margin-top: 0;
}

.mob-drop-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mob-drop-gold {
  display: grid;
  gap: 8px;
}

.mob-drop-list {
  display: grid;
  gap: 10px;
}

.mob-drop-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.mob-drop-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.mob-drop-grid .group-offset {
  margin-top: 0;
}

.mob-definition-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.mob-definition-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px;
}

.mob-definition-row.is-selected {
  border-color: #ffeb3b;
  background: rgba(255, 235, 59, 0.12);
}

.object-row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.mob-definition-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.object-canvas-wrap {
  width: min(100%, 440px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.object-editor.object-editor-large .object-canvas-wrap {
  width: 100%;
  max-width: none;
}

.object-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.object-editor-side {
  display: grid;
  gap: 10px;
}

.object-brush-row,
.object-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.object-color-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.jscolor-widget {
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
  min-width: 184px;
  max-width: 100%;
}

.object-opacity-label {
  display: grid;
  gap: 3px;
  color: #b9c0c8;
  font-size: 11px;
  min-width: 120px;
}

.object-opacity-input {
  width: 100%;
}

.biome-brush-size {
  width: 100%;
}

.object-color-input {
  flex: 1 1 132px;
  min-width: 132px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 15, 19, 0.7);
  color: #f3f5f7;
  padding: 0 10px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.object-color-input::placeholder {
  color: rgba(243, 245, 247, 0.34);
}

.jscolor-swatch-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
  cursor: pointer;
  padding: 0;
}

.jscolor-popup {
  z-index: 4000;
  width: min(252px, calc(100vw - 16px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(10, 15, 19, 0.96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.jscolor-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.jscolor-popup-title {
  color: #f3f5f7;
  font-size: 12px;
  font-weight: 700;
}

.jscolor-popup-preview {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.jscolor-popup-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.jscolor-popup-swatch {
  aspect-ratio: 1 / 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.jscolor-swatch-button:focus-visible,
.object-color-input:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 1px;
}

.jscolor-wrap {
  pointer-events: auto;
}

.jscolor-wrap .jscolor-border {
  border-color: rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px !important;
  background: rgba(10, 15, 18, 0.36) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
}

.jscolor-wrap .jscolor-picker {
  overflow: hidden;
  border-radius: 14px;
}

.jscolor-wrap .jscolor-btn-mode {
  position: static !important;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f3f5f7 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.jscolor-wrap .jscolor-btn-mode:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.jscolor-wrap .jscolor-btn-mode.is-active {
  border-color: rgba(103, 167, 255, 0.95) !important;
  background: rgba(103, 167, 255, 0.22) !important;
  box-shadow:
    0 0 0 1px rgba(103, 167, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.object-color {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: var(--object-color, transparent);
}

.object-color.is-selected {
  border-color: #f3f5f7;
  box-shadow: 0 0 0 2px rgba(103, 167, 255, 0.55);
}

.object-color[data-object-color="transparent"] {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.32) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.32) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.32) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.32) 75%);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
}

.object-editor-note {
  color: #84909a;
  font-size: 12px;
  line-height: 1.4;
}

.object-eyedropper-backdrop {
  z-index: 90;
}

.object-eyedropper-modal {
  width: min(1200px, 100%);
  max-width: calc(100vw - 40px);
  height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 15, 18, 0.96);
  border-radius: 8px;
  padding: 14px;
}

.object-eyedropper-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  align-items: stretch;
  min-width: 0;
}

.object-eyedropper-canvas-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.object-eyedropper-canvas-panel {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.object-eyedropper-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

.object-eyedropper-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 8px;
  padding-top: 2px;
  padding-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-gutter: stable;
}

.object-eyedropper-count {
  color: #84909a;
  font-size: 12px;
}

.object-eyedropper-current {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(103, 167, 255, 0.32);
  border-radius: 8px;
  background: rgba(103, 167, 255, 0.08);
}

.object-eyedropper-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: visible;
  padding-right: 4px;
  align-content: start;
}

.object-eyedropper-row {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #f3f5f7;
  text-align: left;
  align-self: stretch;
}

.object-eyedropper-row.is-selected {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.16);
}

.object-eyedropper-footer {
  display: grid;
  gap: 10px;
  align-items: start;
}

.object-eyedropper-sample {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.object-eyedropper-swatch {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: rgba(255, 255, 255, 0.04);
}

.object-eyedropper-sample-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.object-eyedropper-sample-value {
  color: #f3f5f7;
  font-size: 13px;
  word-break: break-word;
}

.object-eyedropper-footer .play-button {
  width: 100%;
}

.object-eyedropper-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.biome-editor {
  width: min(920px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.biome-editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 360px);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.biome-editor-side {
  display: grid;
  gap: 10px;
  min-height: 0;
  align-content: baseline;
}

.biome-canvas-column {
  align-content: start;
  min-height: 0;
}

.biome-canvas-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.biome-canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

.biome-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.biome-editor-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.biome-editor-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.biome-editor-tab-panel {
  display: none;
  gap: 10px;
  min-height: 0;
}

.biome-editor-tab-panel.is-active {
  display: grid;
}

.biome-editor-tab-panel-controls {
  align-content: start;
  overflow: auto;
  padding-right: 2px;
}

.biome-editor-tab-panel-controls .admin-color-instance {
  margin-top: 4px;
}

.biome-save-button {
  width: 100%;
}

.biome-editor-tab-panel-tiles {
  overflow: hidden;
}

.biome-editor-tab-panel-tiles .biome-definition-list {
  max-height: none;
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
  display: grid;
  gap: 8px;
}

.biome-definition-row {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #dfe5eb;
  padding: 8px;
  text-align: left;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.biome-definition-row:hover {
  border-color: rgba(103, 167, 255, 0.55);
  background: rgba(103, 167, 255, 0.08);
}

.biome-definition-row.is-selected {
  border-color: #67a7ff;
  box-shadow: 0 0 0 1px rgba(103, 167, 255, 0.18) inset;
}

.biome-definition-preview {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.05);
}

.biome-definition-preview-fallback {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-under-construction {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #dfe5eb;
}

.admin-under-construction-title {
  font-size: 16px;
  font-weight: 700;
}

.admin-under-construction-body {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(223, 229, 235, 0.82);
}

.biome-definition-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.biome-definition-name {
  color: #f3f5f7;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biome-definition-meta {
  color: #9aa6b2;
  font-size: 12px;
}

.group-editor {
  width: min(980px, 100%);
  max-width: calc(100vw - 40px);
  height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.group-editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 380px);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.group-canvas-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.group-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  image-rendering: pixelated;
  cursor: grab;
}

.group-canvas:active {
  cursor: grabbing;
}

.group-layer-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.group-layer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #dfe5eb;
  font-size: 13px;
  font-weight: 700;
}

.group-layer-list {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.group-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
  margin-top: 8px;
}

.group-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 2fr) auto;
  gap: 6px;
  align-items: start;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px;
}

.group-layer-row.is-selected {
  border-color: #ffeb3b;
  background: rgba(255, 235, 59, 0.12);
}

.group-layer-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  align-self: center;
}

.group-layer-controls {
  display: flex;
  gap: 6px;
  min-width: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.group-offset {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #84909a;
  font-size: 10px;
  line-height: 1;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
}

.group-offset-input {
  width: 56px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0f1317;
  color: #f3f5f7;
  padding: 0 7px;
}

.active-object-editor .group-offset {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  min-width: 0;
}

.active-object-editor .group-offset-input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
}

.active-object-editor .mob-drop-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.item-settings-fields .group-offset,
.item-settings-actions .group-offset,
.item-settings-editor .group-offset {
  grid-template-rows: auto;
}

.group-layer-actions {
  display: flex;
  gap: 4px;
  justify-content: end;
  align-self: center;
}

.group-layer-actions .object-edit {
  min-height: 24px;
  height: 24px;
  width: 24px;
  min-width: 24px;
  padding: 0;
}

.group-editor-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .group-editor {
    height: min(92vh, 760px);
  }

  .group-editor-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 45%) minmax(0, 1fr);
  }
}

.death-box,
.toast {
  padding: 9px 11px;
  color: #ffd166;
  font-size: 13px;
}

.toast {
  color: #ff8b8b;
}

.chest-panel {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 14px;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(460px, calc(100vw - 28px));
  max-height: min(280px, calc(100vh - 28px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 15, 18, 0.86);
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
  z-index: 6;
}

.shop-panel {
  display: block;
  position: absolute;
  left: 50%;
  top: 200px;
  bottom: 200px;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 28px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 16, 0.42);
  backdrop-filter: blur(15px) saturate(125%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

.shop-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.shop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.shop-header-copy {
  min-width: 0;
}

.shop-title {
  font-size: 18px;
  font-weight: 700;
  color: #f3f5f7;
  line-height: 1.15;
}

.shop-subtitle {
  margin-top: 3px;
  color: #97a1ab;
  font-size: 12px;
}

.shop-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f5f7;
  line-height: 1;
  font-size: 18px;
  cursor: pointer;
  flex: 0 0 auto;
}

.shop-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.shop-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  min-height: 0;
  overflow: auto;
}

.shop-columns {
  display: grid;
  height:40px;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.15fr) minmax(260px, 1.15fr);
  gap: 14px;
  align-items: center;
  padding: 14px 2px 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(10px);
}

.shop-column-title {
  color: #d5dbe2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 4px;
}

.shop-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.15fr) minmax(260px, 1.15fr);
  gap: 14px;
  height: fit-content;
  align-items: center;
  padding: 0 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.shop-row.is-muted {
  opacity: 0.88;
}

.shop-row.is-buy {
  border-color: rgba(68, 183, 109, 0.34);
  background: linear-gradient(90deg, rgba(68, 183, 109, 0.13), rgba(255, 255, 255, 0.03));
}

.shop-row.is-sell {
  border-color: rgba(103, 167, 255, 0.34);
  background: linear-gradient(90deg, rgba(103, 167, 255, 0.13), rgba(255, 255, 255, 0.03));
}

.shop-row.is-dual {
  border-color: rgba(178, 137, 255, 0.35);
  background: linear-gradient(90deg, rgba(178, 137, 255, 0.13), rgba(255, 255, 255, 0.03));
}

.shop-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.shop-row-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.shop-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #f3f5f7;
  overflow: hidden;
  min-width: 0;
}

.shop-row-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #99a4af;
  font-size: 12px;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.shop-badge-stock {
  background: rgba(68, 183, 109, 0.14);
  color: #b8f1c9;
}

.shop-badge-inventory {
  background: rgba(103, 167, 255, 0.14);
  color: #d2e7ff;
}

.shop-row-actions {
  display: contents;
}

.shop-action-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.shop-action-group-buy {
  box-shadow: inset 0 0 0 1px rgba(68, 183, 109, 0.12);
  background: linear-gradient(180deg, rgba(68, 183, 109, 0.12), rgba(255, 255, 255, 0.03));
}

.shop-action-group-sell {
  box-shadow: inset 0 0 0 1px rgba(244, 100, 100, 0.14);
  background: linear-gradient(180deg, rgba(244, 100, 100, 0.10), rgba(255, 255, 255, 0.03));
}

.shop-action-group.is-disabled {
  opacity: 0.6;
}

.shop-action-group.is-active {
  filter: saturate(1.05);
}

.shop-action-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b9c0c8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-right: 2px;
}

.shop-action-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3f5f7;
  font-size: 10px;
}

.shop-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

.shop-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-action:not(:disabled):hover {
  border-color: rgba(103, 167, 255, 0.8);
  background: rgba(103, 167, 255, 0.16);
}

.chest-transfer-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.chest-amount {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfe5eb;
}

.chest-amount.is-selected {
  border-color: #67a7ff;
  background: rgba(103, 167, 255, 0.2);
  color: #f3f5f7;
}

.chest-title {
  color: #b9c0c8;
  font-size: 12px;
  margin-bottom: 8px;
}

.chest-item,
.empty-list {
  width: 100%;
  min-height: 30px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
  font-size: 12px;
}

.chest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 5px 8px;
}

.chest-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.utility-item-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.utility-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-graphic {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: pixelated;
  box-sizing: border-box;
}

.item-graphic.is-fallback {
  background-color: #67a7ff;
}

.item-graphic.has-art {
  background-color: rgba(255, 255, 255, 0.04);
}

.item-representation-field {
  display: grid;
  gap: 8px;
}

.item-representation-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-representation-preview .item-graphic {
  width: 34px;
  height: 34px;
}

.empty-list {
  display: grid;
  place-items: center;
  color: #84909a;
}

.is-hidden {
  display: none;
}
