
:root {
  --gcb-bg-main: #070c17;
  --gcb-bg-panel: #111a2c;
  --gcb-bg-panel-2: #18243d;
  --gcb-border: #304867;
  --gcb-border-soft: rgba(148, 178, 219, 0.24);
  --gcb-copy-main: #eef4ff;
  --gcb-copy-muted: #9db2d6;
  --gcb-ok: #9be7bc;
  --gcb-error: #ffc4c9;
}

.gcb-auth-note {
  border: 1px solid var(--gcb-border);
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(160deg, #0f182b, #0a1221);
  color: var(--gcb-copy-main);
}

.gcb-builder {
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  color: var(--gcb-copy-main);
  font-family: "Rajdhani", "Segoe UI", Tahoma, sans-serif;
}

.gcb-builder__workspace-card,
.gcb-builder__sidebar-card {
  border: 1px solid var(--gcb-border);
  border-radius: 20px;
  background:
    radial-gradient(115% 90% at 10% 0%, rgba(246, 184, 0, 0.13), transparent 40%),
    radial-gradient(95% 100% at 90% 0%, rgba(225, 6, 0, 0.11), transparent 44%),
    linear-gradient(160deg, var(--gcb-bg-panel-2), var(--gcb-bg-main));
  box-shadow: 0 20px 34px rgba(2, 8, 21, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gcb-builder__workspace-card { padding: 18px; }
.gcb-builder__sidebar-card {
  padding: 14px;
  display: grid;
  gap: 14px;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gcb-builder__header { margin-bottom: 10px; }
.gcb-builder__title { margin: 0 0 6px; font-size: clamp(1.2rem, 2.2vw, 1.52rem); letter-spacing: 0.03em; color: #f8fbff; }
.gcb-builder__subtitle { margin: 0; font-size: 0.95rem; color: var(--gcb-copy-muted); }

.gcb-mode-tabs { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.gcb-mode-tab {
  min-height: 38px;
  border: 1px solid rgba(96, 130, 176, 0.5);
  border-radius: 10px;
  background: #132443;
  color: #e4eeff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.gcb-mode-tab.is-active {
  border-color: rgba(246, 184, 0, 0.9);
  background: linear-gradient(180deg, rgba(246, 184, 0, 0.24), rgba(246, 184, 0, 0.08));
  color: #fff2cd;
}

.gcb-stage-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.gcb-stage-main {
  display: grid;
  gap: 10px;
  order: 1;
}

.gcb-slot-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  order: 2;
}
.gcb-slot-card {
  border: 1px solid rgba(96, 130, 176, 0.5);
  border-radius: 12px;
  background: #132443;
  color: #e4eeff;
  display: grid;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
}
.gcb-slot-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.gcb-slot-card.is-active {
  border-color: rgba(246, 184, 0, 0.95);
  background: linear-gradient(180deg, rgba(246, 184, 0, 0.18), rgba(246, 184, 0, 0.08));
}
.gcb-slot-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(168, 198, 235, 0.35);
  background: radial-gradient(100% 100% at 50% 0%, rgba(255, 255, 255, 0.06), rgba(8, 14, 25, 0.92));
  overflow: hidden;
}
.gcb-slot-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gcb-slot-card__img[hidden] { display: none; }
.gcb-slot-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9eb4d8;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.gcb-slot-card__label {
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
}

.gcb-stage-frame {
  border: 1px solid var(--gcb-border-soft);
  border-radius: 16px;
  background: radial-gradient(100% 110% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 45%), linear-gradient(180deg, #0d1528, #091121);
  padding: 12px;
  display: flex;
  justify-content: flex-end;
}

.gcb-canvas-stage {
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
  aspect-ratio: 11 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(165, 196, 237, 0.18);
  touch-action: none;
}
.gcb-canvas-stage.is-masked { box-shadow: 0 0 0 1px rgba(246, 184, 0, 0.28); }

.gcb-canvas,
.gcb-canvas-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.gcb-canvas--grid { z-index: 1; pointer-events: none; }
.gcb-canvas--paint { z-index: 2; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.gcb-canvas--shape { z-index: 3; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.gcb-canvas--shape.is-editing { cursor: move; }
.gcb-canvas--controls { z-index: 5; pointer-events: none; }
.gcb-canvas-overlay { z-index: 4; pointer-events: none; object-fit: cover; }
.gcb-canvas-overlay[hidden] { display: none; }

.gcb-stage-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.gcb-stage-meta__item {
  border: 1px solid rgba(117, 149, 191, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--gcb-copy-muted);
  background: rgba(13, 25, 45, 0.75);
}

.gcb-builder__footer { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

@media (min-width: 901px) {
  .gcb-stage-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .gcb-stage-main { order: 2; }
  .gcb-slot-picker {
    grid-template-columns: 1fr;
    order: 1;
  }
}
.gcb-button-primary.button {
  min-height: 40px;
  border-radius: 10px;
  border-color: #d10500;
  background: linear-gradient(180deg, #fc2f2a, #d90500);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 16px;
}
.gcb-button-secondary.button {
  min-height: 40px;
  border-radius: 10px;
  border-color: #55739d;
  background: #162640;
  color: #d9e7ff;
  padding: 0 14px;
}
.gcb-builder__status { margin: 0; min-height: 20px; font-size: 0.86rem; color: var(--gcb-copy-muted); }
.gcb-builder__status.is-ok { color: var(--gcb-ok); }
.gcb-builder__status.is-error { color: var(--gcb-error); }

.gcb-sidebar-section {
  border: 1px solid rgba(96, 127, 168, 0.48);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(14, 26, 46, 0.86), rgba(10, 19, 35, 0.9));
  padding: 12px;
}
.gcb-sidebar-section__head { margin-bottom: 10px; }
.gcb-sidebar-section__head h4 { margin: 0; font-size: 0.98rem; letter-spacing: 0.02em; }

.gcb-tool-row { display: grid; gap: 8px; margin-bottom: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gcb-tool-row--single { grid-template-columns: 1fr; }
.gcb-tool-row--double { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gcb-tool-row--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gcb-tool-btn {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(96, 130, 176, 0.5);
  border-radius: 9px;
  background: #132443;
  color: #e4eeff;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}
.gcb-tool-row--shape-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gcb-tool-row--shape-actions .gcb-tool-btn--span-2 { grid-column: span 2; }
.gcb-tool-btn.is-active {
  border-color: rgba(246, 184, 0, 0.9);
  background: linear-gradient(180deg, rgba(246, 184, 0, 0.2), rgba(246, 184, 0, 0.08));
  color: #fff2cd;
}
.gcb-tool-btn--warn { border-color: rgba(225, 6, 0, 0.5); color: #ffdada; }
.gcb-tool-btn--upload {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  cursor: pointer;
}
.gcb-tool-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.gcb-control { display: grid; gap: 6px; margin-bottom: 10px; }
.gcb-control span { font-size: 0.8rem; color: var(--gcb-copy-muted); }
.gcb-control input,
.gcb-control select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(95, 127, 172, 0.56);
  border-radius: 9px;
  background: #11203b;
  color: #e6efff;
  padding: 0 9px;
}
.gcb-control input[type="range"] { padding: 0; }
.gcb-control input[type="color"] { padding: 4px; }
.gcb-control--color-opacity .gcb-color-opacity-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.gcb-color-opacity-color {
  display: grid;
  gap: 4px;
  align-content: end;
}
.gcb-color-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.gcb-color-input-wrap input[type="color"] {
  min-height: 36px;
  width: 100%;
  margin: 0;
}
.gcb-color-pick-btn {
  min-height: 36px;
  width: 36px;
  border: 1px solid rgba(90, 122, 165, 0.58);
  border-radius: 9px;
  background: #132443;
  color: #dce9ff;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gcb-color-pick-btn__icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gcb-color-pick-btn:hover,
.gcb-color-pick-btn:focus-visible,
.gcb-color-pick-btn.is-active {
  border-color: rgba(246, 184, 0, 0.9);
  background: linear-gradient(180deg, rgba(246, 184, 0, 0.2), rgba(246, 184, 0, 0.08));
  color: #fff2cd;
}
.gcb-color-pick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.gcb-control--color-opacity input[type="color"] {
  min-height: 36px;
  padding: 2px;
  width: 100%;
  margin: 0;
}
.gcb-color-opacity-slider {
  display: grid;
  gap: 4px;
  align-content: end;
}
.gcb-color-opacity-slider input[type="range"] { margin: 0; min-height: 36px; }
.gcb-color-opacity-slider__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--gcb-copy-muted);
  line-height: 1.1;
}

.gcb-shape-inspector-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 40px;
  gap: 6px;
  max-height: calc((40px * 3) + (6px * 2));
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  padding-right: 2px;
}
.gcb-shape-inspector-grid.is-disabled { opacity: 0.55; }
.gcb-shape-inspector-grid__item {
  min-height: 40px;
  border: 1px solid rgba(90, 122, 165, 0.54);
  border-radius: 9px;
  background: #132443;
  color: #dce9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.gcb-shape-inspector-grid__item:hover,
.gcb-shape-inspector-grid__item:focus-visible,
.gcb-shape-inspector-grid__item.is-active {
  border-color: rgba(246, 184, 0, 0.9);
  background: linear-gradient(180deg, rgba(246, 184, 0, 0.2), rgba(246, 184, 0, 0.08));
}
.gcb-shape-inspector-grid__item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.gcb-shape-inspector-grid__preview {
  width: 34px;
  height: 34px;
  display: block;
}

.gcb-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gcb-control--inline {
  border: 1px solid rgba(90, 122, 165, 0.5);
  border-radius: 10px;
  background: rgba(10, 19, 35, 0.7);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.gcb-control--inline input { width: 18px; min-height: 18px; }

.gcb-builder__hint { margin: 8px 0 0; font-size: 0.8rem; color: var(--gcb-copy-muted); }
.gcb-shape-info {
  margin-top: 2px;
  display: grid;
  justify-items: end;
}
.gcb-shape-info__btn {
  list-style: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(115, 149, 193, 0.62);
  border-radius: 6px;
  background: #132443;
  color: #dce9ff;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.gcb-shape-info__btn::-webkit-details-marker { display: none; }
.gcb-shape-info__btn:hover,
.gcb-shape-info__btn:focus-visible {
  border-color: rgba(246, 184, 0, 0.9);
  background: linear-gradient(180deg, rgba(246, 184, 0, 0.2), rgba(246, 184, 0, 0.08));
  color: #fff2cd;
}
.gcb-shape-info__panel {
  margin: 8px 0 0;
  width: min(100%, 380px);
  padding: 8px 10px;
  border: 1px solid rgba(90, 122, 165, 0.54);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.84);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gcb-copy-muted);
  text-align: left;
}

.gcb-layer-list-wrap {
  border: 1px solid rgba(90, 122, 165, 0.5);
  border-radius: 11px;
  max-height: 280px;
  overflow: auto;
  background: rgba(8, 15, 28, 0.72);
  margin-bottom: 10px;
}
.gcb-layer-list { margin: 0; padding: 8px; list-style: none; display: grid; gap: 8px; }
.gcb-layer-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(84, 113, 153, 0.45);
  background: rgba(15, 29, 53, 0.7);
}
.gcb-layer-row.is-selected { border-color: rgba(160, 194, 238, 0.8); background: rgba(107, 156, 221, 0.14); }
.gcb-layer-row.is-active { border-color: rgba(246, 184, 0, 0.85); background: rgba(246, 184, 0, 0.08); }
.gcb-layer-row.is-drop-target { border-color: rgba(159, 232, 191, 0.85); background: rgba(98, 214, 143, 0.16); }
.gcb-layer-row__select {
  width: 100%;
  border: none;
  background: transparent;
  color: #e8f1ff;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
}
.gcb-layer-list.is-reordering .gcb-layer-row { opacity: 0.9; }
.gcb-layer-row__preview {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(180, 203, 236, 0.45);
  background: rgba(10, 18, 33, 0.88);
  flex: 0 0 auto;
}
.gcb-layer-row__title { font-size: 0.82rem; line-height: 1.2; }
.gcb-layer-row__delete {
  min-width: 30px;
  border: 1px solid rgba(235, 92, 92, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(225, 6, 0, 0.3), rgba(225, 6, 0, 0.14));
  color: #ffd9d9;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.gcb-layer-row__delete:hover,
.gcb-layer-row__delete:focus-visible {
  border-color: rgba(255, 125, 125, 0.95);
  background: linear-gradient(180deg, rgba(225, 6, 0, 0.42), rgba(225, 6, 0, 0.2));
}
.gcb-layer-row__icon {
  min-width: 46px;
  border: 1px solid rgba(90, 122, 165, 0.5);
  border-radius: 8px;
  background: #132443;
  color: #dce9ff;
  font-size: 0.72rem;
  cursor: pointer;
}
.gcb-layer-row__drag {
  min-width: 40px;
  border: 1px solid rgba(90, 122, 165, 0.5);
  border-radius: 8px;
  background: #132443;
  color: #dce9ff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: grab;
  touch-action: none;
}
.gcb-layer-row__drag:active { cursor: grabbing; }

.gcb-shape-picker {
  position: fixed;
  z-index: 11000;
}
.gcb-shape-picker[hidden] { display: none; }
.gcb-shape-picker__panel {
  width: min(90vw, 360px);
  max-height: min(72vh, 460px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(117, 149, 191, 0.56);
  background: linear-gradient(180deg, rgba(13, 26, 47, 0.97), rgba(7, 15, 29, 0.98));
  box-shadow: 0 20px 36px rgba(2, 8, 21, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 10px;
}
.gcb-shape-picker__title {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gcb-copy-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.gcb-shape-picker__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.gcb-shape-picker__item {
  min-height: 40px;
  border: 1px solid rgba(90, 122, 165, 0.5);
  border-radius: 8px;
  background: #132443;
  color: #dce9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.gcb-shape-picker__item:hover,
.gcb-shape-picker__item:focus-visible,
.gcb-shape-picker__item.is-active {
  border-color: rgba(246, 184, 0, 0.9);
  background: linear-gradient(180deg, rgba(246, 184, 0, 0.2), rgba(246, 184, 0, 0.08));
}
.gcb-shape-picker__preview { width: 34px; height: 34px; display: block; }

/* Public avatar rendering */
.gcb-helmet {
  --gcb-size: 64px;
  display: inline-block;
  width: var(--gcb-size);
  height: var(--gcb-size);
  vertical-align: middle;
  contain: layout paint style;
}
.gcb-helmet--image { border-radius: 50%; overflow: hidden; }
.gcb-helmet__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gcb-helmet__shell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 36% 42% 40% 34% / 38% 36% 44% 40%;
  border: 1px solid #afbacb;
  background: radial-gradient(120% 90% at 20% 8%, rgba(255, 255, 255, 0.86), transparent 45%), linear-gradient(165deg, #ffffff, #d8e2f1);
  box-shadow: 0 9px 16px rgba(5, 11, 22, 0.34), inset -8px -10px 20px rgba(166, 180, 205, 0.45), inset 6px 8px 14px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.gcb-helmet__shine { position: absolute; inset: 8% 16% auto 10%; height: 25%; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,0.75), rgba(255,255,255,0)); pointer-events: none; }
.gcb-helmet__surface { position: absolute; inset: 10% 8% 22% 7%; clip-path: polygon(4% 20%, 24% 2%, 60% 2%, 85% 12%, 96% 34%, 91% 74%, 63% 96%, 20% 92%, 4% 66%); overflow: hidden; }
.gcb-helmet__visor {
  position: absolute;
  left: 20%; right: 17%; bottom: 21%; height: 24%;
  border-radius: 25% 32% 40% 42% / 55% 50% 45% 45%;
  background: linear-gradient(180deg, rgba(138,170,213,0.18), rgba(17,28,46,0.96)), linear-gradient(100deg, rgba(255,255,255,0.28), rgba(255,255,255,0));
  border: 1px solid rgba(35,49,75,0.86);
  box-shadow: inset 0 5px 10px rgba(240,250,255,0.08);
}
.gcb-helmet__chin {
  position: absolute;
  right: 5%; bottom: 10%; width: 33%; height: 25%;
  border-radius: 50% 40% 50% 40%;
  background: linear-gradient(170deg, rgba(214,224,237,0.9), rgba(167,179,199,0.86));
  border: 1px solid rgba(141,156,179,0.7);
}

.gcb-layer { position: absolute; left: var(--gcb-x); top: var(--gcb-y); width: var(--gcb-w); height: var(--gcb-h); z-index: var(--gcb-z); background: var(--gcb-color); }
.gcb-layer--stripe,.gcb-layer--circle { border-radius: 999px; }
.gcb-layer--triangle { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.gcb-layer--diagonal-band { clip-path: polygon(0% 24%, 24% 0%, 100% 76%, 76% 100%); }
.gcb-layer--chevron { clip-path: polygon(0% 26%, 18% 0%, 50% 56%, 82% 0%, 100% 26%, 50% 100%); }
.gcb-layer--diamond { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }

.gcb-helmet--hover { transition: transform 0.24s ease, filter 0.24s ease; transform-origin: center; }
.gcb-helmet--hover:hover,
.gcb-helmet--hover:focus-within { transform: scale(1.1); filter: drop-shadow(0 10px 18px rgba(246,184,0,0.2)); }

.gcb-avatar-shortcode,
.gcb-avatar--wp,
.gcb-avatar--um { vertical-align: middle; }

/* Always preserve builder image ratio in UM cover output. */
.um .um-cover .um-cover-e img.gcb-um-cover-image,
.um-cover .um-cover-e img[src*="gcb_avatar_user"],
.um .um-cover img[src*="gcb_cover=1"],
.um-cover img[src*="gcb_cover=1"] {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

.um .um-cover .um-cover-e.gcb-um-cover-wrap,
.um-cover .um-cover-e.gcb-um-cover-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  aspect-ratio: 11 / 5 !important;
  height: auto !important;
  min-height: 0 !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* Catch UM cover layouts that render the image as a background style (no <img>). */
.um .um-cover [style*="gcb_avatar_user"],
.um-cover [style*="gcb_avatar_user"],
.um .um-cover [style*="gcb_avatar_sig"],
.um-cover [style*="gcb_avatar_sig"],
.um .um-cover [style*="gcb_cover=1"],
.um-cover [style*="gcb_cover=1"] {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* Preserve true livery proportions in Ultimate Member cover photos on mobile. */
@media (max-width: 820px) {
  .um .um-cover .um-cover-e.gcb-um-cover-wrap,
  .um-cover .um-cover-e.gcb-um-cover-wrap {
    aspect-ratio: 11 / 5 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .um .um-cover .um-cover-e img.gcb-um-cover-image,
  .um-cover .um-cover-e img[src*="gcb_avatar_user"],
  .um .um-cover img[src*="gcb_cover=1"],
  .um-cover img[src*="gcb_cover=1"] {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
}
@media (max-width: 820px) {
  .gcb-builder__workspace-card,
  .gcb-builder__sidebar-card { border-radius: 15px; }
  .gcb-stage-frame { padding: 10px; }
  .gcb-tool-row--triple { grid-template-columns: 1fr 1fr; }
  .gcb-tool-row.gcb-tool-row--layer-order { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gcb-builder__footer .button { width: 100%; }
}

@media (max-width: 900px) {
  .gcb-builder__sidebar-card { grid-template-columns: 1fr; }
  .gcb-mode-tabs { display: grid; }
  .gcb-stage-layout { grid-template-columns: 1fr; }
  .gcb-stage-main { order: 1; }
  .gcb-slot-picker { order: 2; }
  .gcb-slot-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gcb-canvas-stage { margin: 0 auto; }
}

@media (max-width: 640px) {
  .gcb-mode-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcb-slot-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .gcb-slot-card { padding: 6px; gap: 4px; }
  .gcb-slot-card__label { font-size: 0.68rem; }
  .gcb-tool-row,
  .gcb-tool-row--double,
  .gcb-tool-row--triple { grid-template-columns: 1fr; }
  .gcb-tool-row.gcb-tool-row--shape-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gcb-shape-inspector-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gcb-control--color-opacity .gcb-color-opacity-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcb-control-grid { grid-template-columns: 1fr; }
  .gcb-stage-meta { flex-direction: column; }
  .gcb-layer-row { grid-template-columns: auto 1fr auto auto; }
  .gcb-layer-row__drag { grid-column: span 2; min-height: 32px; }
  .gcb-shape-picker__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}





