
:root {
  --text: #f5f7fb;
  --muted: #aab2c0;
  --glass: rgba(14, 17, 23, .48);
  --glass-strong: rgba(14, 17, 23, .72);
  --line: rgba(255, 255, 255, .12);
  --accent: #7bd88f;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b0d11;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#world {
  width: 100vw;
  touch-action: none;
  height: 100vh;
  display: block;
  cursor: crosshair;
  image-rendering: pixelated;
}

button {
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(14px);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
button:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 216, 143, .75);
}

.hud {
  position: fixed;
  will-change: transform;
  z-index: 12;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}

.hud-stats {
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hud-stats span,
.blocks-main span {
  white-space: nowrap;
}

.hud-blocks {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  padding: 10px 12px;
  border-radius: 18px;
}

.blocks-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 900;
}

#rechargeLabel {
  color: var(--muted);
}

.blocks-bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.11);
}

#blocksFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width .2s ease;
}

.hud-auth {
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 5px;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 7px;
  max-width: 260px;
}
.auth-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: pixelated;
  background: rgba(255,255,255,.08);
}
.auth-user span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 900;
}
#logoutBtn {
  padding: 8px 11px;
  font-size: 12px;
}

.palette-wrap {
  position: fixed;
  contain: layout paint;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 13;
  width: min(920px, calc(100vw - 24px));
  padding: 10px 12px 11px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  overflow: visible;
}


.inventory-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.block-search {
  width: 220px;
  max-width: 55vw;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.block-search::placeholder {
  color: rgba(245,247,251,.45);
}

.block-search:focus {
  border-color: rgba(123, 216, 143, .75);
}

.block-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.palette {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 52px;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 4px;
  scroll-behavior: auto;
  scrollbar-width: none;
}
.palette::-webkit-scrollbar { display: none; }

.inventory-slider {
  width: 100%;
  margin: 8px 0 0;
  height: 16px;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}

.inventory-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.inventory-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255,255,255,.55);
}

.inventory-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.inventory-slider::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255,255,255,.55);
}


.block {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  overflow: visible;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.block:hover,
.block.selected {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 216, 143, .22);
  z-index: 5;
}

.block img {
  width: 32px;
  will-change: transform;
  height: 32px;
  image-rendering: pixelated;
  display: block;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%);
  z-index: 20;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 760px) {
  .hud-stats { top: 10px; left: 10px; }
  .hud-auth { top: 10px; right: 10px; }
  .hud-blocks {
    top: auto;
    bottom: 92px;
    min-width: min(280px, calc(100vw - 24px));
  }
  .auth-user { max-width: 150px; }
  .palette-wrap { bottom: 10px; width: calc(100vw - 20px); }
  .inventory-top { margin-bottom: 7px; }
  .block-search { width: 170px; max-width: 58vw; padding: 8px 10px; }
  .palette { grid-auto-columns: 46px; }
  .block { width: 46px; height: 46px; }
  .block img { width: 30px; height: 30px; }
}


.small-btn {
  padding: 8px 11px;
  font-size: 12px;
}

.primary {
  border-color: rgba(123, 216, 143, .75);
}

.hidden {
  display: none !important;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(6px);
}

.admin-card {
  width: min(520px, calc(100vw - 26px));
  max-height: min(720px, calc(100vh - 26px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass-strong);
  box-shadow: 0 18px 60px rgba(0,0,0,.38);
  padding: 14px;
}

.admin-head,
.admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.admin-input:focus {
  border-color: rgba(123, 216, 143, .75);
}

.admin-input.number {
  flex: 0 0 86px;
  text-align: center;
}

.admin-users {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.admin-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 9px 10px;
  cursor: pointer;
  width: 100%;
  color: var(--text);
  text-align: left;
}

.admin-user:hover {
  border-color: rgba(123, 216, 143, .65);
}

.admin-user-main {
  min-width: 0;
}

.admin-user-name {
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-user-meta,
.admin-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-edit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-selected {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 900;
}


.admin-row.wrap {
  flex-wrap: wrap;
}

.admin-ban-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.admin-ban-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.danger-btn {
  border-color: rgba(255, 107, 107, .58);
}

.danger-btn:hover {
  border-color: rgba(255, 107, 107, .9);
}


.map-actions {
  left: 14px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  z-index: 14;
}

.map-actions .small-btn {
  padding: 9px 12px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .map-actions {
    left: 10px;
    bottom: 82px;
    flex-direction: column;
    border-radius: 18px;
  }
}


.online-bubble {
  top: 56px;
  left: 14px;
  border-radius: 999px;
  padding: 0;
  overflow: visible;
}

.online-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(123, 216, 143, .75);
}

.online-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 260px;
  max-height: 320px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 48px rgba(0,0,0,.34);
  padding: 10px;
}

