.layer-studio-workspace {
  --layer-studio-layers-col: 260px;

  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.layer-studio-workspace[hidden] {
  display: none;
}

.status-modal:has(.layer-studio-shortcut-grid) .status-modal-dialog {
  width: min(1260px, calc(100vw - 48px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.status-modal:has(.layer-studio-shortcut-grid) .status-modal-body {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.layer-studio-shortcut-grid {
  column-count: 3;
  column-gap: 22px;
  min-width: 0;
  white-space: normal;
}

.layer-studio-shortcut-column {
  display: grid;
  align-content: start;
  gap: 7px;
  break-inside: avoid;
  min-width: 0;
  margin: 0 0 18px;
}

.layer-studio-shortcut-column > strong {
  color: var(--accent-3) !important;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.layer-studio-shortcut-row {
  display: grid;
  grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
  color: #d9e1e8;
  font-size: 14px;
  line-height: 1.35;
}

.layer-studio-shortcut-row code {
  display: inline-block;
  margin-right: 3px;
  padding: 1px 5px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  background: #07090c;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.layer-studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(0, 0, 0, 0.98);
}

.layer-studio-topbar-main {
  display: grid;
  grid-template-columns: minmax(0, calc(var(--layer-studio-layers-col) - 14px)) auto;
  align-items: center;
  min-width: 0;
}

.layer-studio-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.layer-studio-title strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.layer-studio-title span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-studio-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.layer-studio-dirty-state {
  min-width: 108px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.layer-studio-dirty-state.is-dirty {
  color: rgb(var(--accent-2-rgb));
}

.layer-studio-actions > .livery-preview-action {
  align-self: center;
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 12px;
  border: var(--border-width) solid #ff4d55;
  border-radius: 0;
  background: #000;
  color: #fff;
}

.layer-studio-actions > .livery-preview-action:hover,
.layer-studio-actions > .livery-preview-action:focus-visible {
  border-color: #ff7077;
  background: rgba(255, 77, 85, 0.14);
}

.layer-studio-update-texture-wrap {
  position: relative;
  display: inline-flex;
}

.layer-studio-update-texture-wrap > .layer-studio-update-texture {
  border-color: rgba(55, 224, 33, 0.72);
  background: #1f8f27;
  color: #fff;
  font-weight: 700;
}

.layer-studio-update-texture-wrap > .layer-studio-update-texture:hover,
.layer-studio-update-texture-wrap > .layer-studio-update-texture:focus-visible {
  border-color: var(--accent-green);
  background: #26a630;
  color: #fff;
}

.layer-studio-update-texture-feedback {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  width: max-content;
  max-width: 320px;
  padding: 8px 10px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.3);
  background: #080b0f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.46);
  color: #e7edf4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.layer-studio-update-texture-feedback[hidden] {
  display: none;
}

.layer-studio-update-texture-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.layer-studio-update-texture-feedback.is-update-required {
  border-color: rgba(247, 201, 72, 0.72);
  color: #fff0bf;
}

.layer-studio-update-texture-feedback.is-local {
  border-color: rgba(55, 224, 33, 0.58);
  color: #dcffd7;
}

.layer-studio-body {
  --layer-studio-library-col: 52px;
  --layer-studio-layers-col: 260px;
  --layer-studio-editor-col: minmax(0, 1fr);
  --layer-studio-preview-col: minmax(0, 1fr);
  --layer-studio-splitter-col: 7px;

  position: relative;
  display: grid;
  grid-template-columns:
    var(--layer-studio-layers-col)
    var(--layer-studio-editor-col)
    var(--layer-studio-splitter-col)
    var(--layer-studio-preview-col)
    var(--layer-studio-library-col);
  min-height: 0;
  background: #000;
}

.layer-studio-body.is-library-collapsed {
  --layer-studio-library-col: 52px;
}

.layer-studio-body.is-editor-collapsed {
  --layer-studio-editor-col: 52px;
  --layer-studio-splitter-col: 0;
  --layer-studio-preview-col: minmax(0, 1fr);
}

.layer-studio-body.is-preview-collapsed {
  --layer-studio-editor-col: minmax(0, 1fr);
  --layer-studio-splitter-col: 0;
  --layer-studio-preview-col: 52px;
}

.layer-studio-body.is-view-resizing,
.layer-studio-body.is-view-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.layer-studio-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
  min-width: 0;
  min-height: 0;
  border-top: var(--border-width) solid rgba(var(--accent-2-rgb), 0.28);
  background: var(--panel);

  & + .layer-studio-panel {
    border-left: var(--border-width) solid var(--line);
  }
}

.layer-studio-editor-panel {
  position: relative;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.layer-studio-editor-panel .layer-studio-panel-head {
  align-items: stretch;
  padding-block: 0;
}

.layer-studio-editor-panel .layer-studio-panel-head > div:first-child {
  justify-content: center;
  padding-block: 12px;
}

.layer-studio-texture-title {
  align-content: center;
}

.layer-studio-texture-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-left: 0;
}

.layer-studio-texture-picker select {
  min-width: 128px;
  max-width: 180px;
  height: 30px;
}

.layer-studio-texture-picker button {
  flex: 0 0 auto;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.layer-studio-preview-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.layer-studio-view-splitter {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-top: var(--border-width) solid rgba(var(--accent-2-rgb), 0.28);
  border-left: var(--border-width) solid var(--line);
  border-right: var(--border-width) solid var(--line);
  background: #000;
  cursor: col-resize;

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 52px;
    background: var(--accent-3);
    box-shadow:
      -2px 0 0 rgba(var(--accent-2-rgb), 0.28),
      2px 0 0 rgba(var(--accent-2-rgb), 0.28);
    transform: translate(-50%, -50%);
  }

  &:hover,
  &:focus-visible,
  &.is-active {
    outline: none;
    background: rgba(var(--accent-2-rgb), 0.16);
  }

  &:focus-visible::before,
  &:hover::before,
  &.is-active::before {
    background: var(--accent-2);
  }
}

.layer-studio-body.is-editor-collapsed .layer-studio-view-splitter,
.layer-studio-body.is-preview-collapsed .layer-studio-view-splitter {
  display: none;
}

.layer-studio-panel-collapse {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 42px;
  min-height: 100%;
  padding-inline: 8px;
  border-right: none;
  border-bottom: none;
  border-top: none;
}

.layer-studio-panel.is-collapsed-horizontal {
  grid-template-rows: minmax(0, 1fr);
  width: 52px;
  min-width: 52px;
}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-panel-head {
  display: grid;
  justify-items: center;
  min-height: 100%;
  padding: 0;

}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-panel-head > div,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-editor-head-tools,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-texture-stage,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-preview-stage,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-status {
  display: none;
}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-panel-collapse {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-left: none ;
}

.layer-studio-library-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(560px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
  min-width: 0;
  border-left: var(--border-width) solid var(--line);
  box-shadow: -18px 0 28px rgba(0, 0, 0, 0.34);
  transition:
    width 0.16s ease,
    box-shadow 0.16s ease;
}

.layer-studio-library-panel.is-collapsed {
  grid-template-rows: minmax(0, 1fr);
  z-index: 8;
  width: 52px;
  min-width: 52px;
  box-shadow: none;
}

.layer-studio-library-panel.is-collapsed .layer-studio-panel-head {
  display: grid;
  justify-items: center;
  min-height: 100%;
  padding: 0;
  border-bottom: 0;
}

.layer-studio-library-panel.is-collapsed .layer-studio-panel-head > div,
.layer-studio-library-panel.is-collapsed .layer-studio-library-actions,
.layer-studio-library-panel.is-collapsed .layer-studio-library-search,
.layer-studio-library-panel.is-collapsed .layer-studio-library-list {
  display: none;
}

.layer-studio-library-panel.is-collapsed .layer-studio-icon-button {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.layer-studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 0px 0 0px 14px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(0, 0, 0, 0.98);
  #layerStudioLibraryToggle {
    height: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: none;
  }
}

.layer-studio-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  line-height: 1;

  svg {
    display: block;
  }
}

.layer-studio-library-rail-label {
  display: inline-block;
  color: #ffd84a;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(90deg);
  transform-origin: center;
}

.layer-studio-panel-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.layer-studio-panel-head > .layer-studio-preview-menu {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  justify-content: flex-end;
  min-width: 0;
}

.layer-studio-preview-menu {
  .livery-preview-menu-trigger,
  > button {
    min-height: 64px;
  }
}

.layer-studio-panel-head strong {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
}

.layer-studio-panel-head span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-right: none     ;
}
#layerStudioLibraryToggle span {
  color: var(--accent-3) !important;
}
.layer-studio-editor-head-tools {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
}

.layer-studio-toolstrip-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  align-self: stretch;
  padding-inline: 10px;
  border-right: var(--border-width) solid var(--line);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
}

