.bank-editor_editor__J1AJd {
  --teal: #00aaaa;
  --teal-dark: #006666;
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: calc(100% - 20px);
  min-height: 480px;
  color: #202020;
  font-size: 12px;
  line-height: 1.45;
}

.bank-editor_editor__J1AJd *,
.bank-editor_editor__J1AJd *::before,
.bank-editor_editor__J1AJd *::after {
  box-sizing: border-box;
}

.bank-editor_surface__YpR4P {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.bank-editor_toolbar__0x4I1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid #888;
}

.bank-editor_editor__J1AJd .action-button {
  min-height: 32px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}

.bank-editor_editor__J1AJd .action-button:disabled {
  background: #bcbcbc;
  border-color: #888;
  color: #555;
  box-shadow: 2px 2px 0 #999;
  text-shadow: none;
  cursor: default;
  transform: none;
}

.bank-editor_editor__J1AJd button:focus-visible,
.bank-editor_editor__J1AJd input:focus-visible,
.bank-editor_canvasViewport__5SXnh:focus-visible {
  outline: 2px solid #003c98;
  outline-offset: 2px;
}

.bank-editor_bankCount__CmPkY {
  margin-left: auto;
  color: #444;
  padding: 2px;
}

.bank-editor_fileInput__ZjPQ_ {
  display: none;
}

.bank-editor_feedback__g9Xtu {
  flex: none;
  min-height: 34px;
  padding: 8px 2px;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: #285454;
}

.bank-editor_error__MtIlk {
  color: #8b0000;
}

.bank-editor_layout____Nuf {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  grid-gap: 12px;
  gap: 12px;
  flex: 1 1;
  min-height: 0;
}

.bank-editor_panel__x8s8m {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #d6d6d6;
  border: 1px solid #888;
  box-shadow:
    inset 1px 1px #fff,
    1px 1px #777;
}

.bank-editor_panelHeader__16rY4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #999;
  background: #c9c9c9;
}

.bank-editor_panelHeader__16rY4 h2,
.bank-editor_pickerHeader__mbeoB h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.bank-editor_panelHeader__16rY4 > span {
  font-size: 10px;
  color: #444;
}

.bank-editor_panelBody__hk6ex {
  padding: 12px;
  flex: 1 1;
  min-height: 0;
  overflow: auto;
}

.bank-editor_panelBody__hk6ex,
.bank-editor_canvasViewport__5SXnh,
.bank-editor_picker__vCnka {
  scrollbar-width: auto;
  scrollbar-color: #888 #ccc;
}

.bank-editor_editor__J1AJd .bank-editor_panelBody__hk6ex::-webkit-scrollbar,
.bank-editor_editor__J1AJd .bank-editor_canvasViewport__5SXnh::-webkit-scrollbar,
.bank-editor_editor__J1AJd .bank-editor_picker__vCnka::-webkit-scrollbar {
  display: block;
  width: 12px;
  height: 12px;
}

.bank-editor_editor__J1AJd .bank-editor_panelBody__hk6ex::-webkit-scrollbar-track,
.bank-editor_editor__J1AJd .bank-editor_canvasViewport__5SXnh::-webkit-scrollbar-track,
.bank-editor_editor__J1AJd .bank-editor_picker__vCnka::-webkit-scrollbar-track {
  background: #ccc;
}

.bank-editor_editor__J1AJd .bank-editor_panelBody__hk6ex::-webkit-scrollbar-thumb,
.bank-editor_editor__J1AJd .bank-editor_canvasViewport__5SXnh::-webkit-scrollbar-thumb,
.bank-editor_editor__J1AJd .bank-editor_picker__vCnka::-webkit-scrollbar-thumb {
  background: #999;
  border: 2px solid #ccc;
}