.online-bubble:hover .online-popover,
.online-bubble:focus-within .online-popover {
  display: block;
}

.online-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.online-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.online-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.online-player img,
.online-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}

.online-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.online-player span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .online-bubble {
    top: 52px;
    left: 10px;
  }

  .online-popover {
    width: min(260px, calc(100vw - 20px));
    max-height: 280px;
  }

  .online-list {
    max-height: 220px;
  }
}


.site-since {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 8;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

@media (max-width: 760px) {
  .site-since {
    right: 10px;
    bottom: 8px;
    font-size: 10px;
  }
}



/* Version 26 */
.site-meta {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 8;
  display: grid;
  justify-items: end;
  gap: 2px;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.site-version {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.site-since {
  position: static;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

@media (max-width: 760px) {
  .site-meta {
    right: 10px;
    bottom: 8px;
  }
  .site-version,
  .site-since {
    font-size: 10px;
  }
}









.inspect-owner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 10px 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}

.inspect-avatar-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.inspect-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.inspect-owner-name {
  font-size: 16px;
  font-weight: 900;
}

.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.42);
  padding: 18px;
}

.sheet-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,.34);
  padding: 16px;
}

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

.sheet-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.sheet-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sheet-label.full {
  grid-column: 1 / -1;
}

.admin-textarea {
  min-height: 96px;
  resize: vertical;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.admin-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-users {
  max-height: 240px;
  overflow: auto;
}

.admin-user.report-item {
  align-items: flex-start;
}

.report-meta {
  display: grid;
  gap: 4px;
}

.report-reason {
  font-size: 14px;
  font-weight: 900;
}

.report-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-details {
  color: var(--text);
  font-size: 12px;
  opacity: .9;
  white-space: pre-wrap;
}

.admin-user-actions.wrap {
  flex-wrap: wrap;
}

.block.tool-block::after {
  content: 'Tool';
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: #fff;
}

@media (max-width: 760px) {
  .sheet-grid {
    grid-template-columns: 1fr;
  }
}


/* Version 26 emergency UI fixes */
.hud-auth {
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.inventory-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 8px;
}

.block-search {
  width: 220px;
  max-width: 45vw;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.92);
  color: #111;
  outline: none;
}

.block-search:focus {
  box-shadow: 0 0 0 3px rgba(123,216,143,.28);
}









@media (max-width: 760px) {
  .hud-auth {
    top: 10px;
    right: 10px;
  }

  .block-search {
    width: 170px;
  }
}


/* Version 27 final fixes */
#world {
  cursor: crosshair !important;
}

#world.cursor-inspect-tool {
  cursor: url('/ui/cursor_grid.png') 4 4, help !important;
}

body,
button,
.small-btn,
.block,
input,
select,
textarea,
.admin-input,
.admin-textarea,
.palette-wrap,
.hud,
.sheet-modal,
.admin-modal {
  cursor: auto !important;
}

button,
.small-btn,
.block,
input[type="range"],
select {
  cursor: pointer !important;
}

input[type="text"],
input[type="search"],
input[type="number"],
textarea,
.admin-input,
.admin-textarea,
.block-search {
  cursor: text !important;
}

.block-search,
.search-input {
  background: rgba(255,255,255,.94) !important;
  color: #111827 !important;
  caret-color: #111827 !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  outline: none !important;
  font-weight: 700 !important;
}

.block-search::placeholder,
.search-input::placeholder {
  color: rgba(17,24,39,.58) !important;
  opacity: 1 !important;
}