.layer-studio-toolstrip {
  display: grid;
  grid-template-columns: auto repeat(9, 48px);
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  overflow-x: auto;
  border-inline: var(--border-width) solid var(--line);
  border-top: none;
  border-bottom: none;
  background: rgba(var(--accent-2-rgb), 0.055);
}

.layer-studio-toolstrip .layer-studio-history-button {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  padding: 0;
}

.layer-studio-toolstrip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0 10px;
  border-top: none;
  border-bottom: none;
  border-left: var(--border-width) solid rgba(var(--accent-2-rgb), 0.42);
  border-right: none;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;

  &:hover,
  &:focus-visible,
  &.is-active {
    border-color: rgba(var(--accent-2-rgb), 0.72);
    background: rgba(var(--accent-2-rgb), 0.18);
    color: #fff;
  }
}

.layer-studio-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: currentColor;

  svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

.layer-studio-tool-icon-text svg text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0;
}

.layer-studio-library-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.045);
}

.layer-studio-library-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.layer-studio-library-actions button,
.layer-studio-library-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;

  svg {
    display: block;
    flex: 0 0 auto;
  }
}

.layer-studio-library-tabs button.is-active {
  border-color: #f7c948;
  background: rgba(247, 201, 72, 0.18);
  color: #f7c948;
  font-size: 16px;
  font-weight: 900;
}

