/* World Command / Obsidian Studio. Shared desktop and touch layout. */
.map-card {
  display: flex;
  flex-direction: column;
}
.map-card > .card-head,
.map-card > .studio-map-bar {
  flex-shrink: 0;
}
.map-card .map-wrap {
  flex: 1;
  min-height: 460px;
  height: auto;
}
body.map-full .map-card .map-wrap {
  min-height: 0;
  height: auto;
}
body.map-full .map-card > .card-head {
  min-height: 54px;
  padding: 10px 16px;
}
:root {
  --bg: #0c1018;
  --panel: #141b27;
  --panel-2: #192332;
  --line: #2b3748;
  --text: #edf2f8;
  --muted: #9cacbf;
  --green: #69dfb2;
  --accent: #69dfb2;
  --gold: #f5c574;
  --danger: #ff8e9c;
  --radius: 16px;
  color-scheme: dark;
}
body {
  background: #0c1018;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.012em;
}
.ambient {
  opacity: 0.16;
  pointer-events: none;
}
.app-shell {
  background: transparent;
}
.workspace-shell {
  min-width: 0;
}
.command-sidebar {
  background: #101620;
  border-right: 1px solid #263142;
  width: 232px;
  padding: 18px 12px 12px;
}
.side-brand {
  padding: 0 8px 18px;
}
.side-brand strong {
  font-size: 16px;
  letter-spacing: -0.04em;
}
.side-brand small {
  font-size: 11px;
  color: #91a3b9;
}
.brand-mark {
  background: linear-gradient(145deg, #71e6b8, #239f80);
  box-shadow:
    inset 0 2px #b7ffe1,
    inset 0 -4px #207362;
  color: #102b25;
  border: 0;
  border-radius: 11px;
  clip-path: none;
}
.brand-mark.small {
  width: 38px;
  height: 38px;
}
.brand-mark span {
  font-size: 19px;
}
.brand-mark b {
  font-size: 8px;
}
.world-nav {
  gap: 3px;
}
.world-nav > p {
  padding: 17px 12px 5px;
  margin: 0;
  color: #70849b;
  letter-spacing: 0.13em;
  font-size: 9px;
}
.world-nav > button {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  color: #a9b8c9;
  gap: 11px;
  font-size: 12px;
}
.world-nav > button span {
  width: 18px;
  color: #7d93ab;
  font-size: 16px;
}
.world-nav > button b {
  font-weight: 550;
}
.world-nav > button:hover {
  background: #1b2636;
  color: #fff;
}
.world-nav > button.active {
  background: #17342f;
  color: #95f4cc;
  border-color: #2a5146;
  box-shadow: none;
}
.world-nav > button.active span {
  color: #79eac0;
}
.world-nav > button i {
  background: #254939;
  color: #a4f3d1;
}
.navigation-search {
  font-size: 11px;
  border: 1px solid #293549;
  background: #172131;
  min-height: 37px;
  border-radius: 9px;
  margin: 0 2px;
}
.navigation-search kbd {
  font-size: 9px;
  background: #222f41;
  border: 1px solid #3b4a5c;
  border-radius: 4px;
  padding: 3px;
}
.side-foot {
  background: #151f2b;
  border: 1px solid #273347;
  border-radius: 9px;
  margin: 14px 0 0;
  padding: 11px;
}
.side-foot b {
  font-size: 11px;
}
.side-foot small {
  font-size: 10px;
}
.workspace-shell {
  margin-left: 232px;
}
.topbar {
  height: 80px;
  min-height: 80px;
  padding: 16px 28px;
  border-bottom: 1px solid #222e3f;
  background: #101620e8;
  backdrop-filter: blur(16px);
}
.topbar .brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #79a991;
}
.topbar .eyebrow {
  font-size: 9px;
  color: #8195ac;
  margin: 0 0 3px;
}
.header-actions #clock {
  color: #97aabd;
  font-variant-numeric: tabular-nums;
}
.server-presence {
  font-size: 12px;
}
.server-presence small {
  font-size: 10px;
}
.workspace-shell main {
  padding: 20px 28px 36px;
  max-width: 1800px;
  margin: auto;
}
.workspace-intro {
  margin: 0 0 16px;
  min-height: 30px;
  padding: 0;
}
.workspace-intro p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 880px;
  color: #9babbe;
}
.workspace-intro .soft-btn {
  font-size: 11px;
  padding: 8px 12px;
}
.card,
.metric,
.settings-heading,
.community-card,
.management-view,
.settings-view,
.plugin-hero,
.community-hero,
.world-tools-hero,
.world-tool-card,
.world-target-card {
  background: #141c29;
  border-color: #293647;
  box-shadow: 0 6px 25px #03060b18;
  border-radius: 14px;
  clip-path: none;
}
.card-head {
  padding: 16px 18px;
  border-color: #273344;
  min-height: 65px;
}
.card-head h2 {
  font-size: 16px;
  letter-spacing: -0.025em;
}
.card-head .eyebrow {
  margin: 0 0 5px;
  color: #778da6;
}
.settings-heading {
  padding: 18px 22px;
  margin-bottom: 16px;
  gap: 18px;
  border: 1px solid #293647;
}
.settings-heading h2,
.community-hero h2,
.world-tools-hero h2 {
  font-size: 22px;
  letter-spacing: -0.035em;
}
.settings-heading p,
.world-tools-hero p,
.community-hero p {
  font-size: 12px;
  line-height: 1.6;
  color: #9aadc4;
}
.management-view {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.management-view > .settings-heading .eyebrow,
.community-hero .eyebrow,
.world-tools-hero .eyebrow {
  display: none;
}
.settings-heading > div > p:last-child {
  max-width: 760px;
}
.workspace-shortcuts {
  gap: 12px;
  margin-bottom: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workspace-shortcuts button {
  min-height: 64px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #141e2c;
  border: 1px solid #2a384b;
  box-shadow: none;
  grid-template-columns: 30px 1fr 15px;
  column-gap: 10px;
}
.workspace-shortcuts button > span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1c3934;
  color: #72e3b5;
  font-size: 19px;
}
.workspace-shortcuts button b {
  font-size: 12px;
}
.workspace-shortcuts button small {
  font-size: 10px;
  color: #8fa6bb;
}
.workspace-shortcuts button:hover {
  border-color: #69dfb288;
  transform: translateY(-2px);
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
  background: none;
  border: 0;
}
.hero-strip .metric {
  padding: 17px;
  min-height: 106px;
  gap: 11px;
  border: 1px solid #293647;
}
.hero-strip .metric small {
  font-size: 9px;
  color: #8b9fb6;
  letter-spacing: 0.1em;
}
.hero-strip .metric strong {
  font-size: 24px;
  margin: 5px 0;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.hero-strip .metric p {
  font-size: 10px;
  margin-top: 5px;
  color: #98aac0;
}
.hero-strip .metric-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  font-size: 18px;
  background: #1f3045;
  color: #82b6ed;
}
.hero-strip .metric:first-child {
  background: linear-gradient(120deg, #19302d, #16232d);
  border-color: #315045;
}
.hero-strip .metric:first-child .metric-icon {
  background: #244b3e;
  color: #84e8bb;
}
.hero-strip .lifecycle {
  grid-column: 1/-1;
  grid-row: auto !important;
  justify-content: flex-end;
  min-height: 0;
  border: 0;
  padding: 0;
  background: none;
  gap: 7px;
}
.hero-strip .lifecycle button {
  min-height: 32px;
  font-size: 10px;
  padding: 6px 13px;
}
.hero-strip .lifecycle:before {
  content: "SERVER CONTROLS";
  font-size: 9px;
  color: #72859a;
  letter-spacing: 0.08em;
  margin-right: auto;
}
.btn,
.soft-btn,
.icon-btn,
button.operation {
  border-radius: 9px;
  clip-path: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  background: #1e2a3b;
  border-color: #334359;
  color: #d8e3ee;
}
.btn {
  font-size: 12px;
  min-height: 40px;
  font-weight: 600;
}
.btn.primary,
.btn.success {
  background: #70e0b4;
  color: #102b23;
  border-color: #70e0b4;
  box-shadow: 0 3px 0 #245a45;
}
.btn.primary:hover,
.btn.success:hover {
  background: #95f0cb;
}
.btn.warn {
  background: #392e20;
  color: #f5c574;
  border-color: #5c482e;
}
.btn.danger {
  background: #392531;
  color: #ffa9b4;
  border-color: #613847;
}
.btn:hover,
.soft-btn:hover {
  filter: none;
  transform: translateY(-1px);
  border-color: #688096;
}
.btn:disabled,
.soft-btn:disabled {
  opacity: 0.4;
  transform: none;
  cursor: not-allowed;
}
.chip {
  font-size: 9px;
  border-radius: 6px;
  padding: 5px 8px;
  background: #203044;
  color: #adc6e1;
  border: 1px solid #34465d;
}
.chip.safe {
  background: #183b2f;
  color: #82e5b2;
  border-color: #2c5744;
}
.chip.pending {
  background: #382f20;
  color: #efc881;
  border-color: #5a4729;
}
.chip.danger {
  background: #382531;
  color: #ffa5b3;
  border-color: #5d3343;
}
.soft-btn {
  font-size: 11px;
  min-height: 34px;
}
.muted {
  color: #9cacbf;
}
input,
select,
textarea {
  background: #0e1622;
  border: 1px solid #34445a;
  color: #e7eff9;
  border-radius: 8px;
  font-family: inherit;
  min-height: 40px;
  font-size: 12px;
  accent-color: #70e0b4;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #69dfb2;
  outline: 3px solid #69dfb21c;
}
label {
  color: #adc0d4;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #91d2ff;
  outline-offset: 3px;
}
.switch-row {
  border-color: #2b384b;
}
.tabs,
.segmented-control {
  background: #101823;
  border-color: #2a3749;
}
.tabs button.active {
  background: #243c3b;
  color: #92edc8;
}
.command-grid {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  margin-top: 0;
}
.map-wrap {
  min-height: 460px;
  background: #0e1520;
}
.map-card {
  overflow: hidden;
}
.map-tools {
  gap: 5px;
  flex-wrap: wrap;
}
.map-tools .soft-btn {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 10px;
}
.map-teleport-coach {
  background: #102c35ed;
  border: 1px solid #41738a;
  box-shadow: 0 8px 30px #0007;
  font-size: 12px;
}
.map-teleport-coach p {
  font-size: 11px;
  line-height: 1.5;
}
.players-card .player-row {
  padding: 13px 16px;
  border-bottom: 1px solid #263247;
}
.lower-grid {
  gap: 16px;
  margin-top: 16px;
}
.feed-row {
  border-color: #293447;
  padding: 12px 16px;
}
.feed-copy b {
  font-size: 12px;
  font-weight: 450;
}
.feed-copy small,
.feed-row time {
  font-size: 10px;
}
.feed-icon {
  border-radius: 8px;
}
.quick-actions button {
  background: #1b283b;
  border: 1px solid #314157;
  border-radius: 9px;
}
.quick-actions button:hover {
  background: #26394c;
}
.operation {
  border-color: #2c3d51;
}
.console-line {
  font-size: 11px;
}
.roster-table-head {
  background: #101824;
  color: #8ca5bd;
  font-size: 9px;
}
.roster-row {
  border-color: #29364a;
}
.roster-row:hover {
  background: #1a293a;
}
.player-hero .avatar {
  border-radius: 11px;
  background: #203244;
  border-color: #3c5369;
}
.inventory-workspace {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}
.inventory-player-picker {
  padding: 10px;
}
.inventory-player {
  padding: 12px 9px;
  border-radius: 9px;
}
.inventory-player.active {
  background: #213b36;
  border-color: #3c6958;
}
.inventory-player small {
  font-size: 10px;
}
.inventory-editor-card {
  padding: 20px;
}
.inventory-editor-head {
  padding: 0 0 16px;
  border-color: #2a3a4d;
}
.inventory-section-label {
  font-size: 9px;
  color: #87a4ba;
  letter-spacing: 0.1em;
  margin: 19px 0 9px;
}
.minecraft-inventory.admin {
  background: #101722;
  border: 1px solid #303d51;
  border-radius: 11px;
  padding: 12px;
  gap: 5px;
  width: 100%;
  max-width: 720px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
.inventory-slot {
  aspect-ratio: 1;
  min-height: 45px;
  height: auto;
  width: auto;
  background: #273244;
  box-shadow:
    inset 2px 2px #435067,
    inset -2px -2px #111a2a;
  border: 0;
  border-radius: 4px;
}
.inventory-slot:hover {
  background: #394d60;
  outline: 2px solid #7be9be;
  z-index: 2;
}
.inventory-slot img {
  width: 64%;
  height: 64%;
  max-width: 52px;
  image-rendering: pixelated;
}
.inventory-slot b {
  font-size: 12px;
  right: 6px;
  bottom: 5px;
}
.inventory-slot i {
  font-style: normal;
  font-size: 8px;
  color: #7c92a8;
}
.inventory-slot span {
  background: #161529;
  border: 1px solid #6756a0;
  color: #f4f0ff;
  border-radius: 6px;
  z-index: 50;
  pointer-events: none;
}
.inventory-slot.enchanted:after {
  content: "✧";
  position: absolute;
  right: 5px;
  top: 2px;
  color: #ceadff;
}
.inventory-slot .durability {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 7px;
  height: 3px;
  background: #0b121c;
}
.inventory-slot .durability i {
  display: block;
  height: 100%;
  background: #78d992;
}
.inventory-slot.hotbar-start {
  margin-top: 10px;
}
.minecraft-inventory.equipment {
  padding: 12px;
  background: #101722;
  border: 1px solid #303d51;
  border-radius: 11px;
  gap: 8px;
  max-width: 400px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.inventory-help {
  font-size: 11px;
  line-height: 1.6;
  color: #8fa7bd;
}
.item-enchantment {
  color: #bd9ef8;
}
.inventory-context {
  position: fixed;
  background: #1b2637;
  border: 1px solid #516075;
  box-shadow: 0 12px 50px #0009;
  padding: 6px;
  border-radius: 10px;
  z-index: 5000;
  min-width: 190px;
}
.inventory-context button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  background: none;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  color: #dee8f3;
}
.inventory-context button:hover {
  background: #304359;
}
.modal-backdrop {
  background: #04080eba;
  backdrop-filter: blur(8px);
  z-index: 4000;
}
.modal {
  background: #141d2b;
  border: 1px solid #3c4c61;
  border-radius: 19px;
  box-shadow: 0 25px 100px #0008;
  padding: 26px;
  max-height: 90dvh;
  overflow: auto;
  color: #e7eff9;
}
.modal h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
}
.modal-head {
  border-color: #314258;
  margin-bottom: 20px;
}
.modal .close {
  background: #263346;
  border: 1px solid #3b4f66;
  border-radius: 8px;
  color: #c9d9e8;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
.modal p,
.confirm-copy {
  font-size: 13px;
  line-height: 1.7;
  color: #a5b7cc;
}
.modal .confirm-actions {
  border-top: 1px solid #2e3c50;
  padding-top: 18px;
  margin-top: 22px;
}
.modal .settings-form {
  gap: 15px;
}
.modal .settings-form label {
  gap: 7px;
}
.stat-cell {
  background: #0e1827;
  border: 1px solid #2b3e54;
  border-radius: 10px;
  padding: 13px;
}
.stat-cell small {
  color: #849fbb;
  font-size: 10px;
}
.stat-cell b {
  font-size: 19px;
}
.player-modal-tabs {
  gap: 6px;
  flex-wrap: wrap;
}
.player-modal-tabs button {
  background: #1d2b3b;
  border-color: #384e65;
  border-radius: 7px;
}
.player-modal-tabs button.active {
  background: #23473c;
  color: #a0f0cd;
}
.player-action-grid button {
  background: #1b293c;
  border: 1px solid #33465e;
  border-radius: 10px;
}
.player-action-grid button b {
  font-size: 12px;
}
.player-action-grid button small {
  font-size: 10px;
}
.world-tools-tabs {
  padding: 6px;
  background: #101824;
  border: 1px solid #293b50;
  border-radius: 11px;
  gap: 5px;
  margin: 16px 0;
}
.world-tools-tabs button {
  border-radius: 7px;
  font-size: 12px;
  min-height: 39px;
}
.world-tools-tabs button.active {
  background: #2a4942;
  color: #9ff2d0;
}
.structure-card,
.entity-card,
.kit-catalog button {
  border-radius: 11px;
  background: #182537;
  border: 1px solid #2e435b;
}
.structure-card:hover,
.entity-card:hover,
.kit-catalog button:hover {
  background: #22374a;
  border-color: #60b696;
}
.structure-card.selected {
  border-color: #7adbaf;
  background: #1b3730;
}
.kit-catalog button img {
  image-rendering: pixelated;
}
.community-main-grid {
  gap: 16px;
}
.community-card {
  padding: 22px;
}
.community-hero {
  padding: 20px 23px;
}
.community-hero > div:first-child {
  max-width: 800px;
}
.community-card p {
  font-size: 12px;
  color: #9fb3c7;
}
.community-card header h3 {
  font-size: 18px;
}
.community-card .community-list {
  margin-top: 16px;
}
.plugin-card {
  border-radius: 12px;
  background: #162235;
  border-color: #2d415b;
}
.empty {
  padding: 32px 22px;
  color: #91a7bd;
  font-size: 13px;
  line-height: 1.65;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.studio-heading h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.studio-heading p {
  font-size: 12px;
  color: #9bb0c6;
  margin: 0;
  line-height: 1.6;
}
.studio-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.studio-banner {
  padding: 15px 18px;
  border: 1px solid #385776;
  background: #172b3d;
  border-radius: 11px;
  color: #b4d6f0;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.studio-banner.warning {
  background: #322a20;
  border-color: #614b2e;
  color: #f2d09c;
}
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}
.studio-tile {
  padding: 20px;
  background: #152030;
  border: 1px solid #304158;
  border-radius: 13px;
}
.studio-tile h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.studio-tile p {
  font-size: 12px;
  line-height: 1.6;
  color: #98afc6;
}
.studio-tile code {
  font-size: 11px;
  color: #8de4c2;
  background: #0c1820;
  padding: 5px 8px;
  border-radius: 5px;
}
.studio-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px;
  background: #121c2a;
  border: 1px solid #2b3d53;
  border-radius: 12px;
  margin-bottom: 15px;
}
.studio-toolbar input {
  flex: 1;
  min-width: 180px;
}
.studio-toolbar select {
  max-width: 240px;
}
.studio-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.studio-table th {
  padding: 12px 15px;
  color: #809ab6;
  font-size: 10px;
  background: #101a29;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.studio-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #273a51;
  color: #b9cada;
}
.studio-table tr:last-child td {
  border: 0;
}
.studio-table b {
  color: #e5eff9;
  font-weight: 600;
}
.studio-table small {
  display: block;
  margin-top: 4px;
  color: #859fb8;
  font-size: 10px;
}
.studio-table-scroll {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #2b3d53;
  background: #142033;
}
.studio-event {
  display: grid;
  grid-template-columns: 100px 85px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #29394e;
  align-items: start;
  font-size: 12px;
}
.studio-event time {
  color: #85a0bc;
  font-size: 11px;
}
.studio-event p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.studio-event small {
  display: block;
  color: #7798b4;
  margin-top: 4px;
}
.studio-empty {
  padding: 46px;
  text-align: center;
  border: 1px dashed #3a536c;
  border-radius: 12px;
  color: #9bb3ca;
}
.studio-skeleton {
  padding: 30px;
  color: #9bb3ca;
  background: linear-gradient(90deg, #152033, #213149, #152033);
  background-size: 200% 100%;
  animation: studio-shimmer 2s infinite;
  border-radius: 12px;
}
.studio-item-modal {
  width: min(680px, 95vw);
}
.studio-item-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(115deg, #243547, #1e283e);
  border: 1px solid #3d4d64;
  border-radius: 13px;
  margin-bottom: 18px;
}
.studio-item-hero img {
  width: 68px;
  height: 68px;
  image-rendering: pixelated;
}
.studio-item-hero h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.studio-item-hero code {
  font-size: 11px;
  color: #8eabc7;
}
.studio-item-hero small {
  display: block;
  margin-top: 8px;
  color: #a5c0d4;
  font-size: 11px;
}
.studio-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #33445b;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.studio-tabs button {
  background: #1e2c3f;
  border: 1px solid #354b63;
  border-radius: 8px;
  padding: 9px 14px;
  color: #a9c0d6;
  font-size: 12px;
}
.studio-tabs button.active {
  background: #274a40;
  border-color: #497b61;
  color: #a1f4ce;
}
.studio-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.studio-field-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.studio-field-grid .wide {
  grid-column: 1/-1;
}
.studio-check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #172638;
  border-radius: 9px;
  font-size: 12px;
}
.studio-check input {
  min-height: 0;
  width: 18px;
  height: 18px;
}
.studio-enchant-row {
  display: grid;
  grid-template-columns: 1fr 90px 32px;
  gap: 9px;
  align-items: center;
  margin-bottom: 8px;
}
.studio-enchant-row small {
  color: #8da6bf;
  font-size: 10px;
}
.studio-error {
  color: #ffb1bc;
  background: #382732;
  border: 1px solid #623b4b;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
}
.studio-map-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: #111f2c;
  border-bottom: 1px solid #304559;
  position: relative;
  z-index: 2;
}
.studio-map-bar small {
  font-size: 9px;
  color: #83a0b7;
  margin-right: 5px;
}
.studio-map-bar select {
  min-height: 31px;
  font-size: 11px;
  max-width: 180px;
}
.studio-map-bar .soft-btn {
  min-height: 31px;
  padding: 5px 10px;
}
.studio-map-bar .active {
  background: #326150;
  color: #c5ffe7;
}
.studio-map-status {
  font-size: 10px;
  color: #81ab99;
  margin-left: auto;
}
.studio-prefab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
}
.studio-prefab {
  background: linear-gradient(135deg, #1d3342, #172234);
  border: 1px solid #345168;
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  color: #dceaf4;
}
.studio-prefab.selected {
  border-color: #85e4b6;
  box-shadow: 0 0 0 1px #85e4b6;
}
.studio-prefab img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  margin-bottom: 15px;
}
.studio-prefab b {
  display: block;
  font-size: 14px;
}
.studio-prefab small {
  display: block;
  color: #91aec5;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 7px;
}
.studio-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.studio-stat-edit {
  padding: 15px;
  background: #142437;
  border: 1px solid #31485f;
  border-radius: 12px;
}
.studio-stat-edit label {
  display: block;
  font-size: 12px;
  color: #bed1e4;
  margin-bottom: 10px;
}
.studio-stat-edit small {
  display: block;
  color: #89a2ba;
  font-size: 10px;
  line-height: 1.5;
  margin: 8px 0;
}
.studio-stat-edit > div {
  display: flex;
  gap: 6px;
}
.studio-stat-edit input {
  width: 100%;
  min-width: 0;
}
.studio-stat-edit .soft-btn {
  white-space: nowrap;
}
.studio-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  vertical-align: middle;
  margin-right: 8px;
}
.toast-root {
  z-index: 5001;
}
.toast {
  background: #19362d;
  color: #d8f6e7;
  border-color: #48765b;
  border-radius: 10px;
  font-size: 12px;
}
.toast.error {
  background: #442835;
  color: #ffd4dc;
}
.studio-page {
  animation: studio-enter 0.2s ease-out;
}
@keyframes studio-enter {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes studio-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 1600px) {
  .command-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .map-wrap {
    min-height: 580px;
  }
  .hero-strip .metric strong {
    font-size: 29px;
  }
}
@media (max-width: 1190px) {
  .workspace-shell main {
    padding: 18px;
  }
  .topbar {
    padding: 15px 18px;
  }
  .hero-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-strip .metric {
    padding: 14px;
    gap: 8px;
  }
  .hero-strip .metric-icon {
    display: none;
  }
  .hero-strip .metric strong {
    font-size: 23px;
  }
  .command-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .map-card > .card-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .inventory-workspace {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .inventory-slot {
    min-height: 36px;
  }
  .workspace-shortcuts button small {
    font-size: 9px;
  }
}
@media (max-width: 980px) {
  .command-sidebar {
    width: 212px;
  }
  .workspace-shell {
    margin-left: 212px;
  }
  .command-grid {
    grid-template-columns: 1fr;
  }
  .players-card {
    max-height: 340px;
  }
  .workspace-shortcuts button {
    grid-template-columns: 24px 1fr;
    padding: 11px;
    column-gap: 7px;
  }
  .workspace-shortcuts button i {
    display: none;
  }
  .workspace-shortcuts button small {
    display: none;
  }
  .inventory-workspace {
    grid-template-columns: 1fr;
  }
  .inventory-player-picker {
    max-height: 200px;
  }
  .inventory-player-picker #inventory-player-list {
    display: flex;
    overflow: auto;
  }
  .inventory-player {
    min-width: 185px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .studio-map-status {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .command-sidebar {
    width: 252px;
    z-index: 2000;
  }
  .workspace-shell {
    margin-left: 0;
  }
  .topbar {
    height: 70px;
    min-height: 70px;
    padding: 12px;
  }
  .topbar .brand h1 {
    font-size: 19px;
  }
  .workspace-shell main {
    padding: 14px 12px 25px;
  }
  .workspace-intro {
    margin-bottom: 14px;
  }
  .workspace-intro p {
    font-size: 11px;
  }
  .workspace-intro button {
    display: none;
  }
  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-strip .metric {
    min-height: 98px;
  }
  .hero-strip .metric-icon {
    display: flex;
  }
  .hero-strip .metric strong {
    font-size: 24px;
  }
  .hero-strip .lifecycle button {
    min-height: 39px;
  }
  .workspace-shortcuts {
    gap: 7px;
  }
  .workspace-shortcuts button {
    min-height: 59px;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .workspace-shortcuts button > span {
    display: none;
  }
  .workspace-shortcuts button b {
    font-size: 11px;
  }
  .command-grid {
    gap: 12px;
  }
  .map-wrap {
    min-height: 420px;
  }
  .card-head {
    padding: 14px;
  }
  .settings-heading {
    padding: 17px;
  }
  .inventory-editor-card {
    padding: 12px;
  }
  .minecraft-inventory.admin {
    padding: 7px;
    gap: 3px;
  }
  .inventory-slot {
    min-height: 27px;
  }
  .inventory-slot i {
    font-size: 6px;
  }
  .inventory-slot b {
    font-size: 9px;
    right: 3px;
    bottom: 3px;
  }
  .modal {
    padding: 18px;
    max-height: 94dvh;
    border-radius: 14px;
  }
  .studio-heading {
    flex-wrap: wrap;
  }
  .studio-heading h2 {
    font-size: 20px;
  }
  .studio-field-grid,
  .studio-stats-grid {
    grid-template-columns: 1fr;
  }
  .studio-enchant-row {
    grid-template-columns: 1fr 66px 30px;
  }
  .studio-event {
    grid-template-columns: 75px 1fr;
  }
  .studio-event p {
    grid-column: 1/-1;
  }
  .studio-map-bar select {
    max-width: 160px;
  }
  .studio-prefab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-prefab {
    padding: 14px;
  }
  .studio-prefab b {
    font-size: 12px;
  }
  .studio-tabs button {
    padding: 10px;
    font-size: 11px;
  }
  .studio-toolbar input {
    min-width: 130px;
  }
  .inventory-editor-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .inventory-editor-actions {
    flex-wrap: wrap;
  }
  .server-presence {
    display: none;
  }
  .studio-tile {
    padding: 16px;
  }
}
/* Match the original shell's grid placement without an additional offset. */
/* The page title already establishes context; keep the working tools above the fold. */
.world-tools-hero,
#world-tools-summary {
  display: none;
}
.world-target-bar {
  display: grid;
  grid-template-columns: 130px 130px repeat(3, minmax(55px, 1fr)) 140px;
  gap: 10px;
  padding: 15px;
  margin: 0 0 14px;
  border: 1px solid #2e425b;
  background: #142234;
}
.world-target-title {
  display: none;
}
.world-target-bar label {
  grid-column: auto;
  margin: 0;
}
.world-target-bar > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.world-target-bar input,
.world-target-bar select {
  height: 39px;
  min-height: 39px;
  width: 100%;
}
.world-map-picker {
  align-self: end;
  min-height: 39px;
  height: 39px;
  grid-template-columns: 18px 1fr;
  padding: 7px 10px;
  gap: 6px;
  border-radius: 8px;
}
.world-map-picker small {
  display: none;
}
.world-map-picker b {
  font-size: 10px;
}
.world-tool-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  flex-wrap: nowrap;
}
.world-tool-tabs button {
  flex: 1;
  min-width: 90px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  text-align: center;
}
.world-tool-tabs button small {
  display: none;
}
.world-tool-tabs button b {
  font-size: 11px;
}
.world-tool-tabs button span {
  font-size: 16px;
}
.world-tool-tabs #studio-prefab-tab {
  font-size: 11px;
  font-weight: 650;
}
.world-tool-tabs button.active {
  border: 1px solid #4a7965;
}
.studio-prefab-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.studio-prefab img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.studio-prefab small {
  font-size: 10px;
}
.world-tool-layout {
  gap: 15px;
}
.world-action-inspector {
  padding: 18px;
}
.world-action-inspector .inspector-preview {
  height: 110px;
}
.world-action-inspector h2 {
  font-size: 21px;
}
.world-action-inspector p {
  font-size: 12px;
}
.world-warning p {
  font-size: 11px;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .world-target-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }
  .world-target-bar > label:nth-of-type(n) {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0;
  }
  .world-map-picker {
    grid-column: 1/-1 !important;
    grid-row: auto !important;
    width: 100%;
  }
  .world-tool-tabs {
    overflow-x: auto;
  }
  .world-tool-tabs button {
    flex: 0 0 95px;
  }
  .studio-prefab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.workspace-shortcuts button {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 4px;
}
.workspace-shortcuts button > span {
  display: none;
}
.workspace-shortcuts button > b {
  grid-column: 1;
  grid-row: 1;
  line-height: 1.4;
  padding-right: 18px;
  font-size: 12px;
}
.workspace-shortcuts button > small {
  grid-column: 1;
  grid-row: 2;
  font-size: 10px;
}
.workspace-shortcuts button > i {
  position: absolute;
  right: 14px;
  top: 14px;
}
.settings-heading {
  min-height: 0;
}
.inventory-editor-card .minecraft-inventory.admin {
  min-height: 0;
  height: auto;
  grid-auto-rows: auto;
  align-content: start;
  box-shadow: none;
}
.inventory-editor-card .inventory-slot {
  background: #273244;
  box-shadow:
    inset 2px 2px #435067,
    inset -2px -2px #111a2a;
  aspect-ratio: 1;
  border: 0;
}
.inventory-editor-card .inventory-slot:hover {
  background: #394d60;
}
.inventory-player {
  min-width: 0;
}
.inventory-player > span {
  min-width: 0;
}
.inventory-player b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-enchant-row > span > small {
  display: block;
  margin-top: 5px;
}
.studio-enchant-row > span {
  line-height: 1.5;
}
.inventory-editor-card .minecraft-inventory.equipment {
  min-height: 0;
  box-shadow: none;
}
.inventory-editor-card .inventory-slot.read-only {
  opacity: 0.6;
}
.studio-prefab-grid {
  max-height: min(52vh, 560px);
  overflow: auto;
  align-content: start;
  padding: 2px 5px 8px;
  scrollbar-gutter: stable;
}
.player-control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid #2e4158;
  background: #0d1726;
  border-radius: 10px;
}
.player-control-tabs button {
  border-radius: 7px;
  min-height: 38px;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 11px;
  color: #a8c0d5;
}
.player-control-tabs button.active {
  background: #294e41;
  color: #a1f4cc;
  border-color: #3f745e;
}
.player-control-tabs button:hover {
  background: #263c52;
}
.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}
.workspace-shell {
  margin-left: 0;
}
.command-sidebar .world-nav {
  padding: 0 0 12px;
  gap: 3px;
}
.command-sidebar .world-nav p {
  font-family: inherit;
  font-weight: 650;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  color: #70849b;
  margin: 16px 12px 5px;
  padding: 0;
}
.command-sidebar .world-nav button {
  min-height: 36px;
  padding: 8px 12px;
  grid-template-columns: 18px 1fr auto;
  gap: 11px;
  color: #a9b8c9;
}
.command-sidebar .world-nav button.active {
  background: #17342f;
  color: #95f4cc;
  border-color: #2a5146;
  box-shadow: none;
}
.command-sidebar .world-nav button.active span {
  color: #79eac0;
}
.command-sidebar .world-nav button:hover {
  background: #1b2636;
  color: #fff;
}
.command-sidebar .world-nav button b {
  font-size: 12px;
  font-weight: 550;
}
.command-sidebar .world-nav button span {
  color: #7d93ab;
}
.world-tool-tabs {
  padding: 6px;
  background: #101824;
  border: 1px solid #293b50;
  border-radius: 11px;
  gap: 5px;
  margin: 16px 0;
}
.world-tool-tabs button {
  border-radius: 7px;
  font-size: 12px;
  min-height: 44px;
}
.world-tool-tabs button.active {
  background: #2a4942;
  color: #9ff2d0;
  border-color: #4b7761;
}
.world-tool-tabs button.active span {
  color: #9ff2d0;
}
.world-tool-tabs button small {
  font-size: 10px;
}
.world-target-bar input,
.world-target-bar select,
.settings-form input,
.settings-form select,
.settings-form textarea {
  background: #0e1724;
  border-color: #344b61;
  color: #dcebf7;
}
.minecraft-inventory.admin > [data-admin-slot="0"],
.minecraft-inventory.admin > [data-admin-slot="1"],
.minecraft-inventory.admin > [data-admin-slot="2"],
.minecraft-inventory.admin > [data-admin-slot="3"],
.minecraft-inventory.admin > [data-admin-slot="4"],
.minecraft-inventory.admin > [data-admin-slot="5"],
.minecraft-inventory.admin > [data-admin-slot="6"],
.minecraft-inventory.admin > [data-admin-slot="7"],
.minecraft-inventory.admin > [data-admin-slot="8"] {
  margin-top: 8px;
}
@media (min-width: 1001px) and (max-width: 1190px) {
  .inventory-workspace {
    grid-template-columns: 185px minmax(0, 1fr);
  }
}
@media (max-width: 1000px) {
  .inventory-player-picker #inventory-player-list > .inventory-player {
    flex: 0 0 190px;
    min-width: 190px;
    min-height: 78px;
  }
  .app-shell {
    display: block;
  }
  .workspace-shell {
    margin-left: 0;
  }
  .command-sidebar {
    width: 252px;
  }
  .command-sidebar .world-nav button {
    min-height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