.block img {
  image-rendering: pixelated;
  object-fit: contain;
}

.block.tool-block img {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
}

.block.tool-block::after {
  content: "Cursor";
  right: 4px;
  bottom: 3px;
  font-size: 8px;
  padding: 2px 4px;
  max-width: 42px;
  overflow: hidden;
  white-space: nowrap;
}


/* Version 27 final report/UI/cursor fixes */
#world {
  cursor: crosshair !important;
}

#world.cursor-inspect-tool {
  cursor: url('/ui/cursor_grid.png') 4 4, help !important;
}

body,
.hud,
.palette-wrap,
.sheet-modal,
.admin-modal,
button,
.small-btn,
.block,
input,
select,
textarea,
.admin-input,
.admin-textarea {
  cursor: auto !important;
}

button,
.small-btn,
.block,
input[type="range"],
select {
  cursor: pointer !important;
}

input[type="text"],
input[type="search"],
input[type="number"],
textarea,
.admin-input,
.admin-textarea,
.block-search {
  cursor: text !important;
}

.hud-auth {
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.inventory-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 8px;
}

.block-search,
.search-input {
  width: 220px;
  max-width: 45vw;
  background: rgba(255,255,255,.94) !important;
  color: #111827 !important;
  caret-color: #111827 !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  outline: none !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.block-search::placeholder,
.search-input::placeholder {
  color: rgba(17,24,39,.58) !important;
  opacity: 1 !important;
}

.block img {
  image-rendering: pixelated;
  object-fit: contain;
}

.block.tool-block img {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
}

.block.tool-block::after {
  content: "Cursor";
  right: 4px;
  bottom: 3px;
  font-size: 8px;
  padding: 2px 4px;
  max-width: 42px;
  overflow: hidden;
  white-space: nowrap;
}

/* Clean report modal */
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 5, .55);
  backdrop-filter: blur(6px);
}

.sheet-modal.hidden {
  display: none !important;
}

.sheet-card {
  width: min(520px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(34, 61, 27, .94);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  padding: 18px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sheet-head strong {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .01em;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.sheet-label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
}

.sheet-label.full {
  grid-column: 1 / -1;
}

.sheet-label span {
  padding-left: 2px;
}

.sheet-card .admin-input,
.sheet-card select.admin-input,
.sheet-card textarea.admin-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 14px !important;
  background: rgba(11, 24, 9, .72) !important;
  color: #fff !important;
  padding: 11px 12px !important;
  font-weight: 850 !important;
  outline: none !important;
}

.sheet-card .admin-input:focus {
  border-color: rgba(123,216,143,.8) !important;
  box-shadow: 0 0 0 3px rgba(123,216,143,.18);
}

.sheet-card .admin-input::placeholder {
  color: rgba(255,255,255,.42) !important;
}

.admin-textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.35;
}