.layer-studio-library-actions button:hover,
.layer-studio-library-actions button:focus-visible,
.layer-studio-library-item button:hover,
.layer-studio-library-item button:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.18);
  color: #fff;
}

.layer-studio-library-search {
  display: grid;
  gap: 5px;
  padding: 8px 10px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.035);

  label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  input {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.34);
    border-radius: 0;
    background: #000;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;

    &:focus {
      border-color: rgba(var(--accent-2-rgb), 0.72);
      outline: none;
      box-shadow: 0 0 0 1px rgba(var(--accent-2-rgb), 0.28);
    }

    &::placeholder {
      color: rgba(255, 255, 255, 0.38);
    }

    &::-webkit-search-cancel-button {
      width: 15px;
      height: 15px;
      margin-left: 6px;
      appearance: none;
      -webkit-appearance: none;
      background: rgba(255, 255, 255, 0.82);
      cursor: pointer;
      -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;
      mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;

      &:hover {
        background: #fff;
      }
    }
  }
}

.layer-studio-library-list {
  min-height: 0;
  overflow: auto;
  background: #07080a;
}

.layer-studio-library-group {
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
}

.layer-studio-library-group.is-drop-target {
  background: rgba(var(--accent-2-rgb), 0.1);

  .layer-studio-library-group-head {
    border-bottom-color: var(--accent-2-border);
    box-shadow: inset 3px 0 0 var(--accent-2-border);
  }
}