.bank-editor_currentColor__JTk4H {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bank-editor_colorSample__30Fvb,
.bank-editor_swatch__B7Uzb {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid #666;
  flex-shrink: 0;
}

.bank-editor_colorValue__JowhH {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.bank-editor_paletteGrid__wEVnV {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  grid-gap: 2px 8px;
  gap: 2px 8px;
  margin-bottom: 10px;
}

.bank-editor_swatchButton__B4XTJ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.bank-editor_swatchIndex__vYpH7 {
  font-size: 10px;
  line-height: 1.2;
}

.bank-editor_editor__J1AJd .bank-editor_selected__tMZ6y {
  border-color: var(--teal-dark);
  background-color: #e0f7f7;
  box-shadow: 0 0 0 1px var(--teal);
}

.bank-editor_editor__J1AJd .bank-editor_swatchButton__B4XTJ.bank-editor_selected__tMZ6y {
  outline: 2px solid var(--teal-dark);
  outline-offset: 1px;
  box-shadow: none;
}

.bank-editor_swatchButton__B4XTJ:hover,
.bank-editor_thumbnail__WUbbj:hover {
  background-color: #e0eeee;
}
.bank-editor_swatchButton__B4XTJ:disabled,
.bank-editor_thumbnail__WUbbj:disabled {
  cursor: default;
}

.bank-editor_transparentMark___bbmf {
  display: inline-block;
  margin: 6px;
  background: #eee;
  color: #333;
  font-size: 11px;
  line-height: 16px;
  width: 16px;
}

.bank-editor_checkerboard___0Wiv {
  background-color: #eee;
  background-image: conic-gradient(#bbb 25%, #eee 0 50%, #bbb 0 75%, #eee 0);
  background-size: 12px 12px;
}

.bank-editor_hint__bpL8t {
  margin: 8px 0 0;
  color: #444;
  font-size: 10px;
  line-height: 1.4;
}

.bank-editor_dimensions__DhcgU {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
}

.bank-editor_field__X_pzO {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.bank-editor_field__X_pzO label {
  font-size: 11px;
}
.bank-editor_field__X_pzO input {
  width: 86px;
  height: 30px;
  border: 2px solid #888;
  border-bottom-color: #fff;
  border-right-color: #fff;
  border-radius: 0;
  background: #fff;
  color: #202020;
  font-size: 12px;
  padding: 4px;
}

.bank-editor_field__X_pzO input:disabled {
  background: #ccc;
}

.bank-editor_canvasViewport__5SXnh {
  flex: 1 1;
  min-height: 180px;
  min-width: 0;
  margin: 0 12px;
  padding: 12px;
  overflow: auto;
  background: #a8a8a8;
  border: 2px solid #888;
  border-bottom-color: #eee;
  border-right-color: #eee;
}

.bank-editor_pixelGrid__0R2k0 {
  display: grid;
  grid-auto-rows: 20px;
  grid-gap: 1px;
  gap: 1px;
  width: max-content;
  margin: 0 auto;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.bank-editor_pixel__nAQBL {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  cursor: crosshair;
}
.bank-editor_pixel__nAQBL:hover {
  outline: 1px solid #fff;
  outline-offset: -2px;
}
.bank-editor_canvasFooter__yhSVY {
  padding: 10px 12px;
  font-size: 10px;
  color: #444;
}

.bank-editor_emptyState__VLhdv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  height: 100%;
  padding: 12px;
  text-align: center;
  color: #333;
}

.bank-editor_emptyState__VLhdv p {
  max-width: 320px;
  line-height: 1.7;
}
.bank-editor_spriteActions__ZqoJT,
.bank-editor_dangerActions__p9Vqe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.bank-editor_spriteActions__ZqoJT .action-button,
.bank-editor_dangerActions__p9Vqe .action-button {
  width: 100%;
}
.bank-editor_dangerActions__p9Vqe {
  border-top: 1px solid #aaa;
}
.bank-editor_dangerActions__p9Vqe .action-button {
  background: #c9c9c9;
  color: #782d2d;
  border-color: #888;
  box-shadow: 2px 2px #777;
  text-shadow: none;
}

.bank-editor_spriteList__sxS7b {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  align-content: start;
  grid-gap: 8px;
  gap: 8px;
}

.bank-editor_spriteList__sxS7b > .bank-editor_hint__bpL8t {
  grid-column: 1 / -1;
  margin: 0;
}
.bank-editor_thumbnail__WUbbj {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  background: #eee;
  color: #202020;
  border: 2px solid #aaa;
  cursor: pointer;
  text-align: left;
}

.bank-editor_previewStage__uyFyS {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  width: 100%;
}
.bank-editor_thumbnailPixels___O_ya {
  display: grid;
  flex: none;
}
.bank-editor_thumbnailPixels___O_ya > span {
  min-width: 0;
  min-height: 0;
}
.bank-editor_thumbnailName__J113i,
.bank-editor_thumbnailSize__HH7zY {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.bank-editor_thumbnailSize__HH7zY {
  color: #555;
}

.bank-editor_pickerOverlay__S22_j {
  position: absolute;
  inset: 0;
  bottom: auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
  background: rgba(70, 70, 70, 0.45);
}

.bank-editor_picker__vCnka {
  width: 280px;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 12px;
  background: #d6d6d6;
  border: 2px solid #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  box-shadow: 3px 3px #444;
}

.bank-editor_pickerHeader__mbeoB {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bank-editor_pickerHeader__mbeoB .action-button {
  min-width: 70px;
  margin-left: auto;
}

.bank-editor_picker__vCnka input {
  font-family: monospace;
}

@container (max-width: 999px) {
  .bank-editor_surface__YpR4P {
    height: auto;
    padding-bottom: 20px;
  }
  .bank-editor_layout____Nuf {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: 540px auto;
  }
  .bank-editor_canvasViewport__5SXnh {
    max-height: 400px;
  }
  .bank-editor_spritesPanel__HEAvU {
    grid-column: 1 / -1;
  }
  .bank-editor_spritesPanel__HEAvU .bank-editor_panelHeader__16rY4 {
    padding: 6px 12px;
  }
  .bank-editor_spriteActions__ZqoJT,
  .bank-editor_dangerActions__p9Vqe {
    padding: 8px 12px;
  }
  .bank-editor_spriteActions__ZqoJT .action-button,
  .bank-editor_dangerActions__p9Vqe .action-button {
    width: auto;
  }
  .bank-editor_spriteList__sxS7b {
    max-height: 160px;
    flex: none;
    padding: 8px 12px;
  }
}

@container (max-width: 639px) {
  .bank-editor_surface__YpR4P {
    height: auto;
    padding-bottom: 20px;
  }
  .bank-editor_layout____Nuf {
    display: flex;
    flex-direction: column;
  }
  .bank-editor_paletteBody__psd_J {
    overflow: visible;
  }
  .bank-editor_canvasViewport__5SXnh {
    height: 360px;
    flex: none;
  }
  .bank-editor_bankCount__CmPkY {
    margin-left: 0;
  }
  .bank-editor_spriteList__sxS7b {
    max-height: 240px;
  }
}