.sheet-note {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 800;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

/* Admin reports look like cards */
.admin-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-section-head strong {
  font-size: 15px;
  font-weight: 950;
}

.admin-users {
  max-height: 270px;
  overflow: auto;
}

.admin-user.report-item {
  display: grid;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
}

.report-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.report-reason {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.report-sub {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 850;
}

.report-details {
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-user-actions.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .hud-auth {
    top: 10px;
    right: 10px;
  }

  .block-search {
    width: 170px;
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .sheet-card {
    padding: 14px;
    border-radius: 20px;
  }

  .admin-user-actions.wrap {
    justify-content: stretch;
  }

  .admin-user-actions.wrap .small-btn {
    flex: 1 1 auto;
  }
}


/* Version 28 final cleanup */
#world,
body,
.hud,
.palette-wrap,
.sheet-modal,
.admin-modal,
button,
.small-btn,
.block,
input,
select,
textarea,
.admin-input,
.admin-textarea {
  cursor: auto !important;
}

#world {
  cursor: crosshair !important;
}

button,
.small-btn,
.block,
input[type="range"],
select {
  cursor: pointer !important;
}

input[type="text"],
input[type="search"],
input[type="number"],
textarea,
.admin-input,
.admin-textarea,
.block-search {
  cursor: text !important;
}

/* Remove old cursor tool labels if cached CSS still exists */
.block.tool-block::after {
  content: none !important;
}

.hud-auth {
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.inventory-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 8px;
}

.block-search,
.search-input {
  width: 220px;
  max-width: 45vw;
  background: rgba(19, 38, 16, .92) !important;
  color: rgba(255,255,255,.92) !important;
  caret-color: #7bd88f !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  outline: none !important;
  font-weight: 850 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(0,0,0,.12);
}

.block-search::placeholder,
.search-input::placeholder {
  color: rgba(255,255,255,.45) !important;
  opacity: 1 !important;
}

.block-search:focus,
.search-input:focus {
  border-color: rgba(123,216,143,.75) !important;
  box-shadow: 0 0 0 3px rgba(123,216,143,.16), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Cleaner report modal */
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 3, .58);
  backdrop-filter: blur(7px);
}

.sheet-modal.hidden {
  display: none !important;
}

.sheet-card {
  width: min(520px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(44, 78, 35, .96), rgba(28, 52, 24, .96));
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
  padding: 18px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sheet-head strong {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .01em;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.sheet-label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 900;
}

.sheet-label.full {
  grid-column: 1 / -1;
}

.sheet-card .admin-input,
.sheet-card select.admin-input,
.sheet-card textarea.admin-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 14px !important;
  background: rgba(11, 24, 9, .72) !important;
  color: #fff !important;
  padding: 11px 12px !important;
  font-weight: 850 !important;
  outline: none !important;
}

.sheet-card .admin-input:focus {
  border-color: rgba(123,216,143,.85) !important;
  box-shadow: 0 0 0 3px rgba(123,216,143,.18);
}

.sheet-card .admin-input::placeholder {
  color: rgba(255,255,255,.42) !important;
}

.admin-textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.35;
}

.sheet-note {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

/* Admin report cards */
.admin-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-section-head strong {
  font-size: 15px;
  font-weight: 950;
}

.admin-user.report-item {
  display: grid;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
}

.report-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.report-reason {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.report-sub {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  font-weight: 850;
}

.report-details {
  color: rgba(255,255,255,.86);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-user-actions.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .block-search {
    width: 170px;
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }
}


/* Version 30 emergency restore */
#world {
  cursor: crosshair !important;
}

.hud-auth {
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.inventory-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 8px;
}

.block-search,
.search-input {
  width: 220px;
  max-width: 45vw;
  background: rgba(19, 38, 16, .92) !important;
  color: rgba(255,255,255,.92) !important;
  caret-color: #7bd88f !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  outline: none !important;
  font-weight: 850 !important;
}

.block-search::placeholder,
.search-input::placeholder {
  color: rgba(255,255,255,.45) !important;
  opacity: 1 !important;
}

.block.tool-block::after {
  content: none !important;
}

button,
.small-btn,
.block,
input[type="range"],
select {
  cursor: pointer !important;
}

input[type="text"],
input[type="search"],
input[type="number"],
textarea,
.admin-input,
.admin-textarea,
.block-search {
  cursor: text !important;
}

.sheet-card {
  background: linear-gradient(180deg, rgba(44, 78, 35, .96), rgba(28, 52, 24, .96)) !important;
}

/* Version 31 critical */
.block-search {
  background: rgba(19, 38, 16, .92) !important;
  color: rgba(255,255,255,.92) !important;
}
.block-search::placeholder { color: rgba(255,255,255,.45) !important; }


/* Version 36 toast position */
.toast {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 168px !important;
  transform: translateX(-50%) translateY(8px) scale(.98) !important;
  z-index: 70 !important;
  max-width: min(520px, calc(100vw - 32px)) !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  background: rgba(18, 34, 15, .94) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.32) !important;
  color: rgba(255,255,255,.94) !important;
  font-weight: 900 !important;
  text-align: center !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity .16s ease, transform .16s ease !important;
}

.toast.show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

@media (max-width: 760px) {
  .toast {
    bottom: 202px !important;
    max-width: calc(100vw - 20px) !important;
    font-size: 12px !important;
  }
}