.layer-studio-library-group-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 32px 32px;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px;
  border-bottom: var(--border-width) solid rgba(var(--accent-2-rgb), 0.18);
  background: rgba(var(--accent-2-rgb), 0.09);

  strong {
    overflow: hidden;
    color: #ffd84a;
    font-family: var(--font-display);
    font-size: 15px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
  }
}

.layer-studio-library-group.is-collapsed .layer-studio-library-group-body {
  display: none;
}

.layer-studio-library-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 10px 44px 10px 12px;
  border-bottom: var(--border-width) solid var(--line);
  color: rgba(255, 255, 255, 0.78);
}

.layer-studio-library-item:hover {
  background: rgba(var(--accent-2-rgb), 0.1);
}

.layer-studio-library-item.is-missing {
  color: rgba(255, 255, 255, 0.44);
}

.layer-studio-library-item.is-dragging {
  opacity: 0.55;
}

.layer-studio-layer-row.is-missing {
  border-color: rgba(255, 90, 79, 0.52);
}

.layer-studio-library-thumb {
  display: grid;
  place-items: center;
  width: 68px;
  height: 62px;
  overflow: hidden;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.26);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
    #000;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.layer-studio-library-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.layer-studio-library-thumb span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  text-transform: uppercase;
}

.layer-studio-library-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.layer-studio-library-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-items: end;
}

.layer-studio-library-group-head .layer-studio-icon-button,
.layer-studio-library-item-actions .layer-studio-icon-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}

.layer-studio-library-drag-handle {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  min-width: 28px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff4d55;
  cursor: grab;

  &:hover,
  &:focus-visible {
    outline: none;
    color: #ff7077;
  }

  &:active {
    cursor: grabbing;
  }
}

.layer-studio-library-main strong,
.layer-studio-library-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-studio-library-main strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.15;
}

.layer-studio-library-main span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.layer-studio-texture-stage,
.layer-studio-preview-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    #07080a;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.layer-studio-canvas-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.layer-studio-canvas-host canvas {
  display: block;
}

.layer-studio-guide-bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 8, 10, 0.84);
  backdrop-filter: blur(10px);
}

.layer-studio-guide-bar button {
  min-height: 24px;
  padding: 3px 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.layer-studio-guide-bar button:hover,
.layer-studio-guide-bar button.is-active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  color: #fff;
}

.layer-studio-guide-bar button:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.layer-studio-guide-bar-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.layer-studio-guide-bar-group-arrange {
  margin-left: auto;
}

.layer-studio-guide-bar-group-align {
  margin-left: 10px;
}

.layer-studio-guide-bar-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.layer-studio-guide-bar-group-arrange .layer-studio-guide-bar-label,
.layer-studio-guide-bar-group-align .layer-studio-guide-bar-label {
  margin-right: 2px;
}

.layer-studio-guide-bar-group-arrange .layer-studio-guide-bar-label:not(:first-child) {
  margin-left: 8px;
}

.layer-studio-guide-bar .layer-studio-guide-icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 24px;
  padding: 0;
}

.layer-studio-guide-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

#layerStudioGuideSummary {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  white-space: nowrap;
}

#layerStudioGuideSummary[hidden] {
  display: none;
}

.layer-studio-preview-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.layer-studio-preview-camera-bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 8, 10, 0.84);
  backdrop-filter: blur(10px);
}

.layer-studio-preview-camera-bar .livery-preview-camera-presets {
  justify-content: flex-end;
  gap: 6px;
}

.layer-studio-preview-camera-bar .livery-preview-camera-presets button {
  min-height: 24px;
  padding: 3px 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.layer-studio-preview-camera-bar .livery-preview-camera-presets button:hover,
.layer-studio-preview-camera-bar .livery-preview-camera-presets button.active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  color: #fff;
}

.layer-studio-paint-finish-panel {
  position: absolute;
  z-index: 24;
  top: 65px;
  right: 0;
  bottom: 42px;
  width: min(360px, 42%);
  min-width: 300px;
  box-shadow: -18px 0 28px rgba(0, 0, 0, 0.32);
}

