/**
 * artCropper.css
 * Lembar Potong gambar dan lembar Pilih blok (Art Editor).
 */

/* ── Potong ─────────────────────────────────────────────────────────── */
.ae-crop-sheet .bottom-sheet__body { display: block; padding: 12px 16px 16px; }
.ae-crop-sheet .bottom-sheet__body > * + * { margin-top: 12px; }
.ae-crop__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  user-select: none;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
}
.ae-crop__frame { position: relative; flex-shrink: 0; }
.ae-crop__img { display: block; border-radius: 4px; }
.ae-crop__box {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  outline: 2px solid rgba(255, 255, 255, 0.95);
  cursor: move;
  touch-action: none;
}
.ae-crop__box:focus-visible { outline-color: var(--focus-outline); }
.ae-crop__handle {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  touch-action: none;
}
.ae-crop__handle--nw { left: 0; top: 0; cursor: nwse-resize; }
.ae-crop__handle--n { left: 50%; top: 0; cursor: ns-resize; }
.ae-crop__handle--ne { left: 100%; top: 0; cursor: nesw-resize; }
.ae-crop__handle--e { left: 100%; top: 50%; cursor: ew-resize; }
.ae-crop__handle--se { left: 100%; top: 100%; cursor: nwse-resize; }
.ae-crop__handle--s { left: 50%; top: 100%; cursor: ns-resize; }
.ae-crop__handle--sw { left: 0; top: 100%; cursor: nesw-resize; }
.ae-crop__handle--w { left: 0; top: 50%; cursor: ew-resize; }
.ae-crop__size { margin: 0; text-align: center; }
.ae-crop__actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── Pilih blok ─────────────────────────────────────────────────────── */
.ae-palette-sheet .bottom-sheet__body { display: block; padding: 0 16px 16px; }
.ae-palette-sheet__top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  background: var(--wb-panel-raised);
}
.ae-palette-sheet__search { flex: 1 1 auto; min-width: 0; }
.ae-palette-sheet__count { flex-shrink: 0; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.ae-palette-group { margin-top: 10px; }
.ae-palette-group[hidden] { display: none; }
.ae-palette-group__head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.ae-palette-group__title { margin: 0 auto 0 0; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.ae-palette-group__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ae-block-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--wb-rule);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  opacity: 0.6;
  overflow: hidden;
}
.ae-block-tile[hidden] { display: none; }
.ae-block-tile.is-on { opacity: 1; color: var(--text-primary); border-color: var(--accent); background: var(--bg-active); }
.ae-block-tile.is-blocked { opacity: 0.35; border-style: dashed; }
.ae-block-tile__swatch { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.ae-block-tile .item-icon { flex-shrink: 0; }
.ae-block-tile__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