.layer-studio-paint-finish-panel[hidden],
.layer-studio-panel.is-collapsed-horizontal .layer-studio-paint-finish-panel {
  display: none;
}

.layer-studio-texture-stage > span,
.layer-studio-preview-stage > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}

.layer-studio-status {
  overflow: auto;
  padding: 10px 14px;
  border-top: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  // white-space: pre-wrap;
}

.layer-studio-properties-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.layer-studio-properties-body {
  min-height: 0;
  background: #07080a;
}

.layer-studio-layer-list {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.layer-studio-layer-empty {
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.layer-studio-layer-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-height: 58px;
  padding: 8px 42px 8px 10px;
  border: 0;
  border-bottom: var(--border-width) solid var(--line);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  user-select: none;

  &:hover,
  &:focus-visible {
    outline: none;
    background: rgba(var(--accent-2-rgb), 0.12);
    color: #fff;
  }

  &.is-hovered:not(.is-selected) {
    background: rgba(var(--accent-2-rgb), 0.12);
    color: #fff;
    box-shadow: inset 3px 0 0 rgba(var(--accent-2-rgb), 0.46);
  }

  &.is-selected {
    border-bottom-color: rgba(var(--accent-2-rgb), 0.42);
    background: rgba(var(--accent-2-rgb), 0.2);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent-2-border), inset 0 0 0 var(--border-width) rgba(var(--accent-2-rgb), 0.98);
  }

  &.is-stripe.is-selected,
  &.is-stripe.is-point-editing {
    border-bottom-color: rgba(var(--accent-2-rgb), 0.68);
    background: rgba(var(--accent-2-rgb), 0.24);
    box-shadow:
      inset 3px 0 0 var(--accent-2-border),
      inset 0 0 0 2px rgba(var(--accent-2-rgb), 0.46);
  }

  &.is-multi-selected {
    background: rgba(var(--accent-2-rgb), 0.15);
    box-shadow: inset 3px 0 0 var(--accent-3), inset 0 0 0 var(--border-width) rgba(var(--accent-2-rgb), 0.22);
  }

  &.is-dragging {
    opacity: 0.55;
  }

  &.is-drop-target {
    border-bottom-color: var(--accent-2-border);
    background: rgba(var(--accent-2-rgb), 0.18);
    box-shadow: inset 0 -3px 0 var(--accent-2-border);
  }

  &.is-hidden {
    color: rgba(255, 255, 255, 0.42);
  }

  &.is-locked {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent);
  }

  &.is-virtual {
    border-bottom-color: rgba(var(--accent-2-rgb), 0.34);
    background: rgba(255,255,255, 0.10);
  }

  &.is-compact-overlay {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    min-height: 42px;
    padding: 7px 10px;

    .layer-studio-layer-main {
      align-self: center;
    }

    .layer-studio-layer-name {
      align-self: center;
    }

    .layer-studio-layer-controls {
      justify-self: end;
    }
  }

  &.is-group {
    background: rgba(var(--accent-2-rgb), 0.2);

    strong {
      color: rgba(255, 255, 255, 0.92);
      text-transform: uppercase;
    }
  }

  &.is-mask-group {
    background: rgba(255, 206, 84, 0.2);
  }

  &.is-group-child {
    padding-left: 28px;
    border-left: var(--border-width) solid rgba(var(--accent-2-rgb), 0.35);
    background: rgba(var(--accent-2-rgb), 0.1);
  }

  &.is-mask-child {
    border-left-color: rgba(255, 206, 84, 0.55);
    background: rgba(255, 206, 84, 0.1);
  }
}

.layer-studio-layer-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.layer-studio-layer-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.layer-studio-layer-stroke-swatch {
  appearance: none;
  display: inline-block;
  flex: 0 0 30px;
  width: 30px;
  height: 12px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.34);
  background: var(--layer-studio-layer-stroke, #f07a00);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.68);
  cursor: pointer;
}

.layer-studio-layer-row.is-stripe:hover .layer-studio-layer-stroke-swatch,
.layer-studio-layer-row.is-stripe:focus-visible .layer-studio-layer-stroke-swatch,
.layer-studio-layer-row.is-stripe.is-hovered .layer-studio-layer-stroke-swatch,
.layer-studio-layer-row.is-stripe.is-selected .layer-studio-layer-stroke-swatch {
  border-color: var(--accent-2-border);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.78),
    0 0 0 2px rgba(var(--accent-2-rgb), 0.24);
}

.layer-studio-layer-row strong,
.layer-studio-layer-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-studio-layer-row strong {
  align-self: end;
  font-size: 14px;
  line-height: 1.1;
}

.layer-studio-layer-name[data-layer-rename] {
  cursor: text;
}

.layer-studio-layer-drag-handle {
  position: absolute;
  top: 4px;
  right: 0px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: grab;

  &:hover,
  &:focus-visible {
    outline: none;
    color: var(--accent-2-border);
  }

  &:active {
    cursor: grabbing;
  }
}

.layer-studio-layer-rename-input {
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 2px 6px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.72);
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 14px;
  user-select: text;

  &:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.16);
  }
}

.layer-studio-layer-row span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.layer-studio-layer-flags {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.layer-studio-layer-controls {
  display: flex;
  // grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 4px;
}

.layer-studio-layer-controls.is-uv-overlay {
  display: inline-grid;
  grid-template-columns: repeat(2, 28px);
  justify-content: start;
  width: max-content;
}

.layer-studio-layer-controls button {
  min-width: 0;
  min-height: 24px;
  padding: 2px 4px;
  border-color: rgba(var(--accent-2-rgb), 0.34);
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;

  &:hover,
  &:focus-visible {
    border-color: rgba(var(--accent-2-rgb), 0.72);
    color: #fff;
  }

  &:disabled {
    opacity: 0.35;
  }
}

.layer-studio-layer-controls .layer-studio-icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
}

.layer-studio-icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.layer-studio-properties-form {
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  grid-template-columns: minmax(150px, 1.5fr) minmax(180px, 1.8fr) minmax(110px, 1fr) minmax(78px, 0.8fr) minmax(72px, 0.75fr) repeat(7, minmax(62px, 0.75fr));
  align-items: end;
  gap: 8px;
  min-width: 0;
  max-height: 82px;
  padding: 8px 10px;
  border-top: var(--border-width) solid var(--line);
  border-bottom: var(--border-width) solid var(--line);
  background: #000;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
  transition:
    max-height 0.16s ease,
    opacity 0.14s ease,
    padding 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;

  &.is-collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
    border-bottom-color: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }
  #layerStudioPropNameWrap {
    max-width: 120px;
    min-width: 120px;
  }
}

.layer-studio-properties-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
  flex: 1;
}

.layer-studio-properties-form .layer-studio-ratio-lock {
  align-self: end;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);

  svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  &.is-active {
    color: #0b1216;
    border-color: var(--accent-2-border);
    background: var(--accent-2);
  }
}

.layer-studio-properties-form input,
.layer-studio-properties-form select {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: var(--border-width) solid var(--accent-2);
  background: #000;
  color: #fff;
  font: inherit;

  &:focus {
    border-color: rgba(var(--accent-2-rgb), 0.72);
    box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.16);
    outline: none;
  }
}

.layer-studio-properties-form input:disabled,
.layer-studio-properties-form select:disabled {
  opacity: 0.46;
}

.layer-studio-properties-form input[type="color"] {
  padding: 2px;
  cursor: pointer;

  &:hover {
    border-color: rgba(var(--accent-2-rgb), 0.88);
    box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.12);
  }

  &:focus-visible {
    border-color: var(--accent-2-border);
    box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.2);
  }
}

.layer-studio-properties-form .is-stroke-control input[type="color"]:not(:disabled) {
  border-color: var(--accent-2-border);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-2-rgb), 0.32);
}

.layer-studio-color-favorites-dock {
  position: absolute;
  z-index: 18;
  top: 147px;
  right: 10px;
  display: grid;
  justify-items: end;
  width: min(310px, calc(100% - 20px));
  pointer-events: none;
  transition: top 0.16s ease;
}

.layer-studio-properties-form.is-collapsed + .layer-studio-color-favorites-dock {
  top: 65px;
}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-color-favorites-dock {
  display: none;
}

.layer-studio-color-favorites-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.48);
  background: rgba(0, 0, 0, 0.94);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: auto;

  &:hover,
  &:focus-visible,
  &.is-open {
    border-color: var(--accent-2);
    background: #000;
    color: #fff;
    outline: none;
  }

  &:disabled {
    opacity: 0.46;
    cursor: not-allowed;
  }

  svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 0.14s ease;
  }

  &.is-open svg {
    transform: rotate(180deg);
  }
}

.layer-studio-active-color-swatch {
  width: 15px;
  height: 15px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.54);
  background: var(--layer-studio-active-color, #e43d30);
}

.layer-studio-color-favorites-panel {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.58);
  background: rgba(0, 0, 0, 0.97);
  box-shadow: -12px 14px 24px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
  animation: layer-studio-color-favorites-in 0.14s ease-out;
}

.layer-studio-color-favorites-panel[hidden] {
  display: none;
}

@keyframes layer-studio-color-favorites-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.layer-studio-color-favorites-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);

  strong {
    color: var(--accent-3);
    font-size: 12px;
    text-transform: uppercase;
  }

  span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
  }
}

.layer-studio-color-favorites-list {
  display: grid;
  gap: 5px;
  padding-top: 8px;
}

.layer-studio-color-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px;
  align-items: center;
  gap: 5px;
  min-height: 32px;

  &.is-editing {
    grid-template-columns: 32px minmax(0, 1fr) auto 30px;
  }

  &.is-active .layer-studio-color-favorite-apply {
    border-color: var(--accent-2);
    box-shadow: inset 3px 0 0 var(--accent-2);
  }
}

.layer-studio-color-favorite-apply {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 32px;
  padding: 3px 8px 3px 3px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;

  &:hover,
  &:focus-visible {
    border-color: rgba(var(--accent-2-rgb), 0.72);
    outline: none;
  }

  code {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-family: Consolas, monospace;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.layer-studio-color-favorite-swatch {
  width: 28px;
  height: 24px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.34);
  background: var(--layer-studio-favorite-color, #000);
}

.layer-studio-color-favorite-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);

  &:hover,
  &:focus-visible {
    border-color: rgba(var(--accent-2-rgb), 0.72);
    color: #fff;
    outline: none;
  }

  &.is-delete:hover,
  &.is-delete:focus-visible {
    border-color: rgba(255, 90, 79, 0.72);
    color: #ff7077;
  }

  svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
}

.layer-studio-color-favorite-picker {
  width: 32px;
  min-width: 32px;
  height: 30px;
  padding: 2px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.58);
  background: #000;
}

.layer-studio-color-favorite-hex {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 7px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: #000;
  color: #fff;
  font-family: Consolas, monospace;
  font-size: 12px;

  &:focus {
    border-color: var(--accent-2);
    outline: none;
  }
}

.layer-studio-color-favorite-row.is-editing > button[data-color-favorite-action="save"] {
  height: 30px;
  padding: 4px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.58);
  background: rgba(var(--accent-2-rgb), 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.layer-studio-color-favorites-status {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.3;

  &:empty {
    display: none;
  }

  &.is-error {
    color: #ff8a8f;
  }
}

.layer-studio-splat-palette {
  display: grid;
  grid-template-columns: repeat(4, 30px);
  align-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.layer-studio-splat-palette button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: var(--border-width) solid rgba(255, 255, 255, 0.24);
  background: var(--layer-studio-splat-color, #000);
  color: transparent;
  cursor: pointer;
}

.layer-studio-splat-palette button.is-active,
.layer-studio-splat-palette button:hover,
.layer-studio-splat-palette button:focus-visible {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.18);
  outline: none;
}

.layer-studio-splat-legend {
  position: absolute;
  z-index: 5;
  top: 154px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 4px 10px;
  width: max-content;
  min-width: 0;
  max-width: calc(100% - 24px);
  padding: 6px 8px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(7, 8, 10, 0.92);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.layer-studio-splat-legend[hidden] {
  display: none;
}

.layer-studio-splat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.layer-studio-splat-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.28);
  background: var(--splat-color, #000);
}

.layer-studio-splat-legend strong {
  color: var(--text);
  font-weight: 700;
}

.layer-studio-gradient-control {
  position: relative;
  align-self: end;
  flex: 0 0 142px;
  min-width: 142px;
}

.layer-studio-gradient-toggle {
  display: grid;
  grid-template-columns: auto minmax(58px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: var(--border-width) solid var(--accent-2);
  background: #000;
  color: #fff;
  font: inherit;
  text-transform: uppercase;
}

.layer-studio-gradient-toggle-preview,
.layer-studio-gradient-preview {
  background:
    var(--layer-studio-gradient-preview),
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%),
    #2f3338;
  background-position:
    0 0,
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size:
    auto,
    16px 16px,
    16px 16px,
    16px 16px,
    16px 16px;
}

.layer-studio-gradient-toggle-preview {
  height: 16px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.28);
}

.layer-studio-gradient-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: 282px;
  padding: 12px;
  border: var(--border-width) solid var(--accent-2);
  background: #050608;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
}

.layer-studio-gradient-preview {
  height: 58px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.24);
}

.layer-studio-gradient-fields {
  display: grid;
  grid-template-columns: 78px minmax(72px, 1fr) 78px;
  gap: 12px;
  align-items: end;
}

.layer-studio-gradient-stop,
.layer-studio-gradient-angle {
  display: grid;
  gap: 7px;
}

.layer-studio-gradient-stop-a {
  grid-column: 1;
}

.layer-studio-gradient-angle {
  grid-column: 2;
}

.layer-studio-gradient-stop-b {
  grid-column: 3;
}

.layer-studio-gradient-stop label,
.layer-studio-gradient-angle {
  display: grid !important;
  gap: 4px;
  min-width: 0 !important;
  flex: none !important;
}

.layer-studio-gradient-stop input,
.layer-studio-gradient-angle input {
  width: 100%;
}

.layer-studio-gradient-stop input[type="color"] {
  height: 30px;
}

.layer-studio-gradient-stop input[type="number"],
.layer-studio-gradient-angle input[type="number"] {
  height: 30px;
  text-align: center;
}

.layer-studio-property-wide {
  grid-column: auto;
}

.layer-studio-property-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.32);
  background: #000;
}

.layer-studio-property-check input {
  width: auto;
  height: auto;
}

@media (max-width: 1280px) {
  .layer-studio-body {
    --layer-studio-library-col: 52px;
    --layer-studio-layers-col: 260px;
    --layer-studio-editor-col: minmax(0, 1fr);
    --layer-studio-preview-col: minmax(0, 1fr);
  }

  .layer-studio-body.is-library-collapsed {
    --layer-studio-library-col: 52px;
  }

  .layer-studio-body.is-editor-collapsed {
    --layer-studio-editor-col: 52px;
    --layer-studio-splitter-col: 0;
    --layer-studio-preview-col: minmax(0, 1fr);
  }

  .layer-studio-body.is-preview-collapsed {
    --layer-studio-editor-col: minmax(0, 1fr);
    --layer-studio-splitter-col: 0;
    --layer-studio-preview-col: 52px;
  }
}
